blob: e16ae6d0229b498bb05413a1fa807c413eeb8c53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|