OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
788 B

  1. diff -up dhcprelay-1.2/Makefile.make dhcprelay-1.2/Makefile
  2. --- dhcprelay-1.2/Makefile.make 2006-03-21 03:46:28.000000000 +0100
  3. +++ dhcprelay-1.2/Makefile 2011-01-11 13:41:19.351123143 +0100
  4. @@ -1,8 +1,22 @@
  5. +CC = gcc
  6. +CFLAGS = -O2 -Wall -W -D_BSD_SOURCE
  7. +LIBS = -lpcap -ldnet
  8. +
  9. +prefix=/usr/local
  10. +sbindir=$(prefix)/sbin
  11. +
  12. +all: dhcprelay
  13. +
  14. dhcprelay: dhcprelay.o
  15. - gcc -g -o $@ -Wall -L/usr/local/lib -lpcap -ldnet $>
  16. + $(CC) $(LDFLAGS) -g -o $@ -Wall -L/usr/local/lib $< $(LIBS)
  17. dhcprelay.o: dhcprelay.c
  18. - gcc -g -c -o $@ -Wall -I/usr/local/include $<
  19. + $(CC) $(CFLAGS) -g -c -o $@ -Wall -I/usr/local/include $<
  20. clean:
  21. rm -f dhcprelay.o dhcprelay dhcprelay.core
  22. +
  23. +install:
  24. + mkdir -p $(DESTDIR)$(sbindir)
  25. + chmod 755 dhcprelay
  26. + cp -f dhcprelay $(DESTDIR)$(sbindir)