26 lines
1016 B
Plaintext
26 lines
1016 B
Plaintext
--- Makefile.orig Sun Nov 18 19:25:43 2001
|
|
+++ Makefile Sun Sep 29 22:46:11 2002
|
|
@@ -9,7 +9,7 @@
|
|
MACOSX=0
|
|
|
|
# explicit pcap include dir is for redhat which is fux0red
|
|
-CFLAGS=-g -I/usr/local/include -L/usr/local/lib -DUSE_NETIF=$(USE_NETIF) -DOPENBSD=$(OPENBSD) -DLINUX=$(LINUX) -DSOLARIS=$(SOLARIS) -DFREEBSD=$(FREEBSD) -DMACOSX=$(MACOSX) -I/usr/include/pcap
|
|
+CFLAGS+=-g -I/usr/local/include -L/usr/local/lib -DUSE_NETIF=$(USE_NETIF) -DOPENBSD=$(OPENBSD) -DLINUX=$(LINUX) -DSOLARIS=$(SOLARIS) -DFREEBSD=$(FREEBSD) -DMACOSX=$(MACOSX) -I/usr/include/pcap
|
|
|
|
usage:
|
|
@echo
|
|
@@ -45,11 +45,11 @@
|
|
all: $(TARGETS)
|
|
|
|
arping.o: arping.c
|
|
- gcc -Wall $(CFLAGS) -c `libnet-config --defines` `libnet-config --cflags` arping.c
|
|
+ ${CC} -Wall $(CFLAGS) -c `libnet-config --defines` `libnet-config --cflags` arping.c
|
|
|
|
O_arping=arping.o
|
|
arping: $(O_arping)
|
|
- gcc $(CFLAGS) -g -o $@ $(O_arping) `libnet-config --libs` -lpcap
|
|
+ ${CC} $(CFLAGS) -g -o $@ $(O_arping) `libnet-config --libs` -lpcap
|
|
|
|
clean:
|
|
rm -f *.o $(TARGETS)
|