whoops
[d2d-psx.git] / Makefile.mak
blob1121286fc6148cf9e89945b026d8fc2f9371c4f6
1 # the version of make in psyq is fucking OLD
2 # SEND HELP
4 OBJS=obj/a8.obj obj/bmap.obj obj/dots.obj obj/error.obj obj/files.obj \
5 obj/fx.obj obj/game.obj obj/items.obj obj/keyb.obj obj/main.obj obj/memory.obj obj/menu.obj \
6 obj/misc.obj obj/monster.obj obj/music.obj obj/utils.obj obj/player.obj obj/smoke.obj \
7 obj/sound.obj obj/switch.obj obj/vga.obj obj/view.obj obj/weapons.obj obj/memcard.obj
9 CFLAGS=-O3 -Dpsx -comments-c++
10 LDFLAGS=-Xo0x80010000 -llibmcrd
12 CPE=out/doom2d.cpe
13 EXE=out/doom2d.exe
14 SYM=out/doom2d.sym
15 MAP=out/doom2d.map
16 CD=doom2d.bin
18 $(CD): $(EXE)
19 mkpsxiso -y doom2d.xml
21 $(EXE): $(CPE)
22 cpe2x $(CPE)
24 # have to use a response file here because ccpsx
25 # can't take long command lines
26 $(CPE): $(OBJS)
27 ccpsx $(LDFLAGS) @objs.link -o$(CPE),$(SYM),$(MAP)
29 obj/a8.obj: src/a8.c
30 ccpsx src/a8.c $(CFLAGS) -c -o obj/a8.obj
31 obj/bmap.obj: src/bmap.c
32 ccpsx src/bmap.c $(CFLAGS) -c -o obj/bmap.obj
33 obj/dots.obj: src/dots.c
34 ccpsx src/dots.c $(CFLAGS) -c -o obj/dots.obj
35 obj/error.obj: src/error.c
36 ccpsx src/error.c $(CFLAGS) -c -o obj/error.obj
37 obj/files.obj: src/files.c
38 ccpsx src/files.c $(CFLAGS) -c -o obj/files.obj
39 obj/fx.obj: src/fx.c
40 ccpsx src/fx.c $(CFLAGS) -c -o obj/fx.obj
41 obj/game.obj: src/game.c
42 ccpsx src/game.c $(CFLAGS) -c -o obj/game.obj
43 obj/items.obj: src/items.c
44 ccpsx src/items.c $(CFLAGS) -c -o obj/items.obj
45 obj/keyb.obj: src/keyb.c
46 ccpsx src/keyb.c $(CFLAGS) -c -o obj/keyb.obj
47 obj/main.obj: src/main.c
48 ccpsx src/main.c $(CFLAGS) -c -o obj/main.obj
49 obj/memory.obj: src/memory.c
50 ccpsx src/memory.c $(CFLAGS) -c -o obj/memory.obj
51 obj/menu.obj: src/menu.c
52 ccpsx src/menu.c $(CFLAGS) -c -o obj/menu.obj
53 obj/misc.obj: src/misc.c
54 ccpsx src/misc.c $(CFLAGS) -c -o obj/misc.obj
55 obj/monster.obj: src/monster.c
56 ccpsx src/monster.c $(CFLAGS) -c -o obj/monster.obj
57 obj/music.obj: src/music.c
58 ccpsx src/music.c $(CFLAGS) -c -o obj/music.obj
59 obj/utils.obj: src/utils.c
60 ccpsx src/utils.c $(CFLAGS) -c -o obj/utils.obj
61 obj/player.obj: src/player.c
62 ccpsx src/player.c $(CFLAGS) -c -o obj/player.obj
63 obj/smoke.obj: src/smoke.c
64 ccpsx src/smoke.c $(CFLAGS) -c -o obj/smoke.obj
65 obj/sound.obj: src/sound.c
66 ccpsx src/sound.c $(CFLAGS) -c -o obj/sound.obj
67 obj/switch.obj: src/switch.c
68 ccpsx src/switch.c $(CFLAGS) -c -o obj/switch.obj
69 obj/vga.obj: src/vga.c
70 ccpsx src/vga.c $(CFLAGS) -c -o obj/vga.obj
71 obj/view.obj: src/view.c
72 ccpsx src/view.c $(CFLAGS) -c -o obj/view.obj
73 obj/weapons.obj: src/weapons.c
74 ccpsx src/weapons.c $(CFLAGS) -c -o obj/weapons.obj
75 obj/memcard.obj: src/memcard.c
76 ccpsx src/memcard.c $(CFLAGS) -c -o obj/memcard.obj
78 clean:
79 del obj\*.obj
80 del out\*.exe
81 del out\*.cpe
82 del out\*.sym
83 del out\*.map
84 del out\*.img
85 del *.TOC