File: makefile

package info (click to toggle)
zlog 1.2.18-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,224 kB
  • sloc: ansic: 7,691; makefile: 266; sh: 54
file content (41 lines) | stat: -rwxr-xr-x 669 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
37
38
39
40
41
exe = 		\
	test_tmp	\
	test_longlog	\
	test_buf	\
	test_bitmap	\
	test_conf	\
	test_conf2  \
	test_hashtable	\
	test_hello	\
	test_hex	\
	test_init	\
	test_level	\
	test_leak	\
	test_mdc	\
	test_multithread	\
	test_record	\
	test_pipe	\
	test_press_zlog		\
	test_press_zlog2	\
	test_press_write	\
	test_press_write2	\
	test_press_syslog	\
	test_syslog	\
	test_default	\
	test_profile	\
	test_category   \
	test_prompt	\
	test_enabled

all     :       $(exe)

$(exe)  :       %:%.o
	gcc -O2 -g -o $@ $^ -L../src -lzlog -lpthread -Wl,-rpath ../src

.c.o	:
	gcc -O2 -g -Wall -D_GNU_SOURCE -o $@ -c $< -I. -I../src

clean	:
	rm -f press.log* *.o $(exe)

.PHONY : clean all