openbsd-ports/net/arping/patches/patch-Makefile
2002-02-10 02:10:20 +00:00

35 lines
1.3 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.2 2002/02/10 02:10:20 jcs Exp $
--- Makefile.orig Sat Feb 9 19:58:57 2002
+++ Makefile Sat Feb 9 20:01:23 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=-I${LOCALBASE}/include -L${LOCALBASE}/lib -DUSE_NETIF=$(USE_NETIF) -DOPENBSD=$(OPENBSD) -DLINUX=$(LINUX) -DSOLARIS=$(SOLARIS) -DFREEBSD=$(FREEBSD) -DMACOSX=$(MACOSX)
usage:
@echo
@@ -39,17 +39,17 @@
make USE_NETIF=0 SOLARIS=1 all
install:
- install -c arping /usr/local/bin/arping
- install arping.8 /usr/local/man/man8/arping.8
+ ${BSD_INSTALL_PROGRAM} -c arping ${PREFIX}/sbin/arping
+ ${BSD_INSTALL_MAN} arping.8 ${PREFIX}/man/man8/arping.8
all: $(TARGETS)
arping.o: arping.c
- gcc -Wall $(CFLAGS) -c `libnet-config --defines` `libnet-config --cflags` arping.c
+ ${CC} $(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) -o $@ $(O_arping) `libnet-config --libs` -lpcap
clean:
rm -f *.o $(TARGETS)