Added dummy executables for task 3 and 4.

This commit is contained in:
Stefan Bühler 2009-06-29 19:56:10 +02:00
parent 74be04d6ed
commit 829b632c53
4 changed files with 55 additions and 0 deletions

View File

@ -47,6 +47,18 @@ ADD_EXECUTABLE(task2
task.c trace.c
)
ADD_EXECUTABLE(task3
bin3.c
task3.c
task.c trace.c
)
ADD_EXECUTABLE(task4
bin4.c
task4.c
task.c trace.c
)
SET(WARN_FLAGS "-g -O2 -g2 -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wcast-align -Wsign-compare -Wnested-externs -Wpointer-arith -Wl,--as-needed")
# -Werror -Wbad-function-cast -Wmissing-prototypes
@ -62,6 +74,12 @@ ADD_TARGET_PROPERTIES(task1 COMPILE_FLAGS ${COMMON_CFLAGS})
ADD_TARGET_PROPERTIES(task2 LINK_FLAGS -lm ${COMMON_LDFLAGS})
ADD_TARGET_PROPERTIES(task2 COMPILE_FLAGS ${COMMON_CFLAGS})
ADD_TARGET_PROPERTIES(task3 LINK_FLAGS -lm ${COMMON_LDFLAGS})
ADD_TARGET_PROPERTIES(task3 COMPILE_FLAGS ${COMMON_CFLAGS})
ADD_TARGET_PROPERTIES(task4 LINK_FLAGS -lm ${COMMON_LDFLAGS})
ADD_TARGET_PROPERTIES(task4 COMPILE_FLAGS ${COMMON_CFLAGS})
IF(CMAKE_COMPILER_IS_GNUCC)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wall -g -Wshadow -W -pedantic")
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2")

1
ovm/bin4.c Symbolic link
View File

@ -0,0 +1 @@
../task/bin4.c

18
ovm/task3.c Normal file
View File

@ -0,0 +1,18 @@
#include "task_main.h"
static void debug(task_t * task) {
}
static void run(task_t *task, gpointer userdata) {
UNUSED(userdata);
}
static void run_debug(task_t *task, gpointer userdata) {
debug(task);
run(task, userdata);
}
int main(int argc, char **argv) {
task_main(argc, argv, run, run_debug, NULL, 2001);
return 0;
}

18
ovm/task4.c Normal file
View File

@ -0,0 +1,18 @@
#include "task_main.h"
static void debug(task_t * task) {
}
static void run(task_t *task, gpointer userdata) {
UNUSED(userdata);
}
static void run_debug(task_t *task, gpointer userdata) {
debug(task);
run(task, userdata);
}
int main(int argc, char **argv) {
task_main(argc, argv, run, run_debug, NULL, 2001);
return 0;
}