Makefile.am 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 TESTC
  11. TESTC_CFLAGS = -DTESTC
  12. endif
  13. AM_CFLAGS = -Wall -Wextra $(DEBUG_CFLAGS) $(TESTC_CFLAGS)
  14. AM_LDFLAGS = -z relro -z now -z defs
  15. bin_PROGRAMS =
  16. lib_LTLIBRARIES =
  17. lib_LIBRARIES =
  18. nobase_include_HEADERS =
  19. noinst_HEADERS =
  20. EXTRA_DIST = \
  21. bin/Makefile.am \
  22. dbs/Makefile.am \
  23. docs/Makefile.am \
  24. examples/Makefile.am \
  25. klish/Makefile.am \
  26. tinyrl/Makefile.am \
  27. plugins/Makefile.am \
  28. klish.xsd \
  29. LICENCE \
  30. README.md
  31. include $(top_srcdir)/bin/Makefile.am
  32. include $(top_srcdir)/dbs/Makefile.am
  33. include $(top_srcdir)/docs/Makefile.am
  34. include $(top_srcdir)/examples/Makefile.am
  35. include $(top_srcdir)/klish/Makefile.am
  36. include $(top_srcdir)/tinyrl/Makefile.am
  37. include $(top_srcdir)/plugins/Makefile.am
  38. define CONTROL
  39. PACKAGE: klish
  40. Version: $(PACKAGE_VERSION)
  41. Architecture: amd64
  42. Depends: faux
  43. Maintainer: pkun
  44. Description: The klish is a framework for implementing a CISCO-like CLI on a UNIX systems. It is configurable by XML files
  45. Homepage: http://klish.libcode.org
  46. endef
  47. export CONTROL
  48. deb: all
  49. mkdir -p deb/DEBIAN
  50. echo "$$CONTROL" > deb/DEBIAN/control
  51. DESTDIR=$(shell pwd)/deb make install
  52. dpkg-deb --build deb/ klish_$(PACKAGE_VERSION).deb