Makefile.am 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. # We have our own, simpler dependencies stuff in 'reconf'
  2. AUTOMAKE_OPTIONS = no-dependencies foreign
  3. @SET_MAKE@
  4. export LIBDIR=$(libdir)/pptpd
  5. INCLUDES = -I.
  6. ## Change this if you don't have gcc
  7. ## -pedantic removed for now (OpenBSD header files).
  8. ## -Werror removed for now (getopt stuff on OSF/1 throws a
  9. ## warning with -Wmissing-prototypes).
  10. ## -Wmissing-prototypes removed (eg, Linux 2.2.6 headers
  11. ## aren't up to it).
  12. CFLAGS = -O2 -fno-builtin -Wall -DSBINDIR='"$(sbindir)"'
  13. #CFLAGS = -O2 -fno-builtin -Wall -ansi -DSBINDIR='"$(sbindir)"'
  14. #CFLAGS = -O2 -fno-builtin -Wall -ansi -pedantic -Wmissing-prototypes -Werror -DSBINDIR='"$(sbindir)"'
  15. man_MANS = pptpctrl.8 pptpd.8 pptpd.conf.5
  16. EXTRA_DIST = \
  17. html README* ChangeLog NEWS TODO $(man_MANS) \
  18. samples/chap-secrets samples/options.pptpd samples/pptpd.conf \
  19. Makefile.uClinux config.embed.h version reconf \
  20. tools/pptp-portslave tools/vpnstats tools/vpnstats.pl tools/vpnuser \
  21. pptpd.init pptpd.spec makepackage \
  22. plugins/Makefile plugins/*.h plugins/*.c \
  23. debian/README.debian debian/changelog debian/conffiles debian/config \
  24. debian/control debian/copyright debian/dirs debian/docs \
  25. debian/examples debian/pptpd-options debian/pptpd.conf \
  26. debian/pptpd.init debian/pptpdconfig.pl debian/rules debian/templates \
  27. debian/po/POTFILES.in debian/po/fr.po debian/po/pt_BR.po \
  28. debian/po/templates.pot
  29. EXTRA_PROGRAMS =
  30. sbin_PROGRAMS = pptpd pptpctrl bcrelay
  31. # Header files are only used to determine what to put in a distribution, not
  32. # for dependencies, so just attribute them all to pptpd.
  33. pptpd_SOURCES = \
  34. pqueue.c pptpd.c configfile.c pptpmanager.c compat.c inststr.c getopt.c getopt1.c \
  35. pqueue.h compat.h configfile.h ctrlpacket.h defaults.h inststr.h our_getopt.h \
  36. our_syslog.h ppphdlc.h pptpctrl.h pptpdefs.h pptpgre.h pptpmanager.h
  37. pptpctrl_SOURCES = \
  38. pqueue.c pptpctrl.c ctrlpacket.c inststr.c compat.c pptpgre.c ppphdlc.c
  39. pptpd_LDADD = $(XTRALIBS_MGR)
  40. pptpctrl_LDADD = $(XTRALIBS_CTRL)
  41. bcrelay_SOURCES = bcrelay.c defaults.h our_syslog.h our_getopt.h
  42. subdirs = plugins
  43. all-local:
  44. for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d all; done
  45. install-exec-local:
  46. for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d prefix=$(prefix) DESTDIR=$(DESTDIR) install; done
  47. clean-local:
  48. for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d clean; done
  49. uninstall-local:
  50. for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d prefix=$(prefix) DESTDIR=$(DESTDIR) uninstall; done
  51. package: deb rpm
  52. deb:
  53. fakeroot dpkg-buildpackage -us -uc
  54. rpm:
  55. fakeroot rpmbuild -ta pptpd-$(VERSION).tar.gz
  56. ##CLEANFILES =
  57. ## DO NOT ADD BELOW THIS POINT, DEPS ARE AUTOMATICALLY ADDED
  58. bcrelay.o: bcrelay.c config.h defaults.h our_syslog.h our_getopt.h
  59. compat.o: compat.c config.h compat.h our_syslog.h inststr.h
  60. configfile.o: configfile.c config.h defaults.h configfile.h our_syslog.h
  61. ctrlpacket.o: ctrlpacket.c config.h our_syslog.h pptpdefs.h pptpctrl.h \
  62. ctrlpacket.h compat.h
  63. getopt.o: getopt.c config.h our_getopt.h
  64. getopt1.o: getopt1.c config.h our_getopt.h
  65. inststr.o: inststr.c config.h inststr.h compat.h
  66. ppphdlc.o: ppphdlc.c config.h ppphdlc.h
  67. pptpctrl.o: pptpctrl.c config.h our_syslog.h compat.h pptpctrl.h \
  68. pptpgre.h pptpdefs.h ctrlpacket.h defaults.h
  69. pptpd.o: pptpd.c config.h our_syslog.h our_getopt.h configfile.h \
  70. defaults.h compat.h pptpmanager.h
  71. pptpgre.o: pptpgre.c config.h our_syslog.h ppphdlc.h pptpgre.h pptpdefs.h \
  72. pptpctrl.h defaults.h pqueue.h compat.h
  73. pptpmanager.o: pptpmanager.c config.h our_syslog.h configfile.h \
  74. defaults.h pptpctrl.h pptpdefs.h pptpmanager.h compat.h
  75. pqueue.o: pqueue.c pqueue.h