diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-12-13 11:01:43 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-12-13 11:01:43 +0100 |
commit | 1c9de14fb39305fb643d50acde6c389330d07ac2 (patch) | |
tree | 8db38d95be0950cf1d026c56a442a74961e0724f /Makefile | |
parent | 84cb79efbb1080861e7c630d3ac4fed12342e5af (diff) |
Make several build targets.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -1,4 +1,20 @@ include Makefile.files -all: - g++ -Werror -Wall -D_FORTIFY_SOURCE=2 -g -O2 ${DEBUG_SOURCES} main.c -o debug -DWITH_DBG_SYSLOG -DWITH_DEBUG +CFLAGS=-Werror -Wall -D_FORTIFY_SOURCE=2 -g -O2 + +all: complete simple syslog filter mutex + +complete: + g++ ${CFLAGS} ${DEBUG_SOURCES} main_complete.c -o debug-complete -DWITH_DBG_SYSLOG -DWITH_DBG_FILTER -DWITH_DBG_MUTEX + +simple: + g++ ${CFLAGS} debug.c main_simple.c -o debug-simple + +syslog: + g++ ${CFLAGS} debug.c debug_syslog.c main_syslog.c -o debug-syslog -DWITH_DBG_SYSLOG + +filter: + g++ ${CFLAGS} debug.c debug_filter.c main_filter.c -o debug-filter -DWITH_DBG_FILTER + +mutex: + g++ ${CFLAGS} debug.c main_simple.c -o debug-mutex -DWITH_DBG_MUTEX |