Debian Codegraph @

lab/Makefile

raw symbols SCIP
1 # Makefile for developer's utility
2
3
4
5 #================================================================
6 # Setting variables
7 #================================================================
8
9
10 # Generic settings
11 SHELL = /bin/sh
12
13 # Targets
14 MYBINS = hashtest sorttest fmtcnv031127
15
16 # Building binaries
17 CC = gcc
18 CPPFLAGS = -I.. -I/usr/local/include -DNDEBUG
19 CFLAGS = -Wall -ansi -pedantic -g
20 LDFLAGS = -L.. -L/usr/local/lib -lqdbm
21
22
23
24 #================================================================
25 # Suffix rules
26 #================================================================
27
28
29 .SUFFIXES :
30 .SUFFIXES : .c .o
31
32 .c.o :
33 $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
34
35
36
37 #================================================================
38 # Actions
39 #================================================================
40
41
42 all : $(MYBINS)
43
44
45 clean :
46 rm -rf $(MYBINS) *.o *.exe a.out gmon.out leak.log *~
47
48
49 distclean : clean
50
51
52
53 #================================================================
54 # Building binaries
55 #================================================================
56
57
58 hashtest : hashtest.o
59 $(CC) $(CFLAGS) -o $@ hashtest.o $(LDFLAGS)
60
61
62 sorttest : sorttest.o
63 $(CC) $(CFLAGS) -o $@ sorttest.o $(LDFLAGS)
64
65
66 fmtcnv031127 : fmtcnv031127.o
67 $(CC) $(CFLAGS) -o $@ fmtcnv031127.o $(LDFLAGS)
68
69
70
71 # END OF FILE