summaryrefslogtreecommitdiff
path: root/Makefile
blob: 776ea601f37218616b214d49e23793a33548e459 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
include Makefile.files

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