diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fc1ad3a..62e309a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,10 +10,10 @@ IF(APPLE) LINK_DIRECTORIES(/opt/local/lib) ENDIF() -SET(SOURCES main.c ubus.c service.c instance.c utils.c md5.c hotplug-rule.c hotplug.c) +SET(SOURCES main.c ubus.c service.c instance.c utils.c md5.c hotplug.c state.c mkdev.c early.c inittab.c preinit.c coldplug.c syslog.c log.c watchdog.c signal.c system.c debug.c) find_library(json NAMES json-c json) -SET(LIBS ubox ubus ${json} blobmsg_json) +SET(LIBS ubox ubus ${json} blobmsg_json json_script) IF(DEBUG) ADD_DEFINITIONS(-DDEBUG -g3) @@ -26,3 +26,22 @@ TARGET_LINK_LIBRARIES(procd ${LIBS}) INSTALL(TARGETS procd RUNTIME DESTINATION sbin ) + +ADD_EXECUTABLE(askfirst askfirst.c) + +INSTALL(TARGETS askfirst + RUNTIME DESTINATION sbin +) + +ADD_EXECUTABLE(udevtrigger udevtrigger.c) + +INSTALL(TARGETS udevtrigger + RUNTIME DESTINATION sbin +) + +ADD_EXECUTABLE(logread logread.c) +TARGET_LINK_LIBRARIES(logread ${LIBS}) + +INSTALL(TARGETS logread + RUNTIME DESTINATION sbin +) |