summaryrefslogtreecommitdiffstats
path: root/src/customdhcpcd
diff options
context:
space:
mode:
Diffstat (limited to 'src/customdhcpcd')
-rw-r--r--src/customdhcpcd/CMakeLists.txt15
-rw-r--r--src/customdhcpcd/logwriter.c2
2 files changed, 5 insertions, 12 deletions
diff --git a/src/customdhcpcd/CMakeLists.txt b/src/customdhcpcd/CMakeLists.txt
index a716a5a..f257ab2 100644
--- a/src/customdhcpcd/CMakeLists.txt
+++ b/src/customdhcpcd/CMakeLists.txt
@@ -1,17 +1,10 @@
-cmake_minimum_required(VERSION 2.8)
-
-project(customdhcpdcd)
-
-set(CMAKE_C_FLAGS "-lrt")
-
-set(CUSTOMDHCPCD_SOURCES arp.c configure.c info.c logger.c socket.c client.c discover.c interface.c logwriter.c
-common.c dhcp.c duid.c ipv4ll.c signal.c)
-
-#file(GLOB_RECURSE CUSTOMDHCPCD_SOURCES *.c)
+file(GLOB_RECURSE CUSTOMDHCPCD_SOURCES *.c)
file(GLOB_RECURSE CUSTOMDHCPCD_HEADERS *.h)
add_library(customdhcpcd SHARED ${CUSTOMDHCPCD_SOURCES} ${CUSTOMDHCPCD_HEADERS})
+target_link_libraries(customdhcpcd rt)
#add_executable(customdhcpcd ${CUSTOMDHCPCD_SOURCES})
add_executable(cdhcpcd dhcpcd.c)
-target_link_libraries(cdhcpcd customdhcpcd )
+set_target_properties(cdhcpcd PROPERTIES LINKER_LANGUAGE C)
+target_link_libraries(cdhcpcd customdhcpcd)
diff --git a/src/customdhcpcd/logwriter.c b/src/customdhcpcd/logwriter.c
index e3316cb..5437438 100644
--- a/src/customdhcpcd/logwriter.c
+++ b/src/customdhcpcd/logwriter.c
@@ -89,7 +89,7 @@ void sendToQt(log_msg * msg)
msg->substatus, msg->msg);
if (ret < 1)
{
- log ger(LOG_INFO, "[fbgui] ERROR filling message buffer");
+ logger(LOG_INFO, "[fbgui] ERROR filling message buffer");
//syslog(LOG_INFO, "[fbgui] ERROR filling message buffer");
return;
}