mgh: fix for default HDD DMA mode, that wasn't correctly set
[open-ps2-loader.git] / kpatch_10K / Makefile
bloba165b9823c6ec583188a02947cd6d549f4a1b8df
1 # Copyright 2010, jimmikaelkael <jimmikaelkael@wanadoo.fr>
2 # Licenced under Academic Free License version 3.0
3 # Review Open-PS2-Loader README & LICENSE files for further details.
5 EE_BIN = kpatch.elf
6 EE_OBJS = kpatch_asm.o
8 EE_CFLAGS = -D_EE -O2 -G0 -Wall
9 EE_LDFLAGS = -nostartfiles -Tlinkfile -s
11 %.o : %.S
12 $(EE_CC) $(EE_CFLAGS) -c $< -o $@
14 $(EE_BIN) : $(EE_OBJS)
15 $(EE_CC) $(EE_CFLAGS) $(EE_LDFLAGS) -o $(EE_BIN) $(EE_OBJS) -Xlinker -Map -Xlinker kpatch.map
17 all: $(EE_BIN)
19 clean:
20 rm -f *.o *.a *.map *.bak *.elf
22 clean_all:
23 rm -f *.o *.a *.map *.bak *.elf
25 include $(PS2SDK)/samples/Makefile.pref