aboutsummaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-11-05 11:22:55 +0000
committerJuan J. Martinez <jjm@usebox.net>2023-11-05 11:31:28 +0000
commit2fbdf974338bde8576efdae40a819a76b2391033 (patch)
tree64d41a37470143f142344f9a439d96de3e7918c2 /tools/Makefile
downloadkitsunes-curse-2fbdf974338bde8576efdae40a819a76b2391033.tar.gz
kitsunes-curse-2fbdf974338bde8576efdae40a819a76b2391033.zip
Initial import of the open source release
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
new file mode 100644
index 0000000..c5c2cd7
--- /dev/null
+++ b/tools/Makefile
@@ -0,0 +1,44 @@
+BIN=idsk 2cdt apultra png2crtc hex2bin rasm
+
+all: $(BIN)
+CC=gcc
+CFLAGS=-s -O3 -Wall
+
+idsk:
+ mkdir iDSK/build
+ cd iDSK/build && cmake ../
+ make -C iDSK/build
+ cp iDSK/build/iDSK idsk
+ rm -rf iDSK/build
+
+rasm:
+ make -C rasm_src
+ make -C rasm_src clean
+
+2cdt:
+ make -C 2CDT
+ cp 2CDT/2cdt .
+
+png2crtc:
+ make -C gfx2crtc
+ cp gfx2crtc/png2crtc .
+
+%.o: %.c
+ $(CC) $(CFLAGS) $< -o $@ -c
+
+apultra:
+ make -C apultra_src
+ cp apultra_src/apultra .
+
+hex2bin:
+ make -C hex2bin-2.0
+ cp hex2bin-2.0/bin/hex2bin .
+
+.PHONY: clean
+clean:
+ make -C 2CDT clean
+ make -C gfx2crtc clean
+ make -C hex2bin-2.0 cleanall
+ make -C apultra_src clean
+ rm -f $(BIN) *.o
+