Implement cmake build system
This commit is contained in:
parent
9b2b7ccf0a
commit
400777aaee
16 changed files with 2057 additions and 916 deletions
|
|
@ -1,4 +1,3 @@
|
|||
#include "../config.h"
|
||||
|
||||
* comments MUST begin with a #.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -19,6 +19,8 @@
|
|||
*/
|
||||
#include "FileLogger.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
extern Configfile cfg;
|
||||
extern __thread unsigned long connection_id;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
#ifndef FILELOGGER_H
|
||||
#define FILELOGGER_H
|
||||
|
||||
#include "config.h"
|
||||
#include <stdio.h>
|
||||
#include <pthread.h>
|
||||
#include <string>
|
||||
|
|
|
|||
|
|
@ -1,33 +0,0 @@
|
|||
INCLUDES = $(OpenSSL_CFLAGS) $(SQLite3_CFLAGS)
|
||||
LIBS = $(OpenSSL_LIBS) $(SQLite3_LIBS)
|
||||
CXXFLAGS += -Wall -pedantic -Wshadow -pthread -Werror --std=c++11
|
||||
|
||||
bin_PROGRAMS = hermes
|
||||
nodist_hermes_SOURCES = Configfile.cpp
|
||||
hermes_SOURCES = Proxy.cpp ServerSocket.cpp Socket.cpp Database.cpp Utils.cpp Exception.cpp hermes.cpp
|
||||
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
|
||||
EXTRA_DIST = Configfile.cpp.in Configfile.h.in Configfile.tmpl UnixLogger.cpp UnixLogger.h FileLogger.cpp FileLogger.h
|
||||
|
||||
if LOGGER_UNIX
|
||||
hermes_SOURCES += UnixLogger.cpp
|
||||
endif
|
||||
|
||||
if LOGGER_FILE
|
||||
hermes_SOURCES += FileLogger.cpp
|
||||
endif
|
||||
|
||||
if HAVE_SPF
|
||||
hermes_SOURCES += Spf.cpp
|
||||
LIBS += -lspf2
|
||||
endif
|
||||
|
||||
if WIN32_SERVICE
|
||||
hermes_SOURCES += win32-service.cpp
|
||||
endif
|
||||
|
||||
Configfile.h: Configfile.cpp.in Configfile.h.in Configfile.tmpl ../docs/hermes-options.html.in ../scripts/generate_config.pl ../config.h
|
||||
cpp Configfile.tmpl|../scripts/generate_config.pl
|
||||
|
||||
Configfile.cpp: Configfile.h Configfile.cpp.in Configfile.h.in Configfile.tmpl ../docs/hermes-options.html.in ../scripts/generate_config.pl ../config.h
|
||||
|
||||
*.cpp: Configfile.h
|
||||
|
|
@ -20,7 +20,6 @@
|
|||
#ifndef SERVERSOCKET_H
|
||||
#define SERVERSOCKET_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#ifdef WIN32
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
*
|
||||
* @author Juan José Gutiérrez de Quevedo <juanjo@gutierrezdequevedo.com>
|
||||
*/
|
||||
#include "config.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <list>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
#ifndef SMTPPROXY_H
|
||||
#define SMTPPROXY_H
|
||||
|
||||
#include "config.h"
|
||||
#include "Exception.h"
|
||||
#include <assert.h>
|
||||
#include <string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue