mgh: fix for default HDD DMA mode, that wasn't correctly set
[open-ps2-loader.git] / labs / hdldsvrlab / Makefile
blob70a8a3d96c722b83ada91fa3b07f38925f3470ca
2 EE_BIN = hdldsvrlab.elf
3 EE_OBJS = hdldsvrlab.o discid.o poweroff.o ps2dev9.o smsutils.o smstcpip.o smsmap.o ps2atad.o ps2hdd.o hdldsvr.o iomanx.o filexio.o
5 EE_LIBS = -lfileXio -lpatches -ldebug -lc -lkernel
6 EE_CFLAGS = -g
7 EE_LDFLAGS = -s
9 all:
10 $(MAKE) $(EE_BIN)
12 clean:
13 $(MAKE) -C ../../modules/cdvd/discID clean
14 $(MAKE) -C ../../modules/dev9 clean
15 $(MAKE) -C ../../modules/network/SMSUTILS clean
16 $(MAKE) -C ../../modules/network/SMSTCPIP -f Makefile clean
17 $(MAKE) -C ../../modules/network/SMSMAP clean
18 $(MAKE) -C ../../modules/hdd/atad clean
19 $(MAKE) -C ../../modules/hdd/ps2hdd clean
20 $(MAKE) -C ../../modules/hdd/hdldsvr clean
21 rm -f *.elf *.o *.a *.s
23 rebuild: clean all
25 discid.s:
26 $(MAKE) -C ../../modules/cdvd/discID
27 bin2s ../../modules/cdvd/discID/discID.irx discid.s discid_irx
29 poweroff.s:
30 bin2s $(PS2SDK)/iop/irx/poweroff.irx poweroff.s poweroff_irx
32 ps2dev9.s:
33 $(MAKE) -C ../../modules/dev9
34 bin2s ../../modules/dev9/ps2dev9.irx ps2dev9.s ps2dev9_irx
36 smsutils.s:
37 $(MAKE) -C ../../modules/network/SMSUTILS
38 bin2s ../../modules/network/SMSUTILS/SMSUTILS.irx smsutils.s smsutils_irx
40 smstcpip.s:
41 $(MAKE) -C ../../modules/network/SMSTCPIP -f Makefile rebuild
42 bin2s ../../modules/network/SMSTCPIP/SMSTCPIP.irx smstcpip.s smstcpip_irx
44 smsmap.s:
45 $(MAKE) -C ../../modules/network/SMSMAP
46 bin2s ../../modules/network/SMSMAP/SMSMAP.irx smsmap.s smsmap_irx
48 ps2atad.s:
49 $(MAKE) -C ../../modules/hdd/atad
50 bin2s ../../modules/hdd/atad/ps2atad.irx ps2atad.s ps2atad_irx
52 ps2hdd.s:
53 $(MAKE) -C ../../modules/hdd/ps2hdd
54 bin2s ../../modules/hdd/ps2hdd/ps2hdd.irx ps2hdd.s ps2hdd_irx
56 hdldsvr.s:
57 $(MAKE) -C ../../modules/hdd/hdldsvr
58 bin2s ../../modules/hdd/hdldsvr/hdldsvr.irx hdldsvr.s hdldsvr_irx
60 iomanx.s:
61 bin2s $(PS2SDK)/iop/irx/iomanX.irx iomanx.s iomanx_irx
63 filexio.s:
64 bin2s $(PS2SDK)/iop/irx/fileXio.irx filexio.s filexio_irx
66 include $(PS2SDK)/samples/Makefile.pref
67 include $(PS2SDK)/samples/Makefile.eeglobal