1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Respect CC and CFLAGS

This commit is contained in:
Kris Kennaway 2002-06-07 07:38:53 +00:00
parent 346f657803
commit b42be20441
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=60754

25
net/arping/files/patch-aa Normal file
View File

@ -0,0 +1,25 @@
--- Makefile.orig Fri Jun 7 00:37:19 2002
+++ Makefile Fri Jun 7 00:37:41 2002
@@ -8,7 +8,7 @@
FREEBSD=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) -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) -I/usr/include/pcap
usage:
@echo
@@ -41,11 +41,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)