segfault handler, op parser
[ginge.git] / loader / Makefile
CommitLineData
11913091 1CC = $(CROSS_COMPILE)gcc
2AS = $(CROSS_COMPILE)as
3CFLAGS += -Wall -ggdb
4LDFLAGS += -static -ggdb
5
6ifndef ARCH
7ARCH = ia32
8CFLAGS += -m32
9LDFLAGS += -m32
10ASFLAGS += --32
11endif
12ifeq "$(ARCH)" "arm"
13ASFLAGS += -mfloat-abi=soft
14OBJ += sys_cacheflush.o
15endif
16
17OBJ += loader.o loader_$(ARCH).o patches.o emu.o
18
19loader: $(OBJ)
20
21loader: LDFLAGS += -Wl,-T script_$(ARCH).lds
22
23clean:
24 $(RM) loader $(OBJ)