2009-02-09 21:15:56 +00:00
|
|
|
# _____ ___ ____
|
|
|
|
# ____| | ____| PSX2 OpenSource Project
|
|
|
|
# | ___| |____ (C)2002, David Ryan ( Oobles@hotmail.com )
|
|
|
|
# ------------------------------------------------------------------------
|
|
|
|
|
2017-02-05 16:39:31 +00:00
|
|
|
DIRS = eeload iopload
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2017-02-05 16:39:31 +00:00
|
|
|
RESET_BIN = ../build/RESET
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2017-02-05 16:39:31 +00:00
|
|
|
EE_INCS += -Iinclude
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2017-02-05 16:39:31 +00:00
|
|
|
EE_OBJS = eestart.ee.o
|
|
|
|
IOP_OBJS = iopstart.iop.o romdir.iop.o start.iop.o
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2017-02-05 16:39:31 +00:00
|
|
|
all: $(RESET_BIN)
|
2009-02-09 21:15:56 +00:00
|
|
|
for i in $(DIRS); do \
|
2017-02-05 16:39:31 +00:00
|
|
|
make -C $$i; \
|
2009-02-09 21:15:56 +00:00
|
|
|
done;
|
|
|
|
|
2017-02-05 16:39:31 +00:00
|
|
|
$(RESET_BIN): $(EE_OBJS) $(IOP_OBJS)
|
|
|
|
$(EE_CC) -Wl,--oformat,binary -Tlinkfile -nostartfiles $(EE_CFLAGS) \
|
|
|
|
-o $(RESET_BIN) $(EE_OBJS) $(IOP_OBJS) $(EE_LDFLAGS) $(EE_LIBS)
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2017-02-05 16:39:31 +00:00
|
|
|
%.ee.o: %.c
|
|
|
|
$(EE_CC) $(EE_CFLAGS) $(EE_INCS) -c $< -o $@
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2017-02-05 16:39:31 +00:00
|
|
|
%.iop.o: %.c
|
|
|
|
$(IOP_CC) $(IOP_CFLAGS) -c $< -o $@
|
2009-02-09 21:15:56 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
for i in $(DIRS); do \
|
2017-02-05 16:39:31 +00:00
|
|
|
make -C $$i clean; \
|
2009-02-09 21:15:56 +00:00
|
|
|
done;
|
2017-02-05 16:39:31 +00:00
|
|
|
rm -f -r $(RESET_BIN)
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2017-02-05 16:39:31 +00:00
|
|
|
include $(PS2SDK)/Defs.make
|
|
|
|
include $(PS2SDK)/samples/Makefile.pref
|
|
|
|
include $(PS2SDK)/samples/Makefile.eeglobal
|
|
|
|
include $(PS2SDK)/samples/Makefile.iopglobal
|