silenced some warnings
[bugg-scheme-compiler.git] / makefile
blobfd09d05fcfb84251e7ebf93d4b58f493f928b4c4
1 COMPILE=@gcc -c -Wall -ansi
2 LINK=@gcc
4 ./build:
5 mkdir ./build
7 ./build/scheme.o: ./src/c/scheme.c ./build
8 @echo Compiling ./build/scheme.o
9 $(COMPILE) -o ./build/scheme.o ./src/c/scheme.c
11 ./build/arch.o: ./src/c/arch.c ./build
12 @echo Compiling ./build/arch.o
13 $(COMPILE) -o ./build/arch.o ./src/c/arch.c
15 ./build/main.o: ./src/c/main.c ./build
16 @echo Compiling ./build/main.o
17 $(COMPILE) -o ./build/main.o ./src/c/main.c
19 #./build/builtins.o: ./src/c/builtins.c ./build
20 # @echo Compiling ./build/builtins.o
21 # $(COMPILE) -o ./build/builtins.o ./src/c/builtins.c
23 ./build/rtemgr.o: ./src/c/rtemgr.c ./build
24 @echo Compiling ./build/rtemgr.o
25 $(COMPILE) -o ./build/rtemgr.o ./src/c/rtemgr.c
27 %: %.c ./build ./build/scheme.o ./build/arch.o ./build/main.o ./build/rtemgr.o
28 @echo Compiling $*.o
29 $(COMPILE) -I ./src/c/ -I ./inc/ -o $*.o $*.c
30 @echo Linking: $*
31 $(LINK) -o $* $*.o ./build/main.o ./build/scheme.o ./build/arch.o ./build/rtemgr.o