~samiam/MaraDNS

ref: 3.5.0021 MaraDNS/parse/Makefile -rw-r--r-- 2.3 KiB
ca00f282 — Sam Trenholme MaraDNS release 3.5.0021 4 months ago
                                                                                
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
JOBJS=../libs/JsStr.o ../libs/JsStrOS.o ../libs/JsStrCP.o 
MHOBJS=../libs/MaraHash.o
POBJ3=Csv2_rr_soa.o Csv2_database.o Csv2_rr_txt.o Csv2_rr_wks.o
POBJ2=Csv2_read.o Csv2_main.o Csv2_parse.o Csv2_rr_a.o Csv2_rr_aaaa.o $(POBJ3)
OUTOBJ=Csv2_esc_txt.o
POBJECTS=ParseMaraRc.o ParseCsv1.o ParseIpAcl.o Parse_ipv6.o $(POBJ2)
DOBJECTS=../dns/Queries.o ../dns/Compress.o ../dns/bobbit.o ../dns/Decompress.o
OBJECTS=$(JOBJS) $(MHOBJS) $(POBJECTS) $(DOBJECTS) $(OUTOBJ)
EXECS=parsetest parsetest2

#FLAGS = -g -Wall $(DEBUG)
#FLAGS = -g $(DEBUG)

all: $(POBJECTS) $(OUTOBJ)

clean:
	rm -f $(POBJECTS) core $(EXECS) $(OUTOBJ)

../libs/tests:
	cd libs ; make

ParseMaraRc.o: ParseMaraRc.c ../libs/JsStr.h ../libs/MaraHash.h ../MaraDns.h ParseMaraRc_en.h
	$(CC) -c $(FLAGS) -o ParseMaraRc.o ParseMaraRc.c 

ParseCsv1.o: ParseCsv1.c ../libs/JsStr.h ../libs/MaraHash.h ../MaraDns.h
	$(CC) -c $(FLAGS) -o ParseCsv1.o ParseCsv1.c 

ParseIpAcl.o: ParseIpAcl.c ../libs/JsStr.h ../libs/MaraHash.h ../MaraDns.h
	$(CC) -c $(FLAGS) -o ParseIpAcl.o ParseIpAcl.c

Parse_ipv6.o: Parse_ipv6.c ../libs/MaraHash.h
	$(CC) -c $(FLAGS) -o Parse_ipv6.o Parse_ipv6.c

Csv2_esc_txt.o: Csv2_esc_txt.c ../libs/JsStr.h
	$(CC) -c $(FLAGS) -o Csv2_esc_txt.o Csv2_esc_txt.c

Csv2_main.o: Csv2_main.c ../libs/JsStr.h Csv2_read.h
	$(CC) -c $(FLAGS) -o Csv2_main.o Csv2_main.c

Csv2_read.o: Csv2_read.c ../libs/JsStr.h Csv2_read.h
	$(CC) -c $(FLAGS) -o Csv2_read.o Csv2_read.c

Csv2_parse.o: Csv2_parse.c ../libs/JsStr.h Csv2_read.h
	$(CC) -c $(FLAGS) -o Csv2_parse.o Csv2_parse.c

Csv2_rr_aaaa.o: Csv2_rr_aaaa.c ../libs/JsStr.h Csv2_read.h
	$(CC) -c $(FLAGS) -o Csv2_rr_aaaa.o Csv2_rr_aaaa.c

Csv2_rr_wks.o: Csv2_rr_wks.c ../libs/JsStr.h Csv2_read.h
	$(CC) -c $(FLAGS) -o Csv2_rr_wks.o Csv2_rr_wks.c

Csv2_rr_a.o: Csv2_rr_a.c ../libs/JsStr.h Csv2_read.h
	$(CC) -c $(FLAGS) -o Csv2_rr_a.o Csv2_rr_a.c

Csv2_rr_soa.o: Csv2_rr_soa.c ../libs/JsStr.h Csv2_read.h
	$(CC) -c $(FLAGS) -o Csv2_rr_soa.o Csv2_rr_soa.c

Csv2_rr_txt.o: Csv2_rr_txt.c ../libs/JsStr.h Csv2_read.h
	$(CC) -c $(FLAGS) -o Csv2_rr_txt.o Csv2_rr_txt.c

Csv2_database.o: Csv2_database.c ../libs/JsStr.h Csv2_read.h
	$(CC) -c $(FLAGS) -o Csv2_database.o Csv2_database.c

parsetest: parsetest.c $(OBJECTS) 
	$(CC) $(FLAGS) -o parsetest parsetest.c $(OBJECTS) 

parsetest2: parsetest2.c $(OBJECTS) 
	$(CC) $(FLAGS) -o parsetest2 parsetest2.c $(OBJECTS)