BSD-3-clause
Netselect:; Copyright (c) 1998-2010 by Avery Pennarun <[email protected]>; .; Traceroute:; Copyright (c) 1990, 1993; The Regents of the University of California. All rights reserved.; .; This code is derived from software contributed to Berkeley by; Van Jacobson.
debian/copyright
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
PREFIX = /usr/local |
| 2 |
BINDEST = ${PREFIX}/bin |
| 3 |
MANDEST = ${PREFIX}/man/man8 |
| 4 |
|
| 5 |
CC = gcc |
| 6 |
CFLAGS = -O2 -Wall -I. -g |
| 7 |
LDFLAGS = -g |
| 8 |
LIBS = |
| 9 |
|
| 10 |
ifdef OS2 |
| 11 |
LDFLAGS += -Zsmall-conv |
| 12 |
LIBS += -lsocket |
| 13 |
BINSUFFIX = .exe |
| 14 |
STRIP = |
| 15 |
else |
| 16 |
STRIP = -s |
| 17 |
endif |
| 18 |
|
| 19 |
all: netselect |
| 20 |
|
| 21 |
netselect: netselect.o |
| 22 |
${CC} ${LDFLAGS} -o $@ $^ ${LIBS} |
| 23 |
ifdef OS2 |
| 24 |
emxbind -bwq netselect |
| 25 |
else |
| 26 |
-sudo chown root netselect && sudo chmod u+s netselect |
| 27 |
endif |
| 28 |
|
| 29 |
install: $(PROG) |
| 30 |
-install -d ${BINDEST} |
| 31 |
#-install -d ${MANDEST} |
| 32 |
install $(STRIP) -o root -g root -m 4755 \ |
| 33 |
netselect${BINSUFFIX} ${BINDEST} |
| 34 |
install -o root -g root -m 0755 netselect-apt ${BINDEST} |
| 35 |
#install -o root -g root -m 0644 netselect.8 ${MANDEST} |
| 36 |
|
| 37 |
uninstall: |
| 38 |
$(RM) ${BINDEST}/netselect${BINSUFFIX} ${BINDEST}/netselect-apt |
| 39 |
$(RM) ${MANDEST}/netselect.8 |
| 40 |
|
| 41 |
clean: |
| 42 |
$(RM) netselect netselect${BINSUFFIX} *.o *~ build-stamp core |