1
0

Makefile.am 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. Maintainer: pkun
  49. Description: The klish is a framework for implementing a CISCO-like CLI on a UNIX systems. It is configurable by XML files
  50. Homepage: http://klish.libcode.org
  51. endef
  52. export CONTROL
  53. deb: all
  54. mkdir -p deb/DEBIAN
  55. echo "$$CONTROL" > deb/DEBIAN/control
  56. DESTDIR=$(shell pwd)/deb make install
  57. dpkg-deb --build deb/ klish_$(PACKAGE_VERSION).deb