Mercurial > repos > genjam1
annotate Makefile.win @ 6:16399c067bf1
merge
author | William Morgan <bill@mrgn.org> |
---|---|
date | Sun, 12 Jan 2014 15:16:03 -0800 |
parents | 11fbaecc6c5e |
children |
rev | line source |
---|---|
5
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
1 BIN= $(GDK)/bin |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
2 LIB= $(GDK)/lib |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
3 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
4 LIBSRC= $(GDK)/src |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
5 LIBINCLUDE= $(GDK)/include |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
6 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
7 SRC= src |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
8 RES= res |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
9 INCLUDE= include |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
10 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
11 SHELL=$(BIN)/sh |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
12 RM= $(BIN)/rm |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
13 AR= $(BIN)/ar |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
14 CC= $(BIN)/gcc |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
15 LD= $(BIN)/ld |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
16 ECHO=echo |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
17 OBJCPY= $(BIN)/objcopy |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
18 ASMZ80= $(BIN)/sjasm |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
19 MACCER= $(BIN)/mac68k |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
20 SIZEBND= $(BIN)/sizebnd |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
21 BINTOS= $(BIN)/bintos |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
22 WAVTORAW= $(BIN)/wavtoraw |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
23 PCMTORAW= $(BIN)/pcmtoraw |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
24 GENRES= $(BIN)/genres |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
25 TFMCOM= $(BIN)/tfmcom |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
26 NM= $(BIN)/nm |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
27 MKDIR= $(BIN)/mkdir |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
28 NM2WCH= $(BIN)/nm2wch |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
29 ADDR2LINE=$(BIN)/addr2line |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
30 OUT2GSRC=$(BIN)/out2gsrc |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
31 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
32 OPTION= |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
33 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
34 SRC_C= $(wildcard *.c) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
35 SRC_C+= $(wildcard $(SRC)/*.c) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
36 SRC_S= $(wildcard *.s) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
37 SRC_S+= $(wildcard $(SRC)/*.s) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
38 SRC_SZ80= $(wildcard *.s80) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
39 SRC_SZ80+= $(wildcard $(SRC)/*.s80) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
40 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
41 RES_C= $(wildcard $(RES)/*.c) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
42 RES_S= $(wildcard $(RES)/*.s) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
43 RES_BMP= $(wildcard *.bmp) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
44 RES_BMP+= $(wildcard $(RES)/*.bmp) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
45 RES_WAV= $(wildcard *.wav) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
46 RES_WAV+= $(wildcard $(RES)/*.wav) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
47 RES_WAVPCM= $(wildcard *.wavpcm) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
48 RES_WAVPCM+= $(wildcard $(RES)/*.wavpcm) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
49 RES_DAT= $(wildcard *.dat) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
50 RES_DAT+= $(wildcard $(RES)/*.dat) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
51 RES_RAW= $(wildcard *.raw) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
52 RES_RAW+= $(wildcard $(RES)/*.raw) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
53 RES_PCM= $(wildcard *.pcm) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
54 RES_PCM+= $(wildcard $(RES)/*.pcm) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
55 RES_TFD= $(wildcard *.tfd) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
56 RES_TFD+= $(wildcard $(RES)/*.tfd) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
57 RES_TFC= $(wildcard *.tfc) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
58 RES_TFC+= $(wildcard $(RES)/*.tfc) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
59 RES_MVS= $(wildcard *.mvs) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
60 RES_MVS+= $(wildcard $(RES)/*.mvs) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
61 RES_EIF= $(wildcard *.eif) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
62 RES_EIF+= $(wildcard $(RES)/*.eif) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
63 RES_ESF= $(wildcard *.esf) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
64 RES_ESF+= $(wildcard $(RES)/*.esf) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
65 RES_VGM= $(wildcard *.vgm) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
66 RES_VGM+= $(wildcard $(RES)/*.vgm) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
67 RES_RC= $(wildcard *.rc) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
68 RES_RC+= $(wildcard $(RES)/*.rc) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
69 RES_ASM= $(wildcard *.asm) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
70 RES_ASM+= $(wildcard $(RES)/*.asm) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
71 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
72 OBJ= $(RES_BMP:.bmp=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
73 OBJ+= $(RES_WAV:.wav=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
74 OBJ+= $(RES_WAVPCM:.wavpcm=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
75 OBJ+= $(RES_RC:.rc=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
76 OBJ+= $(RES_ASM:.asm=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
77 OBJ+= $(RES_DAT:.dat=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
78 OBJ+= $(RES_RAW:.raw=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
79 OBJ+= $(RES_PCM:.pcm=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
80 OBJ+= $(RES_TFD:.tfd=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
81 OBJ+= $(RES_TFC:.tfc=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
82 OBJ+= $(RES_MVS:.mvs=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
83 OBJ+= $(RES_VGM:.vgm=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
84 OBJ+= $(RES_EIF:.eif=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
85 OBJ+= $(RES_ESF:.esf=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
86 OBJ+= $(RES_S:.s=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
87 OBJ+= $(RES_C:.c=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
88 OBJ+= $(SRC_SZ80:.s80=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
89 OBJ+= $(SRC_S:.s=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
90 OBJ+= $(SRC_C:.c=.o) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
91 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
92 OBJS = $(addprefix out/, $(OBJ)) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
93 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
94 INCS= -I$(LIBINCLUDE) -I$(INCLUDE) -I$(SRC) -I$(RES) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
95 #FLAGS= $(OPTION) -g3 -m68000 -Wall -O1 -fomit-frame-pointer -fno-builtin-memset -fno-builtin-memcpy $(INCS) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
96 FLAGS= $(OPTION) -m68000 -Wall -O1 -fomit-frame-pointer -fno-builtin-memset -fno-builtin-memcpy $(INCS) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
97 #FLAGS= $(OPTION) -m68000 -Wall -O3 -fno-web -fno-gcse -fno-unit-at-a-time -fomit-frame-pointer -fno-builtin-memset -fno-builtin-memcpy $(INCS) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
98 FLAGSZ80= -i$(LIBSRC) -i$(LIBINCLUDE) -i$(SRC) -i$(INCLUDE) -i$(RES) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
99 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
100 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
101 release: out/rom.bin |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
102 debug: out/rom.bin out/rom.wch |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
103 debugall: out/rom.bin out/rom.wch out/rom.gsrc |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
104 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
105 all: release |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
106 default: release |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
107 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
108 .PHONY: clean |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
109 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
110 clean: |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
111 $(RM) -f $(OBJS) out.lst out/cmd_ out/sega.o out/rom_head.bin out/rom_head.o out/rom.nm out/rom.wch out/rom.out out/rom.bin |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
112 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
113 cleanobj: |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
114 $(RM) -f $(OBJS) out/sega.o out/rom_head.bin out/rom_head.o out/rom.out |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
115 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
116 out/rom.bin: out/rom.out |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
117 $(OBJCPY) -O binary out/rom.out out/rom.bin |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
118 $(SIZEBND) out/rom.bin -sizealign 131072 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
119 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
120 out/rom.wch: out/rom.out |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
121 $(NM) -n -S -t x out/rom.out >out/rom.nm |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
122 $(NM2WCH) out/rom.nm out/rom.wch |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
123 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
124 out/rom.gsrc: out/rom.bin |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
125 $(OUT2GSRC) i out/rom.bin out/rom.addr |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
126 $(ADDR2LINE) -e out/rom.out < out/rom.addr > out/rom.gsrc |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
127 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
128 out/rom.out: out/sega.o out/cmd_ $(LIB)/libmd.a |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
129 $(CC) -n -T $(GDK)/md.ld -nostdlib out/sega.o @out/cmd_ $(LIB)/libmd.a $(LIB)/libgcc.a -o out/rom.out |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
130 $(RM) out/cmd_ |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
131 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
132 out/cmd_: $(OBJS) |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
133 $(ECHO) "$(OBJS)" > out/cmd_ |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
134 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
135 out/sega.o: $(LIBSRC)/boot/sega.s out/rom_head.bin |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
136 $(MKDIR) -p out |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
137 $(CC) $(FLAGS) -c $(LIBSRC)/boot/sega.s -o $@ |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
138 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
139 out/rom_head.bin: out/rom_head.o |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
140 $(LD) -T $(GDK)/md.ld -nostdlib --oformat binary -o $@ $< |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
141 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
142 out/rom_head.o: $(LIBSRC)/boot/rom_head.c |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
143 $(MKDIR) -p out |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
144 $(CC) $(FLAGS) -c $< -o $@ |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
145 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
146 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
147 out/%.o: %.c |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
148 $(MKDIR) -p out |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
149 $(MKDIR) -p out/src |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
150 $(MKDIR) -p out/res |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
151 $(CC) $(FLAGS) -c $< -o $@ |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
152 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
153 out/%.o: %.s |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
154 $(MKDIR) -p out |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
155 $(MKDIR) -p out/src |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
156 $(MKDIR) -p out/res |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
157 $(CC) $(FLAGS) -c $< -o $@ |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
158 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
159 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
160 %.asm: %.rc |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
161 $(GENRES) $< $@ |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
162 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
163 %.s: %.asm |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
164 $(MACCER) -o $@ $< |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
165 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
166 %.s: %.bmp |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
167 $(BINTOS) -bmp $< |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
168 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
169 %.raw: %.wav |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
170 $(WAVTORAW) $< $@ 16000 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
171 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
172 %.pcm: %.wavpcm |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
173 $(WAVTORAW) $< $@ 22050 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
174 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
175 %.rawpcm: %.pcm |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
176 $(PCMTORAW) $< $@ |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
177 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
178 %.tfc: %.tfd |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
179 $(TFMCOM) $< |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
180 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
181 %.o80: %.s80 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
182 $(ASMZ80) $(FLAGSZ80) $< $@ out.lst |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
183 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
184 %.s: %.tfc |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
185 $(BINTOS) -align 32768 $< |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
186 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
187 %.s: %.mvs |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
188 $(BINTOS) -align 256 $< |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
189 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
190 %.s: %.esf |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
191 $(BINTOS) -align 32768 $< |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
192 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
193 %.s: %.eif |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
194 $(BINTOS) -align 256 $< |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
195 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
196 %.s: %.vgm |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
197 $(BINTOS) -align 256 $< |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
198 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
199 %.s: %.raw |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
200 $(BINTOS) -align 256 -sizealign 256 $< |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
201 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
202 %.s: %.rawpcm |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
203 $(BINTOS) -align 128 -sizealign 128 -nullfill 136 $< |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
204 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
205 %.s: %.dat |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
206 $(BINTOS) -align 256 -sizealign 256 $< |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
207 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
208 %.s: %.o80 |
11fbaecc6c5e
copied the windows makefile straight from SGDK.
William Morgan <bill@mrgn.org>
parents:
diff
changeset
|
209 $(BINTOS) $< |