X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=CMakeLists.txt;h=4ef4dfaa75045db305c79aeb56dcb615a7bc609f;hb=3b5a5c3e99a4ceb1428d58aecc38d5adf9438541;hp=8982a0d565e30c1c74916e69ff7f4bad81a94624;hpb=11bd51d22596cf26be9ba486d52ef336b4035cae;p=project%2Fnetifd.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 8982a0d..4ef4dfa 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,10 +11,12 @@ 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) + config.c device.c bridge.c vlan.c alias.c + ubus.c) + SET(LIBS ubox ubus uci json blobmsg_json) @@ -32,7 +34,7 @@ ELSE() ENDIF() IF(DEBUG) - ADD_DEFINITIONS(-DDEBUG -O0 --std=gnu99 -g3) + ADD_DEFINITIONS(-DDEBUG -g3) ENDIF()