From a1545f995346f16f3df657b5f494c699890bd1f4 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 26 May 2013 16:31:50 +0200 Subject: [PATCH] initial dummy --- .gitignore | 7 +++++++ CMakeLists.txt | 20 ++++++++++++++++++++ main.c | 6 ++++++ 3 files changed, 33 insertions(+) create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 main.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0c4ef2c --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +usbmode +.* +Makefile +CMakeCache.txt +CMakeFiles +*.cmake +install_manifest.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..17914a7 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,20 @@ +cmake_minimum_required(VERSION 2.6) + +PROJECT(usbmode C) +ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations) + +SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") + +SET(SOURCES main.c) +SET(LIBS ubox blobmsg_json) + +IF(DEBUG) + ADD_DEFINITIONS(-DDEBUG -g3) +ENDIF() + +ADD_EXECUTABLE(usbmode ${SOURCES}) +TARGET_LINK_LIBRARIES(usbmode ${LIBS}) + +INSTALL(TARGETS usbmode + RUNTIME DESTINATION sbin +) diff --git a/main.c b/main.c new file mode 100644 index 0000000..3fed7e6 --- /dev/null +++ b/main.c @@ -0,0 +1,6 @@ +#include + +int main(int argc, char **argv) +{ + return 0; +} -- 2.25.1