fix for corrupted graphics when manipulating config files
[open-ps2-loader.git] / elfldr / Makefile
blob981c21b6d8a3abe42b8f28054c164e147485aa59
1 EE_BIN = elfldr.elf
2 EE_OBJS = elfldr.o crt0.o
3 EE_CFLAGS = -DIOP_RESET #-DDEBUG
5 EE_INCS := -I$(PS2SDK)/ee/include -I$(PS2SDK)/common/include -I.
6 EE_CFLAGS := -D_EE -O2 -G0 -Wall $(EE_INCS)
8 EE_LDFLAGS = -nostartfiles -Tlinkfile -L$(PS2SDK)/ee/lib -s
9 EE_LIBS += -lkernel
11 %.o : %.c
12 $(EE_CC) $(EE_CFLAGS) $(EE_INCS) -c $< -o $@
14 %.o : %.s
15 $(EE_AS) $(EE_ASFLAGS) $< -o $@
17 $(EE_BIN) : $(EE_OBJS)
18 $(EE_CC) $(EE_CFLAGS) $(EE_LDFLAGS) -o $(EE_BIN) $(EE_OBJS) $(EE_LIBS) -Xlinker -Map -Xlinker elfldr.map
21 all: $(EE_BIN)
23 clean:
24 rm -f *.o *.a *.map *.elf
26 clean_all:
27 rm -f *.o *.a *.map *.elf
29 include $(PS2SDK)/samples/Makefile.pref