Makefile.am 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. INCLUDES = $(OpenSSL_CFLAGS) $(SQLite3_CFLAGS)
  2. LIBS = $(OpenSSL_LIBS) $(SQLite3_LIBS)
  3. CXXFLAGS += -Wall -pedantic -Wshadow -pthread -Werror --std=c++11
  4. bin_PROGRAMS = hermes
  5. nodist_hermes_SOURCES = Configfile.cpp
  6. hermes_SOURCES = Proxy.cpp ServerSocket.cpp Socket.cpp Database.cpp Utils.cpp Exception.cpp hermes.cpp
  7. noinst_HEADERS = Proxy.h ServerSocket.h Socket.h Database.h UnixLogger.cpp FileLogger.h NullLogger.h Logger.h Utils.h Exception.h hermes.h Spf.h
  8. EXTRA_DIST = Configfile.cpp.in Configfile.h.in Configfile.tmpl UnixLogger.cpp UnixLogger.h FileLogger.cpp FileLogger.h
  9. if LOGGER_UNIX
  10. hermes_SOURCES += UnixLogger.cpp
  11. endif
  12. if LOGGER_FILE
  13. hermes_SOURCES += FileLogger.cpp
  14. endif
  15. if HAVE_SPF
  16. hermes_SOURCES += Spf.cpp
  17. LIBS += -lspf2
  18. endif
  19. if WIN32_SERVICE
  20. hermes_SOURCES += win32-service.cpp
  21. endif
  22. Configfile.h: Configfile.cpp.in Configfile.h.in Configfile.tmpl ../docs/hermes-options.html.in ../scripts/generate_config.pl ../config.h
  23. cpp Configfile.tmpl|../scripts/generate_config.pl
  24. Configfile.cpp: Configfile.h Configfile.cpp.in Configfile.h.in Configfile.tmpl ../docs/hermes-options.html.in ../scripts/generate_config.pl ../config.h
  25. *.cpp: Configfile.h