author | Markus Bröker <mbroeker@largo.dyndns.tv> |
Sat, 13 Dec 2008 17:57:56 +0100 | |
changeset 4 | 236f8f747073 |
parent 3 | 820ed7fb9314 |
child 8 | 96d16dfe787a |
permissions | -rw-r--r-- |
0 | 1 |
CC=gcc -g -ggdb |
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
2 |
CPP=g++ -g -ggdb |
0 | 3 |
CFLAGS=-Wall -O2 -Iinclude -ansi |
4 |
TARGET=ncurses \ |
|
5 |
numerierung \ |
|
6 |
xdemo \ |
|
7 |
signals \ |
|
8 |
tree \ |
|
9 |
utf8 \ |
|
10 |
file_demo \ |
|
11 |
testcase \ |
|
12 |
atoi_print \ |
|
13 |
data_types \ |
|
14 |
dnsresolve \ |
|
15 |
nomalloc \ |
|
16 |
urandom \ |
|
17 |
threads \ |
|
18 |
crypt \ |
|
19 |
tokenpasting \ |
|
20 |
hex2chars \ |
|
21 |
floating \ |
|
22 |
max \ |
|
23 |
recording \ |
|
24 |
endian \ |
|
25 |
fak \ |
|
26 |
blackhole \ |
|
27 |
folge \ |
|
28 |
counter \ |
|
29 |
sudoku \ |
|
30 |
cunit \ |
|
31 |
md5 \ |
|
32 |
varargs \ |
|
33 |
concatenation \ |
|
34 |
alpha_beta \ |
|
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
35 |
life \ |
3
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
36 |
bad_alloc \ |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
37 |
lotto \ |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
38 |
database \ |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
39 |
gauss \ |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
40 |
mem2swap \ |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
41 |
prog_limit |
0 | 42 |
|
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
43 |
.SUFFIXES: .c .cc .asm |
0 | 44 |
|
45 |
.c.o: |
|
46 |
@echo Compiling $< ... |
|
47 |
@$(CC) -c $(CFLAGS) -o $@ $< |
|
48 |
||
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
49 |
.cc.o: |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
50 |
@echo Compiling $< ... |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
51 |
@$(CPP) -c $(CFLAGS) -o $@ $< |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
52 |
|
0 | 53 |
.asm.o: |
54 |
@echo Assembling $< ... |
|
55 |
@$(NASM) $< -o $@ |
|
56 |
||
57 |
all: $(TARGET) |
|
58 |
||
59 |
ncurses: ncurses.o |
|
60 |
@echo Linking $< ... |
|
61 |
@$(CC) $(CFLAGS) -lncursesw -o $@ $< |
|
62 |
||
63 |
numerierung: numerierung.o |
|
64 |
@echo Linking $< ... |
|
65 |
@$(CC) $(CFLAGS) -o $@ $< |
|
66 |
||
67 |
xdemo: xdemo.o |
|
68 |
@echo Linking $< ... |
|
69 |
@$(CC) $(CFLAGS) -lX11 -o $@ $< |
|
70 |
||
71 |
signals: signals.o |
|
72 |
@echo Linking $< ... |
|
73 |
@$(CC) $(CFLAGS) -o $@ $< |
|
74 |
||
75 |
tree: tree.o |
|
76 |
@echo Linking $< ... |
|
77 |
@$(CC) $(CFLAGS) -o $@ $< |
|
78 |
||
79 |
utf8: utf8.o |
|
80 |
@echo Linking $< ... |
|
81 |
@$(CC) $(CFLAGS) -o $@ $< |
|
82 |
||
83 |
file_demo: file_demo.o |
|
84 |
@echo Linking $< ... |
|
85 |
@$(CC) $(CFLAGS) -o $@ $< |
|
86 |
||
87 |
testcase: testcase.o |
|
88 |
@echo Linking $< ... |
|
89 |
@$(CC) $(CFLAGS) -o $@ $< |
|
90 |
||
91 |
atoi_print: atoi_print.o |
|
92 |
@echo Linking $< ... |
|
93 |
@$(CC) $(CFLAGS) -o $@ $< |
|
94 |
||
95 |
data_types: data_types.c |
|
96 |
@echo Linking $< ... |
|
97 |
@$(CC) $(CFLAGS) -std=c99 -o $@ $< |
|
98 |
||
99 |
dnsresolve: dnsresolve.o |
|
100 |
@echo Linking $< ... |
|
101 |
@$(CC) $(CFLAGS) -o $@ $< |
|
102 |
||
103 |
nomalloc: nomalloc.o |
|
104 |
@echo Linking $< ... |
|
105 |
@$(CC) $(CFLAGS) -o $@ $< |
|
106 |
||
107 |
urandom: urandom.o |
|
108 |
@echo Linking $< ... |
|
109 |
@$(CC) $(CFLAGS) -o $@ $< |
|
110 |
||
111 |
threads: threads.o |
|
112 |
@echo Linking $< ... |
|
113 |
@$(CC) $(CFLAGS) -o $@ $< -lpthread |
|
114 |
||
115 |
crypt: crypt.o |
|
116 |
@echo Linking $< ... |
|
117 |
@$(CC) $(CFLAGS) -o $@ $< |
|
118 |
||
119 |
tokenpasting: tokenpasting.o |
|
120 |
@echo Linking $< ... |
|
121 |
@$(CC) $(CFLAGS) -o $@ $< |
|
122 |
||
123 |
hex2chars: hex2chars.o |
|
124 |
@echo Linking $< ... |
|
125 |
@$(CC) $(CFLAGS) -o $@ $< -lm |
|
126 |
||
127 |
floating: floating.o |
|
128 |
@echo Linking $< ... |
|
129 |
@$(CC) $(CFLAGS) -o $@ $< -lm |
|
130 |
||
131 |
max: max.o |
|
132 |
@echo Linking $< ... |
|
133 |
@$(CC) $(CFLAGS) -o $@ $< |
|
134 |
||
135 |
recording: recording.o |
|
136 |
@echo Linking $< ... |
|
137 |
@$(CC) $(CFLAGS) -o $@ $< |
|
138 |
||
139 |
endian: endian.o |
|
140 |
@echo Linking $< ... |
|
141 |
@$(CC) $(CFLAGS) -o $@ $< |
|
142 |
||
143 |
fak: fak.o |
|
144 |
@echo Linking $< ... |
|
145 |
@$(CC) $(CFLAGS) -o $@ $< |
|
146 |
||
147 |
blackhole: blackhole.c |
|
148 |
@echo Compiling AND Linking $< WITH -O0 ... |
|
149 |
@$(CC) $(CFLAGS) -O0 -o $@ $< |
|
150 |
||
151 |
folge: folge.o |
|
152 |
@echo Linking $< ... |
|
153 |
@$(CC) $(CFLAGS) -o $@ $< -lm |
|
154 |
||
155 |
counter: counter.o |
|
156 |
@echo Linking $< ... |
|
157 |
@$(CC) $(CFLAGS) -o $@ $< |
|
158 |
||
159 |
sudoku: sudoku.o |
|
160 |
@echo Linking $< ... |
|
161 |
@$(CC) $(CFLAGS) -o $@ $< |
|
162 |
||
163 |
cunit: cunit.o |
|
164 |
@echo Linking $< ... |
|
165 |
@$(CC) $(CFLAGS) -o $@ $< -lcunit |
|
166 |
||
167 |
md5: md5.o |
|
168 |
@echo Linking $< ... |
|
169 |
@$(CC) -o $@ $< -llsf |
|
170 |
||
171 |
varargs: varargs.o |
|
172 |
@echo Linking $< ... |
|
173 |
@$(CC) -o $@ $< |
|
174 |
||
175 |
concatenation: concatenation.o |
|
176 |
@echo Linking $< ... |
|
177 |
@$(CC) -o $@ $< |
|
178 |
||
179 |
alpha_beta: alpha_beta.o |
|
180 |
@echo Linking $< ... |
|
181 |
@$(CC) -o $@ $< |
|
182 |
||
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
183 |
life: life.o |
0 | 184 |
@echo Linking $< ... |
185 |
@$(CC) -o $@ $< |
|
186 |
||
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
187 |
bad_alloc: bad_alloc.o |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
188 |
@echo Linking $< ... |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
189 |
@$(CPP) -o $@ $< |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
190 |
|
3
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
191 |
lotto: lotto.o |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
192 |
@echo Linking $< ... |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
193 |
@$(CPP) -o $@ $< |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
194 |
|
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
195 |
mem2swap: mem2swap.o set_limit.o |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
196 |
@echo Linking $< ... |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
197 |
@$(CPP) -o $@ mem2swap.o set_limit.o |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
198 |
|
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
199 |
prog_limit: prog_limit.o set_limit.o |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
200 |
@echo Linking $< ... |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
201 |
@$(CPP) -o $@ prog_limit.o set_limit.o |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
202 |
|
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
203 |
database: database.c |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
204 |
$(CC) -c -I$(shell pg_config --includedir) $< |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
205 |
@echo Linking $< ... |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
206 |
$(CC) -lpq -o $@ $@.o |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
207 |
|
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
208 |
gauss: gauss.o |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
209 |
@echo Linking $< ... |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
210 |
@$(CPP) -o $@ $< |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
211 |
|
0 | 212 |
.PHONY: clean uninstall |
213 |
||
214 |
clean: |
|
215 |
rm -f *.o *~ |
|
216 |
rm -f $(TARGET) |
|
217 |