Commit | Line | Data |
---|---|---|
1 | ||
2 | CC=gcc | |
3 | ||
4 | all: testprog testprog.S | |
5 | ||
6 | marker-lib.o: marker-lib.c marker.h | |
7 | $(CC) -O2 -DCONFIG_MARKERS -c -o $@ marker-lib.c | |
8 | ||
9 | testprog: testprog.c marker.h marker-lib.o | |
10 | $(CC) -O2 -DCONFIG_MARKERS -o $@ testprog.c marker-lib.o | |
11 | ||
12 | testprog.S: testprog.c marker.h | |
13 | $(CC) -O2 -DCONFIG_MARKERS -S -o $@ testprog.c | |
14 | ||
15 | .PHONY: clean | |
16 | ||
17 | clean: | |
18 | rm -f testprog testprog.S |