freebsd-ports/net/dhcprelay/files/patch-Makefile
Dmitry Marakasov 2dbcaf0cee - Add LICENSE
- Respect CFLAGS/LDFLAGS
2016-11-25 09:31:21 +00:00

15 lines
426 B
Text

--- Makefile.orig 2006-03-21 02:46:28 UTC
+++ Makefile
@@ -1,8 +1,10 @@
+all: dhcprelay
+
dhcprelay: dhcprelay.o
- gcc -g -o $@ -Wall -L/usr/local/lib -lpcap -ldnet $>
+ ${CC} ${LDFLAGS} -o $@ -Wall -L${LOCALBASE}/lib -lpcap -ldnet $>
dhcprelay.o: dhcprelay.c
- gcc -g -c -o $@ -Wall -I/usr/local/include $<
+ ${CC} ${CFLAGS} -c -o $@ -Wall -I${LOCALBASE}/include $<
clean:
rm -f dhcprelay.o dhcprelay dhcprelay.core