Makefile.am 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. ## Process this file with automake to generate Makefile.in
  2. AUTOMAKE_OPTIONS = foreign nostdinc
  3. ACLOCAL_AMFLAGS = -I m4
  4. AM_CPPFLAGS = -I. -I$(top_srcdir)
  5. AM_LD = $(CC)
  6. VERSION_INFO = -version-info $(SONAME_CURRENT):$(SONAME_REVISION):$(SONAME_AGE)
  7. if DEBUG
  8. DEBUG_CFLAGS = -DDEBUG
  9. endif
  10. if LEGACY
  11. LEGACY_CFLAGS = -DLEGACY
  12. endif
  13. if DISABLE_NSS
  14. NSS_CFLAGS = -DDISABLE_NSS
  15. endif
  16. AM_CFLAGS = -Wall $(DEBUG_CFLAGS) $(LEGACY_CFLAGS) $(NSS_CFLAGS)
  17. #AM_CFLAGS = -ansi -pedantic -Werror -Wall -D_POSIX_C_SOURCE=199309 -DVERSION=$(VERSION) $(DEBUG_CFLAGS)
  18. bin_PROGRAMS =
  19. lib_LTLIBRARIES =
  20. lib_LIBRARIES =
  21. nobase_include_HEADERS =
  22. EXTRA_DIST = \
  23. bin/module.am \
  24. clish/module.am \
  25. lub/module.am \
  26. tinyrl/module.am \
  27. konf/module.am \
  28. plugins/module.am \
  29. libc/module.am \
  30. doc/module.am \
  31. contrib \
  32. xml-examples \
  33. debian \
  34. clish.xsd \
  35. LICENCE \
  36. README \
  37. CHANGES \
  38. ISSUES
  39. include $(top_srcdir)/lub/module.am
  40. include $(top_srcdir)/tinyrl/module.am
  41. include $(top_srcdir)/konf/module.am
  42. include $(top_srcdir)/clish/module.am
  43. include $(top_srcdir)/bin/module.am
  44. include $(top_srcdir)/plugins/module.am
  45. include $(top_srcdir)/libc/module.am
  46. include $(top_srcdir)/doc/module.am
  47. define CONTROL
  48. PACKAGE: klish
  49. Version: $(PACKAGE_VERSION)
  50. Architecture: amd64
  51. Maintainer: pkun
  52. Description: The klish is a framework for implementing a CISCO-like CLI on a UNIX systems. It is configurable by XML files
  53. Homepage: http://klish.libcode.org
  54. endef
  55. export CONTROL
  56. deb: all
  57. mkdir -p deb/DEBIAN
  58. echo "$$CONTROL" > deb/DEBIAN/control
  59. DESTDIR=$(shell pwd)/deb make install
  60. dpkg-deb --build deb/ klish_$(PACKAGE_VERSION).deb