X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=CMakeLists.txt;h=7a97aa6fd5803130850cca128a5efa9ddd0a0cb2;hp=a6e228a05ec8b41c73ee4985340428f6b5784d73;hb=9cabaeb8a525ba050fb2dcf1204b6cb56a65a330;hpb=be8f32edac81aa4d5c24c1cfa109c23c48827997 diff --git a/CMakeLists.txt b/CMakeLists.txt index a6e228a..7a97aa6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 2.6) PROJECT(netifd C) -ADD_DEFINITIONS(-Os -Wall -Werror) +ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -Wmissing-declarations) SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") @@ -11,7 +11,7 @@ IF(APPLE) ENDIF() SET(SOURCES - main.c utils.c + main.c utils.c system.c tunnel.c interface.c interface-ip.c interface-event.c proto.c proto-static.c proto-shell.c config.c device.c bridge.c vlan.c ubus.c) @@ -32,10 +32,14 @@ ELSE() ENDIF() IF(DEBUG) - ADD_DEFINITIONS(-DDEBUG -O0 --std=gnu99 -g3) + ADD_DEFINITIONS(-DDEBUG -g3) ENDIF() ADD_EXECUTABLE(netifd ${SOURCES}) TARGET_LINK_LIBRARIES(netifd ${LIBS}) + +INSTALL(TARGETS netifd + RUNTIME DESTINATION sbin +)