diff options
| author | Jon duSaint | 2022-05-05 15:46:41 -0700 |
|---|---|---|
| committer | Jon duSaint | 2022-05-05 15:46:41 -0700 |
| commit | 6a290f10cf9aaa142db637834b54602286204394 (patch) | |
| tree | fed7333895a747244fc1518c3613281f6bf34c9a /xcpu/Makefile | |
| parent | 7c75c02f784be12343e2e4f82726f3a5f0ddb6a7 (diff) | |
xcpu: add old program
Diffstat (limited to 'xcpu/Makefile')
| -rw-r--r-- | xcpu/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/xcpu/Makefile b/xcpu/Makefile new file mode 100644 index 0000000..f1cbccf --- /dev/null +++ b/xcpu/Makefile @@ -0,0 +1,27 @@ +# Makefile for XCPU + +CC = /usr/bin/gcc +CFLAGS = -Wall -g -O2 -lm +RM = /bin/rm +FLEX = /usr/bin/flex +BISON = /usr/bin/bison + +all : xas xcpu xdis bootstrap.xcpu + +xas : xas.c memory.c hash.c xas_parse.tab.c lex.yy.c + +xas_parse.tab.c: xas_parse.y + $(BISON) -d xas_parse.y + +lex.yy.c : xas_lex.lex + $(FLEX) xas_lex.lex + +xcpu: xcpu.c memory.c disassemble.c + +xdis: xdis.c disassemble.c + +bootstrap.xcpu: xas bootstrap.s + ./xas -a0 bootstrap.s + +clean : + $(RM) -f *~ xas xcpu lex.yy.c *.xcpu xas_parse.tab.* |
