added built in: apply.
[bugg-scheme-compiler.git] / makefile
blob7b70734763beb9eacb3ac4a3c4f21887ba5f4b9c
1 COMPILE=@gcc -c -g -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/ -o $*.o $*.c
30 @echo Linking: $*
31 $(LINK) -o $* $*.o ./build/main.o ./build/scheme.o ./build/arch.o ./build/rtemgr.o