Makefile.am 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 $(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. klish/Makefile.am \
  22. dbs/Makefile.am \
  23. bin/Makefile.am
  24. include $(top_srcdir)/klish/Makefile.am
  25. include $(top_srcdir)/dbs/Makefile.am
  26. include $(top_srcdir)/bin/Makefile.am
  27. define CONTROL
  28. PACKAGE: klish
  29. Version: $(PACKAGE_VERSION)
  30. Architecture: amd64
  31. Depends: faux
  32. Maintainer: pkun
  33. Description: The klish is a framework for implementing a CISCO-like CLI on a UNIX systems. It is configurable by XML files
  34. Homepage: http://klish.libcode.org
  35. endef
  36. export CONTROL
  37. deb: all
  38. mkdir -p deb/DEBIAN
  39. echo "$$CONTROL" > deb/DEBIAN/control
  40. DESTDIR=$(shell pwd)/deb make install
  41. dpkg-deb --build deb/ klish_$(PACKAGE_VERSION).deb