diff options
| author | Damien | 2013-10-04 19:53:11 +0100 |
|---|---|---|
| committer | Damien | 2013-10-04 19:53:11 +0100 |
| commit | 429d71943d6b94c7dc3c40a39ff1a09742c77dc2 (patch) | |
| tree | b0fd643076254656c358806d7e47c18f796a54f3 /py/Makefile | |
Initial commit.
Diffstat (limited to 'py/Makefile')
| -rw-r--r-- | py/Makefile | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/py/Makefile b/py/Makefile new file mode 100644 index 000000000..669453dba --- /dev/null +++ b/py/Makefile @@ -0,0 +1,50 @@ +CC = gcc +CFLAGS = -Wall -ansi -std=gnu99 -Os #-DNDEBUG +LDFLAGS = + +SRC = \ + malloc.c \ + misc.c \ + qstr.c \ + lexer.c \ + lexerfile.c \ + parse.c \ + scope.c \ + compile.c \ + emitcommon.c \ + emitcpy.c \ + emitbc.c \ + asmx64.c \ + emitx64v2.c \ + emitthumb.c \ + asmthumb.c \ + runtime.c \ + bc.c \ + main.c \ + +SRC_ASM = \ + runtime1.s \ + +OBJ = $(SRC:.c=.o) $(SRC_ASM:.s=.o) +LIB = +PROG = py + +$(PROG): $(OBJ) + $(CC) -o $@ $(OBJ) $(LIB) $(LDFLAGS) + +runtime.o: runtime.c + $(CC) $(CFLAGS) -O3 -c -o $@ $< + +bc.o: bc.c + $(CC) $(CFLAGS) -O3 -c -o $@ $< + +parse.o: grammar.h +compile.o: grammar.h +emitcpy.o: emit.h +emitbc.o: emit.h +emitx64.o: emit.h +emitx64v2.o: emit.h +emitthumb.o: emit.h + +clean: + /bin/rm $(OBJ) |
