diff options
Diffstat (limited to 'graftest/Makefile')
-rw-r--r-- | graftest/Makefile | 12 |
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 |