equal
deleted
inserted
replaced
1 CC=gcc -g -ggdb |
1 CC=gcc -g -ggdb |
|
2 CPP=g++ -g -ggdb |
2 CFLAGS=-Wall -O2 -Iinclude -ansi |
3 CFLAGS=-Wall -O2 -Iinclude -ansi |
3 NASM=nasm -f elf -Iinclude/ |
|
4 TARGET=ncurses \ |
4 TARGET=ncurses \ |
5 numerierung \ |
5 numerierung \ |
6 xdemo \ |
6 xdemo \ |
7 signals \ |
7 signals \ |
8 tree \ |
8 tree \ |
30 cunit \ |
30 cunit \ |
31 md5 \ |
31 md5 \ |
32 varargs \ |
32 varargs \ |
33 concatenation \ |
33 concatenation \ |
34 alpha_beta \ |
34 alpha_beta \ |
35 life |
35 life \ |
|
36 bad_alloc |
36 |
37 |
37 .SUFFIXES: .c .asm |
38 .SUFFIXES: .c .cc .asm |
38 |
39 |
39 .c.o: |
40 .c.o: |
40 @echo Compiling $< ... |
41 @echo Compiling $< ... |
41 @$(CC) -c $(CFLAGS) -o $@ $< |
42 @$(CC) -c $(CFLAGS) -o $@ $< |
|
43 |
|
44 .cc.o: |
|
45 @echo Compiling $< ... |
|
46 @$(CPP) -c $(CFLAGS) -o $@ $< |
42 |
47 |
43 .asm.o: |
48 .asm.o: |
44 @echo Assembling $< ... |
49 @echo Assembling $< ... |
45 @$(NASM) $< -o $@ |
50 @$(NASM) $< -o $@ |
46 |
51 |
168 |
173 |
169 alpha_beta: alpha_beta.o |
174 alpha_beta: alpha_beta.o |
170 @echo Linking $< ... |
175 @echo Linking $< ... |
171 @$(CC) -o $@ $< |
176 @$(CC) -o $@ $< |
172 |
177 |
173 life: life.c |
178 life: life.o |
174 @echo Linking $< ... |
179 @echo Linking $< ... |
175 @$(CC) -o $@ $< |
180 @$(CC) -o $@ $< |
|
181 |
|
182 bad_alloc: bad_alloc.o |
|
183 @echo Linking $< ... |
|
184 @$(CPP) -o $@ $< |
176 |
185 |
177 .PHONY: clean uninstall |
186 .PHONY: clean uninstall |
178 |
187 |
179 clean: |
188 clean: |
180 rm -f *.o *~ |
189 rm -f *.o *~ |