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