Added PLASMA makefile rule to build plasm.jar

This commit is contained in:
Martin Haye 2016-01-18 13:11:43 -08:00
parent db1e6c3a6c
commit 79c30b84fc
2 changed files with 11 additions and 4 deletions

1
.gitignore vendored
View File

@ -34,6 +34,7 @@ mg
/Platform/Apple/tools/PLASMA/src/plvm
/Platform/Apple/tools/PLASMA/src/PLVM02.SYSTEM.sys
/Platform/Apple/tools/PLASMA/src/*#*
/Platform/Apple/tools/PLASMA/src/plasm.jar
# Ignore other auto-generated files
/Platform/Apple/virtual/src/plasma/gen_*.pl?

View File

@ -5,8 +5,9 @@ PLVM = plvm
PLVM02 = PLVM02.SYSTEM.sys#2000
CMD = CMD\#FF2000
PLASM = plasm
JAR = $(PLASM).jar
INCS = tokens.h symbols.h lex.h parse.h codegen.h
OBJS = plasm.c parse.o lex.o codegen.o
SRCS = plasm.c parse.c lex.c codegen.c
#
# Image filetypes for Virtual ][
#
@ -22,13 +23,18 @@ TXTTYPE = .TXT
#SYSTYPE = \#ff0000
#TXTTYPE = \#040000
all: $(PLASM) $(PLVM) $(PLVM02) $(CMD)
all: $(PLASM) $(JAR) $(PLVM) $(PLVM02) $(CMD)
clean:
-rm *.o *~ *.a *FE1000 $(PLVM02) $(CMD) $(PLASM) $(PLVM)
$(PLASM): $(OBJS) $(INCS)
cc $(OBJS) -o $(PLASM)
jar: $(JAR)
$(PLASM): $(SRCS) $(INCS)
cc $(SRCS) -o $(PLASM)
$(JAR): $(SRCS) $(INCS)
docker run -t -v "$(shell pwd):/project" mhaye/nestedvm:v3 /bin/bash -c "cd /project && nestedvm-c2jar $(JAR) plasma.Plasma $(SRCS)"
$(PLVM): plvm.c
cc plvm.c -o $(PLVM)