Revision | 6a934d0be4d1fcb73e5ef5db718bb0ac6845fa0a (tree) |
---|---|
Zeit | 2020-02-09 23:03:11 |
Autor | dhrname <dhrname@user...> |
Commiter | dhrname |
Modify the MakeFile
@@ -3,6 +3,7 @@ DEBUGMODE = -Wall -std=c11 -O0 -g -pg | ||
3 | 3 | NODEBUGMODE = -Wall -std=c11 -O2 |
4 | 4 | SHELL = /bin/sh |
5 | 5 | HEADERS = shadowstar.h star.h orderedpair/pair.h orderedpair/list/item.h orderedpair/list/tree/btree.h orderedpair/list/tree/nodelist/ntree.h orderedpair/list/tree/nodelist/class/class.h |
6 | +OBJECT = shadowstar.o exception.o | |
6 | 7 | |
7 | 8 | all : startest star |
8 | 9 | .PHONY : all |
@@ -16,11 +17,11 @@ star.o: $(HEADERS) | ||
16 | 17 | |
17 | 18 | shadowstar.o: $(HEADERS) |
18 | 19 | |
19 | -star: shadowstar.o star.o exception.o | |
20 | - $(CC) $(NODEBUGMODE) -o ../$@ shadowstar.o star.o exception.o | |
20 | +star: star.o $(OBJECT) | |
21 | + $(CC) $(NODEBUGMODE) -o ../$@ star.o $(OBJECT) | |
21 | 22 | |
22 | -startest: shadowstar.o startest.o exception.o | |
23 | - $(CC) $(NODEBUGMODE) -o ../$@ shadowstar.o startest.o exception.o | |
23 | +startest: startest.o $(OBJECT) | |
24 | + $(CC) $(NODEBUGMODE) -o ../$@ startest.o $(OBJECT) | |
24 | 25 | |
25 | 26 | clean: |
26 | 27 | rm -f shadowstar.o startest.o star.o exception.o |