aboutsummaryrefslogtreecommitdiff
path: root/graftest/Makefile
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-09-21 04:15:01 -0400
committerB. Watson <yalhcru@gmail.com>2016-09-21 04:15:01 -0400
commitf0099b740641b8817d2b741b11154f4830df80e4 (patch)
tree5b8c3b9351d4acd219095649162c3a0ac966d2b4 /graftest/Makefile
parent93bba30c3aea778344ad1e735e015977510dcbc8 (diff)
downloadjumpmanjr-f0099b740641b8817d2b741b11154f4830df80e4.tar.gz
simulated GR.1 text rendering, split colortable out into separate files
Diffstat (limited to 'graftest/Makefile')
-rw-r--r--graftest/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/graftest/Makefile b/graftest/Makefile
index e16ae6d..42d14aa 100644
--- a/graftest/Makefile
+++ b/graftest/Makefile
@@ -1,11 +1,15 @@
-HOSTCC=gcc
+# compiler used to build graftest. theoretically this could
+# be a cross-compiler.
CC=gcc
-
CFLAGS=-Wall -O2
+
+# compiler used to build blob2c. this needs to be the native
+# compiler even if CC is cross.
+HOSTCC=gcc
HOSTCFLAGS=-Wall -O2
-all: rom.c
- gcc -O2 -Wall -o graftest graftest.c rom.c `pkg-config sdl2 --cflags --libs`
+all: rom.o colortable.o
+ gcc -O2 -Wall -o graftest graftest.c rom.o colortable.o `pkg-config sdl2 --cflags --libs`
rom.c: blob2c jumpmanjr.rom
./blob2c jumpmanjr.rom > rom.c 2> rom.h