summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2012-12-13 11:11:17 +0100
committerJonas Suhr Christensen <jsc@umbraculum.org>2012-12-13 11:11:17 +0100
commit47cf951c0440b5f37df563ffc25d44bce54926a3 (patch)
tree6c38d99361d60516e06b1bcc77acf25cebb43d8c /Makefile
parent1749a562db8cc7a7a4529ba0b046a3439fa15190 (diff)
parent5cd302b0990c337cfce3ecac390b2976f1598fd6 (diff)
Merge branch 'master' of https://git.oftal.dk/debug
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 18 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 89cf611..776ea60 100644
--- a/Makefile
+++ b/Makefile
@@ -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_mutex.c -o debug-mutex -DWITH_DBG_MUTEX