more blitter, doukutsu fully playable on pnd
[ginge.git] / loader / Makefile
CommitLineData
0881206b 1ARCH ?= arm
2CROSS_COMPILE ?= arm-linux-
11913091 3CC = $(CROSS_COMPILE)gcc
4AS = $(CROSS_COMPILE)as
5CFLAGS += -Wall -ggdb
6LDFLAGS += -static -ggdb
0881206b 7ifndef DEBUG
8CFLAGS += -O2 -fno-strict-aliasing
9LDFLAGS += -s -O2
10endif
11913091 11
0881206b 12ifeq "$(ARCH)" "ia32"
11913091 13ARCH = ia32
14CFLAGS += -m32
15LDFLAGS += -m32
16ASFLAGS += --32
17endif
18ifeq "$(ARCH)" "arm"
19ASFLAGS += -mfloat-abi=soft
20OBJ += sys_cacheflush.o
21endif
22
3d295a9f 23OBJ += loader.o loader_$(ARCH).o patches.o emu.o host_fb.o host_pnd.o
11913091 24
25loader: $(OBJ)
26
27loader: LDFLAGS += -Wl,-T script_$(ARCH).lds
28
29clean:
30 $(RM) loader $(OBJ)