2dbcaf0cee
- Respect CFLAGS/LDFLAGS
15 lines
426 B
Text
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
|