author | Markus Bröker <mbroeker@largo.dyndns.tv> |
Sat, 13 Dec 2008 17:57:53 +0100 | |
changeset 2 | 97beb75e5ac7 |
parent 0 | af501b0c1716 |
child 3 | 820ed7fb9314 |
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 \ |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
36 |
bad_alloc |
0 | 37 |
|
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
38 |
.SUFFIXES: .c .cc .asm |
0 | 39 |
|
40 |
.c.o: |
|
41 |
@echo Compiling $< ... |
|
42 |
@$(CC) -c $(CFLAGS) -o $@ $< |
|
43 |
||
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
44 |
.cc.o: |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
45 |
@echo Compiling $< ... |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
46 |
@$(CPP) -c $(CFLAGS) -o $@ $< |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
47 |
|
0 | 48 |
.asm.o: |
49 |
@echo Assembling $< ... |
|
50 |
@$(NASM) $< -o $@ |
|
51 |
||
52 |
all: $(TARGET) |
|
53 |
||
54 |
ncurses: ncurses.o |
|
55 |
@echo Linking $< ... |
|
56 |
@$(CC) $(CFLAGS) -lncursesw -o $@ $< |
|
57 |
||
58 |
numerierung: numerierung.o |
|
59 |
@echo Linking $< ... |
|
60 |
@$(CC) $(CFLAGS) -o $@ $< |
|
61 |
||
62 |
xdemo: xdemo.o |
|
63 |
@echo Linking $< ... |
|
64 |
@$(CC) $(CFLAGS) -lX11 -o $@ $< |
|
65 |
||
66 |
signals: signals.o |
|
67 |
@echo Linking $< ... |
|
68 |
@$(CC) $(CFLAGS) -o $@ $< |
|
69 |
||
70 |
tree: tree.o |
|
71 |
@echo Linking $< ... |
|
72 |
@$(CC) $(CFLAGS) -o $@ $< |
|
73 |
||
74 |
utf8: utf8.o |
|
75 |
@echo Linking $< ... |
|
76 |
@$(CC) $(CFLAGS) -o $@ $< |
|
77 |
||
78 |
file_demo: file_demo.o |
|
79 |
@echo Linking $< ... |
|
80 |
@$(CC) $(CFLAGS) -o $@ $< |
|
81 |
||
82 |
testcase: testcase.o |
|
83 |
@echo Linking $< ... |
|
84 |
@$(CC) $(CFLAGS) -o $@ $< |
|
85 |
||
86 |
atoi_print: atoi_print.o |
|
87 |
@echo Linking $< ... |
|
88 |
@$(CC) $(CFLAGS) -o $@ $< |
|
89 |
||
90 |
data_types: data_types.c |
|
91 |
@echo Linking $< ... |
|
92 |
@$(CC) $(CFLAGS) -std=c99 -o $@ $< |
|
93 |
||
94 |
dnsresolve: dnsresolve.o |
|
95 |
@echo Linking $< ... |
|
96 |
@$(CC) $(CFLAGS) -o $@ $< |
|
97 |
||
98 |
nomalloc: nomalloc.o |
|
99 |
@echo Linking $< ... |
|
100 |
@$(CC) $(CFLAGS) -o $@ $< |
|
101 |
||
102 |
urandom: urandom.o |
|
103 |
@echo Linking $< ... |
|
104 |
@$(CC) $(CFLAGS) -o $@ $< |
|
105 |
||
106 |
threads: threads.o |
|
107 |
@echo Linking $< ... |
|
108 |
@$(CC) $(CFLAGS) -o $@ $< -lpthread |
|
109 |
||
110 |
crypt: crypt.o |
|
111 |
@echo Linking $< ... |
|
112 |
@$(CC) $(CFLAGS) -o $@ $< |
|
113 |
||
114 |
tokenpasting: tokenpasting.o |
|
115 |
@echo Linking $< ... |
|
116 |
@$(CC) $(CFLAGS) -o $@ $< |
|
117 |
||
118 |
hex2chars: hex2chars.o |
|
119 |
@echo Linking $< ... |
|
120 |
@$(CC) $(CFLAGS) -o $@ $< -lm |
|
121 |
||
122 |
floating: floating.o |
|
123 |
@echo Linking $< ... |
|
124 |
@$(CC) $(CFLAGS) -o $@ $< -lm |
|
125 |
||
126 |
max: max.o |
|
127 |
@echo Linking $< ... |
|
128 |
@$(CC) $(CFLAGS) -o $@ $< |
|
129 |
||
130 |
recording: recording.o |
|
131 |
@echo Linking $< ... |
|
132 |
@$(CC) $(CFLAGS) -o $@ $< |
|
133 |
||
134 |
endian: endian.o |
|
135 |
@echo Linking $< ... |
|
136 |
@$(CC) $(CFLAGS) -o $@ $< |
|
137 |
||
138 |
fak: fak.o |
|
139 |
@echo Linking $< ... |
|
140 |
@$(CC) $(CFLAGS) -o $@ $< |
|
141 |
||
142 |
blackhole: blackhole.c |
|
143 |
@echo Compiling AND Linking $< WITH -O0 ... |
|
144 |
@$(CC) $(CFLAGS) -O0 -o $@ $< |
|
145 |
||
146 |
folge: folge.o |
|
147 |
@echo Linking $< ... |
|
148 |
@$(CC) $(CFLAGS) -o $@ $< -lm |
|
149 |
||
150 |
counter: counter.o |
|
151 |
@echo Linking $< ... |
|
152 |
@$(CC) $(CFLAGS) -o $@ $< |
|
153 |
||
154 |
sudoku: sudoku.o |
|
155 |
@echo Linking $< ... |
|
156 |
@$(CC) $(CFLAGS) -o $@ $< |
|
157 |
||
158 |
cunit: cunit.o |
|
159 |
@echo Linking $< ... |
|
160 |
@$(CC) $(CFLAGS) -o $@ $< -lcunit |
|
161 |
||
162 |
md5: md5.o |
|
163 |
@echo Linking $< ... |
|
164 |
@$(CC) -o $@ $< -llsf |
|
165 |
||
166 |
varargs: varargs.o |
|
167 |
@echo Linking $< ... |
|
168 |
@$(CC) -o $@ $< |
|
169 |
||
170 |
concatenation: concatenation.o |
|
171 |
@echo Linking $< ... |
|
172 |
@$(CC) -o $@ $< |
|
173 |
||
174 |
alpha_beta: alpha_beta.o |
|
175 |
@echo Linking $< ... |
|
176 |
@$(CC) -o $@ $< |
|
177 |
||
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
178 |
life: life.o |
0 | 179 |
@echo Linking $< ... |
180 |
@$(CC) -o $@ $< |
|
181 |
||
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
182 |
bad_alloc: bad_alloc.o |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
183 |
@echo Linking $< ... |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
184 |
@$(CPP) -o $@ $< |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
185 |
|
0 | 186 |
.PHONY: clean uninstall |
187 |
||
188 |
clean: |
|
189 |
rm -f *.o *~ |
|
190 |
rm -f $(TARGET) |
|
191 |