Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Oct 4, 2013
0 parents commit 429d719
Show file tree
Hide file tree
Showing 32 changed files with 10,729 additions and 0 deletions.
1 change: 1 addition & 0 deletions py/.gitignore
@@ -0,0 +1 @@
*.o
50 changes: 50 additions & 0 deletions 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)

0 comments on commit 429d719

Please sign in to comment.