summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-04-11 00:31:48 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-04-11 00:31:48 +0200
commit75f1e6f6b12f9fe461e4afa5bf3c998d21d48394 (patch)
tree77420f3134189dc5bce5b0d3fe77826b66f702aa /plugin
parent10fd2098416c78958a199f31480bd363eaa76212 (diff)
downloadeurephia-75f1e6f6b12f9fe461e4afa5bf3c998d21d48394.tar.gz
eurephia-75f1e6f6b12f9fe461e4afa5bf3c998d21d48394.tar.xz
eurephia-75f1e6f6b12f9fe461e4afa5bf3c998d21d48394.zip
Rewritten CMake rules to build common/ as static library
This static library is later on linked in. This is to avoid recompiling the same source files several times during a complete eurephia compilation.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/CMakeLists.txt16
-rw-r--r--plugin/firewall/iptables/CMakeLists.txt3
2 files changed, 5 insertions, 14 deletions
diff --git a/plugin/CMakeLists.txt b/plugin/CMakeLists.txt
index 2ac083e..21ab780 100644
--- a/plugin/CMakeLists.txt
+++ b/plugin/CMakeLists.txt
@@ -1,20 +1,12 @@
PROJECT(eurephia-plugin C)
cmake_minimum_required(VERSION 2.6)
SET(eurephia_auth_SRC
- ../common/certinfo.c
eurephia-auth.c
eurephia.c
- ../database/eurephiadb.c
eurephiadb_session.c
- firewall/eurephiafw.c
- firewall/eurephiafw_helpers.c
- ../common/eurephia_getsym.c
- ../common/eurephia_log.c
- ../common/eurephia_values.c
+ firewall/eurephiafw.c
+ firewall/eurephiafw_helpers.c
../common/eurephiadb_session_common.c
- ../common/passwd.c
- ../common/sha512.c
- ../common/randstr.c
)
SET(subdirs "")
IF(FW_IPTABLES)
@@ -44,11 +36,11 @@ ENDIF(NOT HAVE_RT_MQ_OPEN OR NOT HAVE_RT_MQ_CLOSE OR NOT HAVE_RT_MQ_UNLINK OR NO
INCLUDE_DIRECTORIES(../common ../database ./firewall .)
ADD_LIBRARY(eurephia-auth MODULE ${eurephia_auth_SRC})
-TARGET_LINK_LIBRARIES(eurephia-auth dl pthread rt crypto)
+TARGET_LINK_LIBRARIES(eurephia-auth dl pthread rt crypto common)
SET_TARGET_PROPERTIES(eurephia-auth PROPERTIES OUTPUT_NAME eurephia-auth PREFIX "")
INSTALL(TARGETS eurephia-auth LIBRARY DESTINATION ${PLUGINDIR})
IF(subdirs)
- SUBDIRS(${subdirs})
+ ADD_SUBDIRECTORY(${subdirs})
ENDIF(subdirs)
diff --git a/plugin/firewall/iptables/CMakeLists.txt b/plugin/firewall/iptables/CMakeLists.txt
index 69173d7..789a237 100644
--- a/plugin/firewall/iptables/CMakeLists.txt
+++ b/plugin/firewall/iptables/CMakeLists.txt
@@ -3,11 +3,10 @@ cmake_minimum_required(VERSION 2.6)
SET(efw_ipt_SRC
efw-iptables.c
../eurephiafw_helpers.c
- ../../../common/eurephia_log.c
)
INCLUDE_DIRECTORIES(BEFORE ../..)
ADD_LIBRARY(efw-iptables MODULE ${efw_ipt_SRC})
-TARGET_LINK_LIBRARIES(efw-iptables pthread rt gcc_s)
+TARGET_LINK_LIBRARIES(efw-iptables pthread rt gcc_s common)
SET_TARGET_PROPERTIES(efw-iptables PROPERTIES PREFIX "")
INSTALL(TARGETS efw-iptables LIBRARY DESTINATION ${PLUGINDIR})