Makefile.am 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. CPPFLAGS = -DSBINDIR='"$(sbindir)"'
  16. man_MANS = pptpctrl.8 pptpd.8 pptpd.conf.5
  17. EXTRA_DIST = \
  18. html README* ChangeLog NEWS TODO $(man_MANS) \
  19. samples/chap-secrets samples/options.pptpd samples/pptpd.conf \
  20. Makefile.uClinux config.embed.h version reconf \
  21. tools/pptp-portslave tools/vpnstats tools/vpnstats.pl tools/vpnuser \
  22. pptpd.init pptpd.spec makepackage \
  23. plugins/Makefile plugins/*.h plugins/*.c \
  24. debian/README.debian debian/changelog debian/conffiles debian/config \
  25. debian/control debian/copyright debian/dirs debian/docs \
  26. debian/examples debian/pptpd-options debian/pptpd.conf \
  27. debian/pptpd.init debian/pptpdconfig.pl debian/rules debian/templates \
  28. debian/po/POTFILES.in debian/po/fr.po debian/po/pt_BR.po \
  29. debian/po/templates.pot
  30. EXTRA_PROGRAMS =
  31. sbin_PROGRAMS = pptpd pptpctrl bcrelay
  32. # Header files are only used to determine what to put in a distribution, not
  33. # for dependencies, so just attribute them all to pptpd.
  34. pptpd_SOURCES = \
  35. pqueue.c pptpd.c configfile.c pptpmanager.c compat.c inststr.c getopt.c getopt1.c \
  36. pqueue.h compat.h configfile.h ctrlpacket.h defaults.h inststr.h our_getopt.h \
  37. our_syslog.h ppphdlc.h pptpctrl.h pptpdefs.h pptpgre.h pptpmanager.h
  38. pptpctrl_SOURCES = \
  39. pqueue.c pptpctrl.c ctrlpacket.c inststr.c compat.c pptpgre.c ppphdlc.c
  40. pptpd_LDADD = $(XTRALIBS_MGR)
  41. pptpctrl_LDADD = $(XTRALIBS_CTRL)
  42. bcrelay_SOURCES = bcrelay.c defaults.h our_syslog.h our_getopt.h
  43. subdirs = plugins
  44. all-local:
  45. for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d all; done
  46. install-exec-local:
  47. for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d prefix=$(prefix) DESTDIR=$(DESTDIR) install; done
  48. clean-local:
  49. for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d clean; done
  50. uninstall-local:
  51. for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d prefix=$(prefix) DESTDIR=$(DESTDIR) uninstall; done
  52. package: deb rpm
  53. deb:
  54. fakeroot dpkg-buildpackage -us -uc
  55. rpm:
  56. fakeroot rpmbuild -ta pptpd-$(VERSION).tar.gz
  57. ##CLEANFILES =
  58. ## DO NOT ADD BELOW THIS POINT, DEPS ARE AUTOMATICALLY ADDED
  59. bcrelay.o: bcrelay.c config.h defaults.h our_syslog.h our_getopt.h
  60. compat.o: compat.c config.h compat.h our_syslog.h inststr.h
  61. configfile.o: configfile.c config.h defaults.h configfile.h our_syslog.h
  62. ctrlpacket.o: ctrlpacket.c config.h our_syslog.h pptpdefs.h pptpctrl.h \
  63. ctrlpacket.h compat.h
  64. getopt.o: getopt.c config.h our_getopt.h
  65. getopt1.o: getopt1.c config.h our_getopt.h
  66. inststr.o: inststr.c config.h inststr.h compat.h
  67. ppphdlc.o: ppphdlc.c config.h ppphdlc.h
  68. pptpctrl.o: pptpctrl.c config.h our_syslog.h compat.h pptpctrl.h \
  69. pptpgre.h pptpdefs.h ctrlpacket.h defaults.h
  70. pptpd.o: pptpd.c config.h our_syslog.h our_getopt.h configfile.h \
  71. defaults.h compat.h pptpmanager.h
  72. pptpgre.o: pptpgre.c config.h our_syslog.h ppphdlc.h pptpgre.h pptpdefs.h \
  73. pptpctrl.h defaults.h pqueue.h compat.h
  74. pptpmanager.o: pptpmanager.c config.h our_syslog.h configfile.h \
  75. defaults.h pptpctrl.h pptpdefs.h pptpmanager.h compat.h
  76. pqueue.o: pqueue.c pqueue.h