aboutsummaryrefslogtreecommitdiff
path: root/graftest/Makefile
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-09-21 02:40:23 -0400
committerB. Watson <yalhcru@gmail.com>2016-09-21 02:40:23 -0400
commit93bba30c3aea778344ad1e735e015977510dcbc8 (patch)
tree1ec58f717e9fbaed96e7bf54f62dd33227b9a923 /graftest/Makefile
parent4231e55a1bca84c55a53748944bcd7bada4689ec (diff)
downloadjumpmanjr-93bba30c3aea778344ad1e735e015977510dcbc8.tar.gz
SDL2 level renderer in C
Diffstat (limited to 'graftest/Makefile')
-rw-r--r--graftest/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/graftest/Makefile b/graftest/Makefile
new file mode 100644
index 0000000..e16ae6d
--- /dev/null
+++ b/graftest/Makefile
@@ -0,0 +1,23 @@
+HOSTCC=gcc
+CC=gcc
+
+CFLAGS=-Wall -O2
+HOSTCFLAGS=-Wall -O2
+
+all: rom.c
+ gcc -O2 -Wall -o graftest graftest.c rom.c `pkg-config sdl2 --cflags --libs`
+
+rom.c: blob2c jumpmanjr.rom
+ ./blob2c jumpmanjr.rom > rom.c 2> rom.h
+
+blob2c: blob2c.c
+ $(HOSTCC) $(HOSTCFLAGS) -o blob2c blob2c.c
+
+jumpmanjr.rom:
+ ln -s ../jumpmanjr.rom .
+
+test: all
+ ./graftest
+
+clean:
+ rm -f *.o graftest core blob2c jumpmanjr.rom rom.h rom.c