author | Markus Bröker <mbroeker@largo.dyndns.tv> |
Thu, 16 Apr 2009 12:50:39 +0200 | |
changeset 69 | b5912e5f899f |
parent 67 | abe63a276a36 |
child 70 | ded389a5dc2a |
permissions | -rw-r--r-- |
66
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
1 |
CC = gcc -g -ggdb |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
2 |
CPP = g++ -g -ggdb |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
3 |
CFLAGS = -Wall -O2 -Iinclude -ansi |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
4 |
|
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
5 |
TARGET = ncurses |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
6 |
TARGET += numerierung |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
7 |
TARGET += xdemo |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
8 |
TARGET += signals |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
9 |
TARGET += tree |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
10 |
TARGET += utf8 |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
11 |
TARGET += file_demo |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
12 |
TARGET += testcase |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
13 |
TARGET += atoi_print |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
14 |
TARGET += data_types |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
15 |
TARGET += dnsresolve |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
16 |
TARGET += nomalloc |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
17 |
TARGET += urandom |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
18 |
TARGET += threads |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
19 |
TARGET += crypt |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
20 |
TARGET += tokenpasting |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
21 |
TARGET += hex2chars |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
22 |
TARGET += floating |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
23 |
TARGET += max |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
24 |
TARGET += recording |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
25 |
TARGET += endian |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
26 |
TARGET += fak |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
27 |
TARGET += blackhole |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
28 |
TARGET += folge |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
29 |
TARGET += counter |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
30 |
TARGET += sudoku |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
31 |
TARGET += cunit |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
32 |
TARGET += md5 |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
33 |
TARGET += md5rec |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
34 |
TARGET += myprintf |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
35 |
TARGET += concatenation |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
36 |
TARGET += alpha_beta |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
37 |
TARGET += life |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
38 |
TARGET += bad_alloc |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
39 |
TARGET += lotto |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
40 |
TARGET += database |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
41 |
TARGET += gauss |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
42 |
TARGET += mem2swap |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
43 |
TARGET += prog_limit |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
44 |
TARGET += connection |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
45 |
TARGET += copy |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
46 |
TARGET += function_pointers |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
47 |
TARGET += sort |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
48 |
TARGET += min2time |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
49 |
TARGET += recursive_compiler |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
50 |
TARGET += getpwnam_error |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
51 |
TARGET += xmlparser |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
52 |
TARGET += vector |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
53 |
TARGET += base10 |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
54 |
TARGET += files |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
55 |
TARGET += fork |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
56 |
TARGET += duff |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
57 |
TARGET += unicode |
67
abe63a276a36
file traversal demo && minor changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
66
diff
changeset
|
58 |
TARGET += fts |
0 | 59 |
|
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
60 |
.SUFFIXES: .c .cc .asm |
0 | 61 |
|
62 |
.c.o: |
|
63 |
@echo Compiling $< ... |
|
64 |
@$(CC) -c $(CFLAGS) -o $@ $< |
|
65 |
||
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
66 |
.cc.o: |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
67 |
@echo Compiling $< ... |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
68 |
@$(CPP) -c $(CFLAGS) -o $@ $< |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
69 |
|
0 | 70 |
.asm.o: |
71 |
@echo Assembling $< ... |
|
72 |
@$(NASM) $< -o $@ |
|
73 |
||
74 |
all: $(TARGET) |
|
75 |
||
76 |
ncurses: ncurses.o |
|
77 |
@echo Linking $< ... |
|
78 |
@$(CC) $(CFLAGS) -lncursesw -o $@ $< |
|
79 |
||
80 |
numerierung: numerierung.o |
|
81 |
@echo Linking $< ... |
|
82 |
@$(CC) $(CFLAGS) -o $@ $< |
|
83 |
||
84 |
xdemo: xdemo.o |
|
85 |
@echo Linking $< ... |
|
86 |
@$(CC) $(CFLAGS) -lX11 -o $@ $< |
|
87 |
||
88 |
signals: signals.o |
|
89 |
@echo Linking $< ... |
|
90 |
@$(CC) $(CFLAGS) -o $@ $< |
|
91 |
||
92 |
tree: tree.o |
|
93 |
@echo Linking $< ... |
|
94 |
@$(CC) $(CFLAGS) -o $@ $< |
|
95 |
||
96 |
utf8: utf8.o |
|
97 |
@echo Linking $< ... |
|
98 |
@$(CC) $(CFLAGS) -o $@ $< |
|
99 |
||
100 |
file_demo: file_demo.o |
|
101 |
@echo Linking $< ... |
|
102 |
@$(CC) $(CFLAGS) -o $@ $< |
|
103 |
||
104 |
testcase: testcase.o |
|
105 |
@echo Linking $< ... |
|
106 |
@$(CC) $(CFLAGS) -o $@ $< |
|
107 |
||
108 |
atoi_print: atoi_print.o |
|
109 |
@echo Linking $< ... |
|
110 |
@$(CC) $(CFLAGS) -o $@ $< |
|
111 |
||
112 |
data_types: data_types.c |
|
39 | 113 |
@echo Compiling $< ... |
0 | 114 |
@$(CC) $(CFLAGS) -std=c99 -o $@ $< |
115 |
||
116 |
dnsresolve: dnsresolve.o |
|
117 |
@echo Linking $< ... |
|
118 |
@$(CC) $(CFLAGS) -o $@ $< |
|
119 |
||
120 |
nomalloc: nomalloc.o |
|
121 |
@echo Linking $< ... |
|
122 |
@$(CC) $(CFLAGS) -o $@ $< |
|
123 |
||
124 |
urandom: urandom.o |
|
125 |
@echo Linking $< ... |
|
126 |
@$(CC) $(CFLAGS) -o $@ $< |
|
127 |
||
128 |
threads: threads.o |
|
129 |
@echo Linking $< ... |
|
130 |
@$(CC) $(CFLAGS) -o $@ $< -lpthread |
|
131 |
||
132 |
crypt: crypt.o |
|
133 |
@echo Linking $< ... |
|
32 | 134 |
@$(CC) $(CFLAGS) -o $@ $< -lcrypt |
0 | 135 |
|
136 |
tokenpasting: tokenpasting.o |
|
137 |
@echo Linking $< ... |
|
138 |
@$(CC) $(CFLAGS) -o $@ $< |
|
139 |
||
140 |
hex2chars: hex2chars.o |
|
141 |
@echo Linking $< ... |
|
142 |
@$(CC) $(CFLAGS) -o $@ $< -lm |
|
143 |
||
144 |
floating: floating.o |
|
145 |
@echo Linking $< ... |
|
146 |
@$(CC) $(CFLAGS) -o $@ $< -lm |
|
147 |
||
148 |
max: max.o |
|
149 |
@echo Linking $< ... |
|
150 |
@$(CC) $(CFLAGS) -o $@ $< |
|
151 |
||
152 |
recording: recording.o |
|
153 |
@echo Linking $< ... |
|
154 |
@$(CC) $(CFLAGS) -o $@ $< |
|
155 |
||
156 |
endian: endian.o |
|
157 |
@echo Linking $< ... |
|
158 |
@$(CC) $(CFLAGS) -o $@ $< |
|
159 |
||
160 |
fak: fak.o |
|
161 |
@echo Linking $< ... |
|
162 |
@$(CC) $(CFLAGS) -o $@ $< |
|
163 |
||
164 |
blackhole: blackhole.c |
|
165 |
@echo Compiling AND Linking $< WITH -O0 ... |
|
166 |
@$(CC) $(CFLAGS) -O0 -o $@ $< |
|
167 |
||
168 |
folge: folge.o |
|
169 |
@echo Linking $< ... |
|
170 |
@$(CC) $(CFLAGS) -o $@ $< -lm |
|
171 |
||
172 |
counter: counter.o |
|
173 |
@echo Linking $< ... |
|
174 |
@$(CC) $(CFLAGS) -o $@ $< |
|
175 |
||
176 |
sudoku: sudoku.o |
|
177 |
@echo Linking $< ... |
|
178 |
@$(CC) $(CFLAGS) -o $@ $< |
|
179 |
||
180 |
cunit: cunit.o |
|
181 |
@echo Linking $< ... |
|
182 |
@$(CC) $(CFLAGS) -o $@ $< -lcunit |
|
183 |
||
184 |
md5: md5.o |
|
185 |
@echo Linking $< ... |
|
45
7197576fedcf
pmc: namespace algebra for vector
Emilio Largo <largo@largo.homelinux.org>
parents:
43
diff
changeset
|
186 |
@$(CC) -o $@ $< -lssl |
7197576fedcf
pmc: namespace algebra for vector
Emilio Largo <largo@largo.homelinux.org>
parents:
43
diff
changeset
|
187 |
|
7197576fedcf
pmc: namespace algebra for vector
Emilio Largo <largo@largo.homelinux.org>
parents:
43
diff
changeset
|
188 |
md5rec: md5rec.o |
7197576fedcf
pmc: namespace algebra for vector
Emilio Largo <largo@largo.homelinux.org>
parents:
43
diff
changeset
|
189 |
@echo Linking $< ... |
0 | 190 |
@$(CC) -o $@ $< -llsf |
191 |
||
58
9609c54a54d3
myprintf.c added - replaces varargs.c
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
56
diff
changeset
|
192 |
myprintf: myprintf.o |
0 | 193 |
@echo Linking $< ... |
194 |
@$(CC) -o $@ $< |
|
195 |
||
196 |
concatenation: concatenation.o |
|
197 |
@echo Linking $< ... |
|
198 |
@$(CC) -o $@ $< |
|
199 |
||
200 |
alpha_beta: alpha_beta.o |
|
201 |
@echo Linking $< ... |
|
202 |
@$(CC) -o $@ $< |
|
203 |
||
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
204 |
life: life.o |
0 | 205 |
@echo Linking $< ... |
206 |
@$(CC) -o $@ $< |
|
207 |
||
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
208 |
bad_alloc: bad_alloc.o |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
209 |
@echo Linking $< ... |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
210 |
@$(CPP) -o $@ $< |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
211 |
|
3
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
212 |
lotto: lotto.o |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
213 |
@echo Linking $< ... |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
214 |
@$(CPP) -o $@ $< |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
215 |
|
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
216 |
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
|
217 |
@echo Linking $< ... |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
218 |
@$(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
|
219 |
|
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
220 |
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
|
221 |
@echo Linking $< ... |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
222 |
@$(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
|
223 |
|
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
224 |
database: database.c |
8
96d16dfe787a
We use return EXIT_SUCCESS instead of return 0
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
3
diff
changeset
|
225 |
@echo Compiling $< ... |
96d16dfe787a
We use return EXIT_SUCCESS instead of return 0
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
3
diff
changeset
|
226 |
@$(CC) -c -I$(shell pg_config --includedir) $< |
3
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
227 |
@echo Linking $< ... |
8
96d16dfe787a
We use return EXIT_SUCCESS instead of return 0
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
3
diff
changeset
|
228 |
@$(CC) -lpq -o $@ $@.o |
3
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
229 |
|
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
230 |
gauss: gauss.o |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
231 |
@echo Linking $< ... |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
232 |
@$(CPP) -o $@ $< |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
233 |
|
10
f19f44e2e863
a nice connection demo from an irc user
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
8
diff
changeset
|
234 |
connection: connection.o |
f19f44e2e863
a nice connection demo from an irc user
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
8
diff
changeset
|
235 |
@echo Linking $< ... |
f19f44e2e863
a nice connection demo from an irc user
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
8
diff
changeset
|
236 |
@$(CPP) -o $@ $< |
f19f44e2e863
a nice connection demo from an irc user
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
8
diff
changeset
|
237 |
|
11
0a8be4eac87e
c++ file copy demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
10
diff
changeset
|
238 |
copy: copy.o |
0a8be4eac87e
c++ file copy demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
10
diff
changeset
|
239 |
@echo Linking $< ... |
0a8be4eac87e
c++ file copy demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
10
diff
changeset
|
240 |
@$(CPP) -o $@ $< |
0a8be4eac87e
c++ file copy demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
10
diff
changeset
|
241 |
|
24
9cdad6c45b47
function pointer demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
11
diff
changeset
|
242 |
function_pointers: function_pointers.o |
9cdad6c45b47
function pointer demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
11
diff
changeset
|
243 |
@echo Linking $< ... |
9cdad6c45b47
function pointer demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
11
diff
changeset
|
244 |
@$(CC) -o $@ $< |
9cdad6c45b47
function pointer demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
11
diff
changeset
|
245 |
|
25 | 246 |
sort: sort.o |
247 |
@echo Linking $< ... |
|
248 |
@$(CC) -o $@ $< |
|
249 |
||
26
d227047a3e88
convert minutes to timestamps
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
25
diff
changeset
|
250 |
min2time: min2time.o |
d227047a3e88
convert minutes to timestamps
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
25
diff
changeset
|
251 |
@echo Linking $< ... |
d227047a3e88
convert minutes to timestamps
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
25
diff
changeset
|
252 |
@$(CC) -o $@ $< |
d227047a3e88
convert minutes to timestamps
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
25
diff
changeset
|
253 |
|
30
d037c433ec3e
kleiner auffschrischungskurs compilerbau...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
26
diff
changeset
|
254 |
recursive_compiler: recursive_compiler.o |
d037c433ec3e
kleiner auffschrischungskurs compilerbau...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
26
diff
changeset
|
255 |
@echo Linking $< ... |
d037c433ec3e
kleiner auffschrischungskurs compilerbau...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
26
diff
changeset
|
256 |
@$(CC) -o $@ $< |
d037c433ec3e
kleiner auffschrischungskurs compilerbau...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
26
diff
changeset
|
257 |
|
33 | 258 |
getpwnam_error: getpwnam_error.o |
259 |
@echo Linking $< ... |
|
260 |
@$(CC) -o $@ $< |
|
261 |
||
41 | 262 |
xmlparser: xmlparser.o |
263 |
@echo Linking $< ... |
|
264 |
@$(CC) -o $@ $< -lexpat |
|
265 |
||
43 | 266 |
vector: vector.o |
267 |
@echo Linking $< ... |
|
268 |
@$(CPP) -o $@ $< |
|
269 |
||
51
a03372ef9714
base10.c added and set_limit changed
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
45
diff
changeset
|
270 |
base10: base10.o |
a03372ef9714
base10.c added and set_limit changed
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
45
diff
changeset
|
271 |
@echo Linking $< ... |
a03372ef9714
base10.c added and set_limit changed
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
45
diff
changeset
|
272 |
@$(CC) -lm -o $@ $< |
a03372ef9714
base10.c added and set_limit changed
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
45
diff
changeset
|
273 |
|
56 | 274 |
files: files.o |
275 |
@echo Linking $< ... |
|
276 |
@$(CC) -o $@ $< |
|
277 |
||
278 |
fork: fork.o |
|
279 |
@echo Linking $< ... |
|
280 |
@$(CC) -o $@ $< |
|
281 |
||
282 |
duff: duff.o |
|
283 |
@echo Linking $< ... |
|
284 |
@$(CC) -o $@ $< |
|
285 |
||
62
b7061c0e239f
unicode.c added and myprintf improved
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
58
diff
changeset
|
286 |
unicode: unicode.c |
b7061c0e239f
unicode.c added and myprintf improved
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
58
diff
changeset
|
287 |
@echo Compiling $<... |
b7061c0e239f
unicode.c added and myprintf improved
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
58
diff
changeset
|
288 |
@$(CC) -c $(CFLAGS) -std=c99 $< |
b7061c0e239f
unicode.c added and myprintf improved
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
58
diff
changeset
|
289 |
@echo Linking $< ... |
b7061c0e239f
unicode.c added and myprintf improved
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
58
diff
changeset
|
290 |
@$(CC) -std=c99 -o $@ $< |
b7061c0e239f
unicode.c added and myprintf improved
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
58
diff
changeset
|
291 |
|
67
abe63a276a36
file traversal demo && minor changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
66
diff
changeset
|
292 |
fts: fts.c |
abe63a276a36
file traversal demo && minor changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
66
diff
changeset
|
293 |
@echo Compiling \(NON-ANSI\) $<... |
abe63a276a36
file traversal demo && minor changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
66
diff
changeset
|
294 |
@$(CC) -c -Wall -O2 $< |
abe63a276a36
file traversal demo && minor changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
66
diff
changeset
|
295 |
@echo Linking $< ... |
abe63a276a36
file traversal demo && minor changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
66
diff
changeset
|
296 |
@$(CC) -o $@ $< |
abe63a276a36
file traversal demo && minor changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
66
diff
changeset
|
297 |
|
66
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
298 |
.PHONY: beauty clean uninstall |
0 | 299 |
|
300 |
clean: |
|
64
993b97c4ad2d
FORK ERROR in prog_limit and mem2swap:
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
62
diff
changeset
|
301 |
find -name '*~' -exec rm -f {} \; |
993b97c4ad2d
FORK ERROR in prog_limit and mem2swap:
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
62
diff
changeset
|
302 |
find -name '*.[oa]' -exec rm -f {} \; |
0 | 303 |
rm -f $(TARGET) |
304 |
||
64
993b97c4ad2d
FORK ERROR in prog_limit and mem2swap:
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
62
diff
changeset
|
305 |
beauty: |
993b97c4ad2d
FORK ERROR in prog_limit and mem2swap:
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
62
diff
changeset
|
306 |
find -name '*.[ch]' -exec indent {} \; |
993b97c4ad2d
FORK ERROR in prog_limit and mem2swap:
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
62
diff
changeset
|
307 |
find -name '*.[ch]' -exec eraser {} \; |
66
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
308 |
find -name 'Makefile*' -exec eraser {} \; |
64
993b97c4ad2d
FORK ERROR in prog_limit and mem2swap:
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
62
diff
changeset
|
309 |
@make clean |