summaryrefslogtreecommitdiff
path: root/Makefile
blob: c397c535ec4ac88eb8c0f3f64735760d94875a5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
include Makefile.files

CFLAGS=-Werror -Wall -D_FORTIFY_SOURCE=2 -g -O2

all: complete complete-cpp simple syslog filter mutex minimal

complete:
	gcc ${CFLAGS} ${DEBUG_SOURCES} main_complete.c -o debug-complete -DWITH_DBG_SYSLOG -DWITH_DBG_FILTER -DWITH_DBG_MUTEX

complete-cpp:
	g++ ${CFLAGS} ${DEBUG_SOURCES} main_complete.c -o debug-complete-cpp -DWITH_DBG_SYSLOG -DWITH_DBG_FILTER -DWITH_DBG_MUTEX

simple:
	gcc ${CFLAGS} debug.c main_simple.c -o debug-simple

minimal:
	gcc ${CFLAGS} debug.c main_minimal.c -o debug-minimal

syslog:
	gcc ${CFLAGS} debug.c debug_syslog.c main_syslog.c -o debug-syslog -DWITH_DBG_SYSLOG

filter:
	gcc ${CFLAGS} debug.c debug_filter.c main_filter.c -o debug-filter -DWITH_DBG_FILTER

mutex:
	gcc ${CFLAGS} debug.c main_mutex.c -o debug-mutex -DWITH_DBG_MUTEX

clean:
	rm -f debug_{complete,complete-cpp,simple,syslog,filter,mutex,minimal}