Debian Codegraph @

bros/Makefile

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 # Makefile for writing tests of DBM brothers
2
3
4
5 #================================================================
6 # Setting variables
7 #================================================================
8
9
10 # Generic settings
11 SHELL = /bin/sh
12
13 # Targets
14 MYBINS = qdbmtest ndbmtest sdbmtest gdbmtest tdbtest cdbtest bdbtest
15
16
17
18 #================================================================
19 # Suffix rules
20 #================================================================
21
22
23 .SUFFIXES :
24
25
26
27 #================================================================
28 # Actions
29 #================================================================
30
31
32 mesg :
33 @echo "Here are writing tests of DBM brothers." 1>&2
34 @echo "select a target of {all clean $(MYBINS)}." 1>&2
35
36
37 all : $(MYBINS)
38
39
40 clean :
41 rm -rf $(MYBINS) *.o *.exe a.out casket* *~
42
43
44 distclean : clean
45
46
47
48 #================================================================
49 # Building binaries
50 #================================================================
51
52
53 qdbmtest : qdbmtest.c
54 gcc -I.. -I/usr/local/include -D_GNU_SOURCE=1 \
•55 -Wall -ansi -pedantic -O1 -o $@ qdbmtest.c \
56 -static -L.. -L/usr/local/lib -lqdbm -lz -lc
57
58
59 ndbmtest : ndbmtest.c
60 gcc -I/usr/local/include -D_GNU_SOURCE=1 \
•61 -Wall -ansi -pedantic -O1 -o $@ ndbmtest.c \
62 -static -L/usr/local/lib -lndbm -lc
63
64
65 sdbmtest : sdbmtest.c
66 gcc -I/usr/local/include -D_GNU_SOURCE=1 \
•67 -Wall -ansi -pedantic -O1 -o $@ sdbmtest.c \
68 -static -L/usr/local/lib -lsdbm -lc
69
70
71 gdbmtest : gdbmtest.c
72 gcc -I/usr/local/include -D_GNU_SOURCE=1 \
•73 -Wall -ansi -pedantic -O1 -o $@ gdbmtest.c \
74 -static -L/usr/local/lib -lgdbm -lc
75
76
77 tdbtest : tdbtest.c
78 gcc -I/usr/local/include -D_GNU_SOURCE=1 \
•79 -Wall -ansi -pedantic -O1 -o $@ tdbtest.c \
80 -static -L/usr/local/lib -ltdb -lc
81
82
83 cdbtest : cdbtest.c
84 gcc -I/usr/local/include -D_GNU_SOURCE=1 \
•85 -Wall -ansi -pedantic -O1 -o $@ cdbtest.c \
86 -static -L/usr/local/lib -lcdb -lc
87
88
89 bdbtest : bdbtest.c
90 gcc -I/usr/local/bdb/include -D_GNU_SOURCE=1 \
•91 -Wall -O1 -o $@ bdbtest.c \
92 -static -L/usr/local/bdb/lib -ldb-4.4 -lpthread -lc
93
94
95
96 # END OF FILE