Makefile.am 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. AM_CFLAGS = -Wall $(DEBUG_CFLAGS) $(LEGACY_CFLAGS)
  14. #AM_CFLAGS = -ansi -pedantic -Werror -Wall -D_POSIX_C_SOURCE=199309 -DVERSION=$(VERSION) $(DEBUG_CFLAGS)
  15. bin_PROGRAMS =
  16. lib_LTLIBRARIES =
  17. lib_LIBRARIES =
  18. nobase_include_HEADERS =
  19. EXTRA_DIST = \
  20. bin/module.am \
  21. clish/module.am \
  22. lub/module.am \
  23. tinyrl/module.am \
  24. konf/module.am \
  25. plugins/module.am \
  26. libc/module.am \
  27. doc/module.am \
  28. contrib \
  29. xml-examples \
  30. debian \
  31. clish.xsd \
  32. LICENCE \
  33. README \
  34. CHANGES \
  35. ISSUES
  36. include $(top_srcdir)/lub/module.am
  37. include $(top_srcdir)/tinyrl/module.am
  38. include $(top_srcdir)/konf/module.am
  39. include $(top_srcdir)/clish/module.am
  40. include $(top_srcdir)/bin/module.am
  41. include $(top_srcdir)/plugins/module.am
  42. include $(top_srcdir)/libc/module.am
  43. include $(top_srcdir)/doc/module.am
  44. define CONTROL
  45. PACKAGE: klish
  46. Version: $(PACKAGE_VERSION)
  47. Architecture: amd64
  48. Depends: faux
  49. Maintainer: pkun
  50. Description: The klish is a framework for implementing a CISCO-like CLI on a UNIX systems. It is configurable by XML files
  51. Homepage: http://klish.libcode.org
  52. endef
  53. export CONTROL
  54. deb: all
  55. mkdir -p deb/DEBIAN
  56. echo "$$CONTROL" > deb/DEBIAN/control
  57. DESTDIR=$(shell pwd)/deb make install
  58. dpkg-deb --build deb/ klish_$(PACKAGE_VERSION).deb