author | Markus Bröker <mbroeker@largo.dyndns.tv> |
Mon, 21 Jun 2010 21:58:00 +0200 | |
changeset 136 | d82f65e902d0 |
parent 131 | b5ad49852adc |
child 137 | d8a0984b72fc |
permissions | -rw-r--r-- |
70
ded389a5dc2a
Profiling support added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
67
diff
changeset
|
1 |
CC = gcc -g -ggdb $(PROF) |
ded389a5dc2a
Profiling support added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
67
diff
changeset
|
2 |
CPP = g++ -g -ggdb $(PROF) |
119
305d2ca32936
crypt.h seems to be broken on many systems.
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
117
diff
changeset
|
3 |
CFLAGS = -Wall -O2 -Iinclude $(EXTRA) |
131
b5ad49852adc
check for the return values
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
130
diff
changeset
|
4 |
EXTRA = |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
5 |
LDFLAGS = -L/usr/lib |
71
9ac5a589211e
Makefile: Little Improvements
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
70
diff
changeset
|
6 |
RM = rm -f |
9ac5a589211e
Makefile: Little Improvements
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
70
diff
changeset
|
7 |
FIND = find |
122
50ba3b0e271a
GNU Make and GNU Indent
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
119
diff
changeset
|
8 |
MAKE = make |
50ba3b0e271a
GNU Make and GNU Indent
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
119
diff
changeset
|
9 |
INDENT = indent |
50ba3b0e271a
GNU Make and GNU Indent
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
119
diff
changeset
|
10 |
ERASER = eraser |
71
9ac5a589211e
Makefile: Little Improvements
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
70
diff
changeset
|
11 |
|
73
d0578510aea1
Changelog: Makefile and sort.c
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
71
diff
changeset
|
12 |
ifeq ("$(PROFILER)", "linux") |
70
ded389a5dc2a
Profiling support added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
67
diff
changeset
|
13 |
PROF = -fprofile-arcs -ftest-coverage -pg |
ded389a5dc2a
Profiling support added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
67
diff
changeset
|
14 |
endif |
66
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
15 |
|
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
16 |
TARGET = ncurses |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
17 |
TARGET += numerierung |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
18 |
TARGET += xdemo |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
19 |
TARGET += signals |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
20 |
TARGET += tree |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
21 |
TARGET += utf8 |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
22 |
TARGET += file_demo |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
23 |
TARGET += testcase |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
24 |
TARGET += atoi_print |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
25 |
TARGET += data_types |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
26 |
TARGET += dnsresolve |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
27 |
TARGET += nomalloc |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
28 |
TARGET += urandom |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
29 |
TARGET += threads |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
30 |
TARGET += crypt |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
31 |
TARGET += tokenpasting |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
32 |
TARGET += hex2chars |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
33 |
TARGET += floating |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
34 |
TARGET += max |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
35 |
TARGET += recording |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
36 |
TARGET += endian |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
37 |
TARGET += fak |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
38 |
TARGET += blackhole |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
39 |
TARGET += folge |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
40 |
TARGET += counter |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
41 |
TARGET += sudoku |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
42 |
TARGET += cunit |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
43 |
TARGET += md5 |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
44 |
TARGET += md5rec |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
45 |
TARGET += myprintf |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
46 |
TARGET += concatenation |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
47 |
TARGET += alpha_beta |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
48 |
TARGET += life |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
49 |
TARGET += bad_alloc |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
50 |
TARGET += lotto |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
51 |
TARGET += database |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
52 |
TARGET += gauss |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
53 |
TARGET += mem2swap |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
54 |
TARGET += prog_limit |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
55 |
TARGET += connection |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
56 |
TARGET += copy |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
57 |
TARGET += function_pointers |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
58 |
TARGET += sort |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
59 |
TARGET += min2time |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
60 |
TARGET += recursive_compiler |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
61 |
TARGET += getpwnam_error |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
62 |
TARGET += xmlparser |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
63 |
TARGET += vector |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
64 |
TARGET += base10 |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
65 |
TARGET += files |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
66 |
TARGET += fork |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
67 |
TARGET += duff |
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
68 |
TARGET += unicode |
67
abe63a276a36
file traversal demo && minor changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
66
diff
changeset
|
69 |
TARGET += fts |
74
829976007e62
getrandom macro fixed
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
73
diff
changeset
|
70 |
TARGET += clplaner |
76
c46968bddef5
A nice system daemon...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
74
diff
changeset
|
71 |
TARGET += daemon |
86
86b83a979d9e
numbering game: guess a value
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
76
diff
changeset
|
72 |
TARGET += numbers |
88
91fbc3ea240b
how to use templates
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
86
diff
changeset
|
73 |
TARGET += nearest |
90 | 74 |
TARGET += cppdatabase |
107
244356bc3a20
Pipes and COPY-ON-WRITE
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
104
diff
changeset
|
75 |
TARGET += pipe |
108
d6a52e0152fb
Compont Literals in C aka Anonymous arrays
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
107
diff
changeset
|
76 |
TARGET += compliteral |
130 | 77 |
TARGET += getbits |
0 | 78 |
|
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
79 |
.SUFFIXES: .c .cc .asm |
0 | 80 |
|
81 |
.c.o: |
|
82 |
@echo Compiling $< ... |
|
83 |
@$(CC) -c $(CFLAGS) -o $@ $< |
|
84 |
||
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
85 |
.cc.o: |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
86 |
@echo Compiling $< ... |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
87 |
@$(CPP) -c $(CFLAGS) -o $@ $< |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
88 |
|
0 | 89 |
.asm.o: |
90 |
@echo Assembling $< ... |
|
91 |
@$(NASM) $< -o $@ |
|
92 |
||
93 |
all: $(TARGET) |
|
94 |
||
95 |
ncurses: ncurses.o |
|
96 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
97 |
@$(CC) $(LDFLAGS) -lncursesw -o $@ $< |
0 | 98 |
|
99 |
numerierung: numerierung.o |
|
100 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
101 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 102 |
|
103 |
xdemo: xdemo.o |
|
104 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
105 |
@$(CC) $(LDFLAGS) -lX11 -o $@ $< |
0 | 106 |
|
107 |
signals: signals.o |
|
108 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
109 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 110 |
|
111 |
tree: tree.o |
|
112 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
113 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 114 |
|
115 |
utf8: utf8.o |
|
116 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
117 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 118 |
|
119 |
file_demo: file_demo.o |
|
120 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
121 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 122 |
|
123 |
testcase: testcase.o |
|
124 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
125 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 126 |
|
127 |
atoi_print: atoi_print.o |
|
128 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
129 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 130 |
|
131 |
data_types: data_types.c |
|
39 | 132 |
@echo Compiling $< ... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
133 |
@$(CC) $(LDFLAGS) -std=c99 -o $@ $< |
0 | 134 |
|
135 |
dnsresolve: dnsresolve.o |
|
136 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
137 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 138 |
|
139 |
nomalloc: nomalloc.o |
|
140 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
141 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 142 |
|
143 |
urandom: urandom.o |
|
144 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
145 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 146 |
|
147 |
threads: threads.o |
|
148 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
149 |
@$(CC) $(LDFLAGS) -o $@ $< -lpthread |
0 | 150 |
|
151 |
crypt: crypt.o |
|
152 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
153 |
@$(CC) $(LDFLAGS) -o $@ $< -lcrypt |
0 | 154 |
|
155 |
tokenpasting: tokenpasting.o |
|
156 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
157 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 158 |
|
159 |
hex2chars: hex2chars.o |
|
160 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
161 |
@$(CC) $(LDFLAGS) -o $@ $< -lm |
0 | 162 |
|
163 |
floating: floating.o |
|
164 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
165 |
@$(CC) $(LDFLAGS) -o $@ $< -lm |
0 | 166 |
|
167 |
max: max.o |
|
168 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
169 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 170 |
|
171 |
recording: recording.o |
|
172 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
173 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 174 |
|
175 |
endian: endian.o |
|
176 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
177 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 178 |
|
179 |
fak: fak.o |
|
180 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
181 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 182 |
|
183 |
blackhole: blackhole.c |
|
184 |
@echo Compiling AND Linking $< WITH -O0 ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
185 |
@$(CC) $(LDFLAGS) -O0 -o $@ $< |
0 | 186 |
|
187 |
folge: folge.o |
|
188 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
189 |
@$(CC) $(LDFLAGS) -o $@ $< -lm |
0 | 190 |
|
191 |
counter: counter.o |
|
192 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
193 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 194 |
|
195 |
sudoku: sudoku.o |
|
196 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
197 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 198 |
|
199 |
cunit: cunit.o |
|
200 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
201 |
@$(CC) $(LDFLAGS) -o $@ $< -lcunit |
0 | 202 |
|
203 |
md5: md5.o |
|
204 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
205 |
@$(CC) $(LDFLAGS) -o $@ $< -lssl |
45
7197576fedcf
pmc: namespace algebra for vector
Emilio Largo <largo@largo.homelinux.org>
parents:
43
diff
changeset
|
206 |
|
7197576fedcf
pmc: namespace algebra for vector
Emilio Largo <largo@largo.homelinux.org>
parents:
43
diff
changeset
|
207 |
md5rec: md5rec.o |
7197576fedcf
pmc: namespace algebra for vector
Emilio Largo <largo@largo.homelinux.org>
parents:
43
diff
changeset
|
208 |
@echo Linking $< ... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
209 |
@$(CC) $(LDFLAGS) -o $@ $< -llsf |
0 | 210 |
|
58
9609c54a54d3
myprintf.c added - replaces varargs.c
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
56
diff
changeset
|
211 |
myprintf: myprintf.o |
0 | 212 |
@echo Linking $< ... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
213 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 214 |
|
215 |
concatenation: concatenation.o |
|
216 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
217 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 218 |
|
219 |
alpha_beta: alpha_beta.o |
|
220 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
221 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 222 |
|
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
223 |
life: life.o |
0 | 224 |
@echo Linking $< ... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
225 |
@$(CC) $(LDFLAGS) -o $@ $< |
0 | 226 |
|
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
227 |
bad_alloc: bad_alloc.o |
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
228 |
@echo Linking $< ... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
229 |
@$(CPP) $(LDFLAGS) -o $@ $< |
2
97beb75e5ac7
bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
230 |
|
3
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
231 |
lotto: lotto.o |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
232 |
@echo Linking $< ... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
233 |
@$(CC) $(LDFLAGS) -o $@ $< |
3
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
234 |
|
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
235 |
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
|
236 |
@echo Linking $< ... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
237 |
@$(CC) $(LDFLAGS) -o $@ mem2swap.o set_limit.o |
3
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
238 |
|
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
239 |
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
|
240 |
@echo Linking $< ... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
241 |
@$(CC) $(LDFLAGS) -o $@ prog_limit.o set_limit.o |
3
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
242 |
|
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
243 |
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
|
244 |
@echo Compiling $< ... |
96d16dfe787a
We use return EXIT_SUCCESS instead of return 0
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
3
diff
changeset
|
245 |
@$(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
|
246 |
@echo Linking $< ... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
247 |
@$(CC) $(LDLAGS) -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
|
248 |
|
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
249 |
gauss: gauss.o |
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
250 |
@echo Linking $< ... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
251 |
@$(CC) $(LDFLAGS) -o $@ $< |
3
820ed7fb9314
database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
2
diff
changeset
|
252 |
|
10
f19f44e2e863
a nice connection demo from an irc user
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
8
diff
changeset
|
253 |
connection: connection.o |
f19f44e2e863
a nice connection demo from an irc user
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
8
diff
changeset
|
254 |
@echo Linking $< ... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
255 |
@$(CC) $(LDFLAGS) -o $@ $< |
10
f19f44e2e863
a nice connection demo from an irc user
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
8
diff
changeset
|
256 |
|
11
0a8be4eac87e
c++ file copy demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
10
diff
changeset
|
257 |
copy: copy.o |
0a8be4eac87e
c++ file copy demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
10
diff
changeset
|
258 |
@echo Linking $< ... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
259 |
@$(CPP) $(LDFLAGS) -o $@ $< |
11
0a8be4eac87e
c++ file copy demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
10
diff
changeset
|
260 |
|
24
9cdad6c45b47
function pointer demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
11
diff
changeset
|
261 |
function_pointers: function_pointers.o |
9cdad6c45b47
function pointer demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
11
diff
changeset
|
262 |
@echo Linking $< ... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
263 |
@$(CC) $(LDFLAGS) -o $@ $< |
24
9cdad6c45b47
function pointer demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
11
diff
changeset
|
264 |
|
25 | 265 |
sort: sort.o |
266 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
267 |
@$(CC) $(LDFLAGS) -o $@ $< |
25 | 268 |
|
26
d227047a3e88
convert minutes to timestamps
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
25
diff
changeset
|
269 |
min2time: min2time.o |
d227047a3e88
convert minutes to timestamps
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
25
diff
changeset
|
270 |
@echo Linking $< ... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
271 |
@$(CC) $(LDFLAGS) -o $@ $< |
26
d227047a3e88
convert minutes to timestamps
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
25
diff
changeset
|
272 |
|
30
d037c433ec3e
kleiner auffschrischungskurs compilerbau...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
26
diff
changeset
|
273 |
recursive_compiler: recursive_compiler.o |
d037c433ec3e
kleiner auffschrischungskurs compilerbau...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
26
diff
changeset
|
274 |
@echo Linking $< ... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
275 |
@$(CC) $(LDFLAGS) -o $@ $< |
30
d037c433ec3e
kleiner auffschrischungskurs compilerbau...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
26
diff
changeset
|
276 |
|
33 | 277 |
getpwnam_error: getpwnam_error.o |
278 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
279 |
@$(CC) $(LDFLAGS) -o $@ $< |
33 | 280 |
|
41 | 281 |
xmlparser: xmlparser.o |
282 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
283 |
@$(CC) $(LDFLAGS) -o $@ $< -lexpat |
41 | 284 |
|
43 | 285 |
vector: vector.o |
286 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
287 |
@$(CPP) $(LDFLAGS) -o $@ $< |
43 | 288 |
|
51
a03372ef9714
base10.c added and set_limit changed
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
45
diff
changeset
|
289 |
base10: base10.o |
a03372ef9714
base10.c added and set_limit changed
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
45
diff
changeset
|
290 |
@echo Linking $< ... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
291 |
@$(CC) $(LDFLAGS) -lm -o $@ $< |
51
a03372ef9714
base10.c added and set_limit changed
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
45
diff
changeset
|
292 |
|
56 | 293 |
files: files.o |
294 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
295 |
@$(CC) $(LDFLAGS) -o $@ $< |
56 | 296 |
|
297 |
fork: fork.o |
|
298 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
299 |
@$(CC) $(LDFLAGS) -o $@ $< |
56 | 300 |
|
301 |
duff: duff.o |
|
302 |
@echo Linking $< ... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
303 |
@$(CC) $(LDFLAGS) -o $@ $< |
56 | 304 |
|
62
b7061c0e239f
unicode.c added and myprintf improved
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
58
diff
changeset
|
305 |
unicode: unicode.c |
76
c46968bddef5
A nice system daemon...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
74
diff
changeset
|
306 |
@echo Linking $<... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
307 |
@$(CC) $(LDFLAGS) -std=c99 -o $@ $< |
62
b7061c0e239f
unicode.c added and myprintf improved
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
58
diff
changeset
|
308 |
|
67
abe63a276a36
file traversal demo && minor changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
66
diff
changeset
|
309 |
fts: fts.c |
abe63a276a36
file traversal demo && minor changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
66
diff
changeset
|
310 |
@echo Linking $< ... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
311 |
@$(CC) -Wall -O2 $(LDFLAGS) $< -o $@ |
76
c46968bddef5
A nice system daemon...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
74
diff
changeset
|
312 |
|
c46968bddef5
A nice system daemon...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
74
diff
changeset
|
313 |
clplaner: clplaner.o |
c46968bddef5
A nice system daemon...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
74
diff
changeset
|
314 |
@echo Linking $<... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
315 |
@$(CC) $(LDFLAGS) -o $@ $< |
67
abe63a276a36
file traversal demo && minor changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
66
diff
changeset
|
316 |
|
76
c46968bddef5
A nice system daemon...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
74
diff
changeset
|
317 |
daemon: daemon.c |
c46968bddef5
A nice system daemon...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
74
diff
changeset
|
318 |
@echo Linking $<... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
319 |
@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@ |
74
829976007e62
getrandom macro fixed
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
73
diff
changeset
|
320 |
|
86
86b83a979d9e
numbering game: guess a value
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
76
diff
changeset
|
321 |
numbers: numbers.o |
86b83a979d9e
numbering game: guess a value
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
76
diff
changeset
|
322 |
@echo Linking $<... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
323 |
@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@ |
86
86b83a979d9e
numbering game: guess a value
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
76
diff
changeset
|
324 |
|
88
91fbc3ea240b
how to use templates
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
86
diff
changeset
|
325 |
nearest: nearest.o |
91fbc3ea240b
how to use templates
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
86
diff
changeset
|
326 |
@echo Linking $<... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
327 |
@$(CPP) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@ |
88
91fbc3ea240b
how to use templates
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
86
diff
changeset
|
328 |
|
90 | 329 |
cppdatabase: cppdatabase.o |
330 |
@echo Linking $<... |
|
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
331 |
@$(CPP) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@ |
90 | 332 |
|
107
244356bc3a20
Pipes and COPY-ON-WRITE
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
104
diff
changeset
|
333 |
pipe: pipe.o |
244356bc3a20
Pipes and COPY-ON-WRITE
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
104
diff
changeset
|
334 |
@echo Linking $<... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
335 |
@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@ |
107
244356bc3a20
Pipes and COPY-ON-WRITE
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
104
diff
changeset
|
336 |
|
108
d6a52e0152fb
Compont Literals in C aka Anonymous arrays
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
107
diff
changeset
|
337 |
compliteral: compliteral.o |
d6a52e0152fb
Compont Literals in C aka Anonymous arrays
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
107
diff
changeset
|
338 |
@echo Linking $<... |
117
5f3a34ba6489
Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
116
diff
changeset
|
339 |
@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@ |
108
d6a52e0152fb
Compont Literals in C aka Anonymous arrays
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
107
diff
changeset
|
340 |
|
130 | 341 |
getbits: getbits.o |
342 |
@echo Linking $<... |
|
343 |
@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@ |
|
344 |
||
107
244356bc3a20
Pipes and COPY-ON-WRITE
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
104
diff
changeset
|
345 |
|
66
2b4f786d9073
Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
64
diff
changeset
|
346 |
.PHONY: beauty clean uninstall |
0 | 347 |
|
348 |
clean: |
|
71
9ac5a589211e
Makefile: Little Improvements
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
70
diff
changeset
|
349 |
ifdef FIND |
116
ae784a3a45b1
The find utility needs a path parameter
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
108
diff
changeset
|
350 |
$(FIND) . -name '*~' -exec $(RM) {} \; |
ae784a3a45b1
The find utility needs a path parameter
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
108
diff
changeset
|
351 |
$(FIND) . -name '*.[oa]' -exec $(RM) {} \; |
ae784a3a45b1
The find utility needs a path parameter
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
108
diff
changeset
|
352 |
$(FIND) . -name '*.gcov' -exec $(RM) {} \; |
ae784a3a45b1
The find utility needs a path parameter
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
108
diff
changeset
|
353 |
$(FIND) . -name '*.gcda' -exec $(RM) {} \; |
ae784a3a45b1
The find utility needs a path parameter
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
108
diff
changeset
|
354 |
$(FIND) . -name '*.gcno' -exec $(RM) {} \; |
ae784a3a45b1
The find utility needs a path parameter
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
108
diff
changeset
|
355 |
$(FIND) . -name 'gmon.out' -exec $(RM) {} \; |
71
9ac5a589211e
Makefile: Little Improvements
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
70
diff
changeset
|
356 |
endif |
9ac5a589211e
Makefile: Little Improvements
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
70
diff
changeset
|
357 |
$(RM) $(TARGET) |
0 | 358 |
|
64
993b97c4ad2d
FORK ERROR in prog_limit and mem2swap:
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
62
diff
changeset
|
359 |
beauty: |
71
9ac5a589211e
Makefile: Little Improvements
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
70
diff
changeset
|
360 |
ifdef FIND |
122
50ba3b0e271a
GNU Make and GNU Indent
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
119
diff
changeset
|
361 |
$(FIND) . -name '*.[ch]' -exec $(INDENT) {} \; |
50ba3b0e271a
GNU Make and GNU Indent
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
119
diff
changeset
|
362 |
$(FIND) . -name '*.[ch]' -exec $(ERASER) {} \; |
50ba3b0e271a
GNU Make and GNU Indent
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
119
diff
changeset
|
363 |
$(FIND) . -name '*.java' -exec $(ERASER) {} \; |
50ba3b0e271a
GNU Make and GNU Indent
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
119
diff
changeset
|
364 |
$(FIND) . -name 'Makefile*' -exec $(ERASER) {} \; |
71
9ac5a589211e
Makefile: Little Improvements
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
70
diff
changeset
|
365 |
endif |
122
50ba3b0e271a
GNU Make and GNU Indent
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
119
diff
changeset
|
366 |
@$(MAKE) clean |