Debian Codegraph @

RISCmakefile

raw
1 # Makefile for the RISC OS version of QDBM
2
3
4 # Define which compiler to use:
5
6 CC = cc
7 #CC = gcc
8
9
10 #########################################
11 # DO NOT EDIT ANYTHING BELOW THIS LINE! #
12 #########################################
13
14 ifeq (${CC},cc)
15 CC = cc
16 LD = link
17 AR = libfile
18 DEPEND = -depend !Depend
19 CC_FLAGS = -Wdp -throwback -Otime -I@,Unix: -JUnix
20 UNIXLIB = Unix:o.UnixLib
21 else
22 ifeq (${CC},gcc)
23 CC = gcc
24 LD = gcc
25 AR = ar
26 CC_FLAGS = -mthrowback -O3 -I.
27 else
28 # No other compiler supported!
29 endif
30 endif
31
32 QDBM_OBJS = o.depot o.curia o.relic o.hovel o.cabin o.villa o.vista o.odeum o.myconf
33
34 .INIT :
35 @cdir o
36
37 ## Rule Patterns ##
38
39 .SUFFIXES : .c .o
40
41 .c.o :
42 $(CC) $(CC_FLAGS) $(DEPEND) -c -o $@ $<
43
44 # Static dependencies:
45
46 all : libqdbm testcases managers converters
47
48 libqdbm : $(QDBM_OBJS)
49 $(AR) $(AR_FLAGS) -c -o libqdbm $(QDBM_OBJS)
50
51 testcases : dptest crtest rltest hvtest cbtest vltest odtest
52 create testcases
53
54 managers : dpmgr crmgr rlmgr hvmgr vlmgr odmgr
55 create managers
56
57 converters : dptsv crtsv cbcodec vltsv odidx
58 create converters
59
60 dptest : o.dptest libqdbm
61 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
62
63 crtest : o.crtest libqdbm
64 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
65
66 rltest : o.rltest libqdbm
67 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
68
69 hvtest : o.hvtest libqdbm
70 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
71
72 cbtest : o.cbtest libqdbm
73 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
74
75 vltest : o.vltest libqdbm
76 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
77
78 odtest : o.odtest libqdbm
79 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
80
81 dpmgr : o.dpmgr libqdbm
82 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
83
84 crmgr : o.crmgr libqdbm
85 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
86
87 rlmgr : o.rlmgr libqdbm
88 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
89
90 hvmgr : o.hvmgr libqdbm
91 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
92
93 vlmgr : o.vlmgr libqdbm
94 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
95
96 odmgr : o.odmgr libqdbm
97 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
98
99 dptsv : o.dptsv libqdbm
100 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
101
102 crtsv : o.crtsv libqdbm
103 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
104
105 cbcodec : o.cbcodec libqdbm
106 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
107
108 vltsv : o.vltsv libqdbm
109 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
110
111 odidx : o.odidx libqdbm
112 $(LD) $(LD_FLAGS) -o $@ o.$* libqdbm $(UNIXLIB)
113
114 clean:
115 -ifthere libqdbm then wipe libqdbm ~CFR~V
116 -ifthere dptest then wipe dptest ~CFR~V
117 -ifthere crtest then wipe crtest ~CFR~V
118 -ifthere rltest then wipe rltest ~CFR~V
119 -ifthere hvtest then wipe hvtest ~CFR~V
120 -ifthere cbtest then wipe cbtest ~CFR~V
121 -ifthere vltest then wipe vltest ~CFR~V
122 -ifthere odtest then wipe odtest ~CFR~V
123 -ifthere dpmgr then wipe dpmgr ~CFR~V
124 -ifthere crmgr then wipe crmgr ~CFR~V
125 -ifthere rlmgr then wipe rlmgr ~CFR~V
126 -ifthere hvmgr then wipe hvmgr ~CFR~V
127 -ifthere cbmgr then wipe cbmgr ~CFR~V
128 -ifthere vlmgr then wipe vlmgr ~CFR~V
129 -ifthere odmgr then wipe odmgr ~CFR~V
130 -ifthere dptsv then wipe dptsv ~CFR~V
131 -ifthere crtsv then wipe crtsv ~CFR~V
132 -ifthere cbcodec then wipe cbcodec ~CFR~V
133 -ifthere vltsv then wipe vltsv ~CFR~V
134 -ifthere odidx then wipe odidx ~CFR~V
135 -ifthere testcases then wipe testcases ~CFR~V
136 -ifthere managers then wipe managers ~CFR~V
137 -ifthere converters then wipe converters ~CFR~V
138 -ifthere o.* then wipe o.* ~CFR~V
139
140 # Dynamic dependencies: