Makefile.am 1.2 KB

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