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