X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=CMakeLists.txt;h=62e309a99d9ad06239babfe059ca3d4b5a422291;hp=fc1ad3af66bba28558a1a8587929674d3471654e;hb=32f1c6e4679b6e0737616f3e58528531e826a3ce;hpb=0e1ddb8cc10fab53958d5a73329efefaa49b7b12 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 +)