ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change
on this file since 9df2dd5 was
17cd4eb,
checked in by Peter A. Buhr <pabuhr@…>, 10 years ago
|
fixed restrict, fixed parameter copy, introduced name table for types, changed variable after to string
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[134b86a] | 1 | CC=../../bin/cfa |
---|
| 2 | CFLAGS = -g -Wunused-function -MD |
---|
| 3 | MAKEFILE_NAME = ${firstword ${MAKEFILE_LIST}} # makefile name |
---|
[51b7345] | 4 | |
---|
[134b86a] | 5 | OBJECTS1 = iostream.o fstream.o fstream_test.o |
---|
| 6 | EXEC1 = fstream_test |
---|
[51b7345] | 7 | |
---|
[134b86a] | 8 | OBJECTS2 = vector_int.o fstream.o iostream.o array.o iterator.o vector_test.o |
---|
| 9 | EXEC2 = vector_test |
---|
[51b7345] | 10 | |
---|
[134b86a] | 11 | OBJECTS = ${OBJECTS1} ${OBJECTS2} # all object files |
---|
| 12 | DEPENDS = ${OBJECTS:.o=.d} # substitute ".o" with ".d" |
---|
| 13 | EXECS = ${EXEC1} ${EXEC2} # all executables |
---|
[51b7345] | 14 | |
---|
[134b86a] | 15 | ########## Targets ########## |
---|
[51b7345] | 16 | |
---|
[134b86a] | 17 | .PHONY : all clean # not file names |
---|
[51b7345] | 18 | |
---|
[134b86a] | 19 | all : ${EXECS} # build all executables |
---|
| 20 | |
---|
| 21 | ${EXEC1} : ${OBJECTS1} # link step 1st executable |
---|
[17cd4eb] | 22 | ${CC} ${CFLAGS} $^ -o $@ # additional object files before $^ |
---|
[134b86a] | 23 | |
---|
| 24 | ${EXEC2} : ${OBJECTS2} # link step 2nd executable |
---|
[17cd4eb] | 25 | ${CC} ${CFLAGS} $^ -o $@ # additional object files before $^ |
---|
[134b86a] | 26 | |
---|
| 27 | ${OBJECTS} : ${MAKEFILE_NAME} # OPTIONAL : changes to this file => recompile |
---|
| 28 | |
---|
| 29 | -include ${DEPENDS} # include *.d files containing program dependences |
---|
| 30 | |
---|
| 31 | clean : # remove files that can be regenerated |
---|
| 32 | rm -f ${DEPENDS} ${OBJECTS} ${EXECS} *.class |
---|
Note: See
TracBrowser
for help on using the repository browser.