From f0099b740641b8817d2b741b11154f4830df80e4 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 21 Sep 2016 04:15:01 -0400 Subject: simulated GR.1 text rendering, split colortable out into separate files --- graftest/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'graftest/Makefile') 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 -- cgit v1.2.3