make libubus a dynamic library
This commit is contained in:
parent
768d282ae9
commit
ea76fb270d
2 changed files with 5 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -3,6 +3,8 @@ CMakeCache.txt
|
|||
CMakeFiles
|
||||
*.cmake
|
||||
*.a
|
||||
*.so
|
||||
*.dylib
|
||||
ubus.sock
|
||||
listener
|
||||
ubusd
|
||||
|
|
|
@ -2,7 +2,9 @@ cmake_minimum_required(VERSION 2.8)
|
|||
|
||||
PROJECT(ubus C)
|
||||
ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3)
|
||||
ADD_LIBRARY(ubus STATIC libubus.c)
|
||||
|
||||
ADD_LIBRARY(ubus SHARED libubus.c)
|
||||
TARGET_LINK_LIBRARIES(ubus ubox)
|
||||
|
||||
ADD_EXECUTABLE(ubusd ubusd.c ubusd_id.c ubusd_obj.c ubusd_proto.c)
|
||||
TARGET_LINK_LIBRARIES(ubusd ubox)
|
||||
|
|
Loading…
Reference in a new issue