Makefile.

This commit is contained in:
Piotr Fusik 2013-10-02 11:13:41 +02:00
parent ca04480869
commit 15c46f525e
2 changed files with 22 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
inflate.obx
gzip2deflate
zip2deflate
*.exe
2deflate.zip

17
Makefile Normal file
View File

@ -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: