diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7e9415b --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +inflate.obx +gzip2deflate +zip2deflate +*.exe +2deflate.zip diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5a9ad0c --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +all: inflate.obx gzip2deflate zip2deflate + +inflate.obx: inflate.asx + xasm -d inflate=\$$b700 -d inflate_data=\$$b900 -d inflate_zp=\$$f0 inflate.asx + +%: %.c + gcc -s -O2 -Wall -o $@ $< + +2deflate.zip: gzip2deflate zip2deflate + rm -f $@ && 7z a -mx=9 -tzip $@ gzip2deflate.exe zip2deflate.exe + +clean: + rm -f inflate.obx gzip2deflate zip2deflate 2deflate.zip gzip2deflate.exe zip2deflate.exe + +.PHONY: all clean + +.DELETE_ON_ERROR: