projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
alias: if the underlying device changes (or goes away), set the device present status...
[project/netifd.git]
/
CMakeLists.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
a57123e
..
74cb080
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-1,7
+1,7
@@
cmake_minimum_required(VERSION 2.6)
PROJECT(netifd C)
cmake_minimum_required(VERSION 2.6)
PROJECT(netifd C)
-ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99)
+ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99
-Wmissing-declarations
)
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
@@
-11,10
+11,12
@@
IF(APPLE)
ENDIF()
SET(SOURCES
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
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)
SET(LIBS
ubox ubus uci json blobmsg_json)
@@
-33,6
+35,9
@@
ENDIF()
IF(DEBUG)
ADD_DEFINITIONS(-DDEBUG -g3)
IF(DEBUG)
ADD_DEFINITIONS(-DDEBUG -g3)
+ IF(NO_OPTIMIZE)
+ ADD_DEFINITIONS(-O0)
+ ENDIF()
ENDIF()
ENDIF()