|
|
1.1 root 1: #
2: # Makefile.dos for UAE
3: #
4:
5: CC = gcc
6: CPP = gcc -E
7: CFLAGS = -O3 -fomit-frame-pointer -fstrength-reduce -malign-jumps=0 -malign-loops=0 -malign-functions=0 -Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes -D__DOS__ -DX86_ASSEMBLY -D__inline__=inline -DSTATFS_NO_ARGS=2 -DSTATBUF_BAVAIL=f_bfree
8: CFLAGS_NOT_OPT = -D__DOS__ -DX86_ASSEMBLY -D__inline__=inline -DSTATFS_NO_ARGS=2 -DSTATBUF_BAVAIL=f_bfree
9: GFXOBJS = dos-vbe.o dos-ui.o
10: ASMOBJS = X86.o
11: CPUOBJS = cpufast0.o cpufast1.o cpufast2.o cpufast3.o cpufast4.o cpufast5.o cpufast6.o cpufast7.o cpufast8.o cpufast9.o cpufastA.o cpufastB.o cpufastC.o cpufastD.o cpufastE.o cpufastF.o
12:
13: .SUFFIXES: .o .c .h .m
14:
15: INCLUDES=-Iinclude
16:
17: OBJS = main.o newcpu.o memory.o debug.o custom.o cia.o disk.o blitter.o $(GFXOBJS) \
18: autoconf.o os.o ersatz.o filesys.o hardfile.o keybuf.o expansion.o zfile.o \
19: fpp.o readcpu.o cpudefs.o gfxutil.o gfxlib.o blitfunc.o blittable.o $(ASMOBJS) \
20: serial.o uaelib.o $(CPUOBJS) cpustbl.o dos-sb.o dos-dma.o
21:
22: all: uae.exe readdisk.exe
23:
24: readdisk.exe: readdisk.o
25: $(CC) readdisk.o -o readdisk
26: strip readdisk
27: coff2exe readdisk
28:
29: uae.exe: $(OBJS)
30: $(CC) $(OBJS) -o uae -lm
31: strip uae
32: coff2exe uae
33:
34: clean:
35: -del *.o
36: -del uae
37: -del uae.exe
38: -del readdisk
39: -del readdisk.exe
40: -del gencpu.exe
41: -del genblitter.exe
42: -del build68k.exe
43: -del cpudefs.c
44: -del cpuopti.exe
45: -del cpu?.c
46: -del blit.h
47: -del cputbl.h
48: -del cpustbl.c
49: -del cpufast?.s
50: -del blitfunc.c
51: -del blitfunc.h
52: -del blittable.c
53: -del config.h
54:
55: halfclean:
56: -del *.o
57:
58: blit.h: genblitter.exe
59: genblitter i >blit.h
60: blitfunc.c: genblitter.exe blitfunc.h
61: genblitter f >blitfunc.c
62: blitfunc.h: genblitter.exe
63: genblitter h >blitfunc.h
64: blittable.c: genblitter.exe blitfunc.h
65: genblitter t >blittable.c
66:
67: genblitter.exe: genblitter.o
68: $(CC) $(LDFLAGS) -o genblitter.exe genblitter.o
69: build68k.exe: build68k.o
70: $(CC) $(LDFLAGS) -o build68k.exe build68k.o
71: cpuopti.exe: cpuopti.o
72: $(CC) $(LDFLAGS) -o cpuopti.exe cpuopti.o
73: gencpu.exe: gencpu.o readcpu.o cpudefs.o
74: $(CC) $(LDFLAGS) -o gencpu.exe gencpu.o readcpu.o cpudefs.o
75:
76: custom.o: blit.h
77:
78: cpudefs.c: build68k.exe table68k
79: build68k >cpudefs.c
80: cpustbl.c: gencpu.exe
81: gencpu s >cpustbl.c
82: cputbl.c: gencpu.exe
83: gencpu t >cputbl.c
84: cputbl.h: gencpu.exe
85: gencpu h >cputbl.h
86:
87: cpu0.c: gencpu.exe
88: gencpu f 0 >cpu0.c
89: cpu1.c: gencpu.exe
90: gencpu f 1 >cpu1.c
91: cpu2.c: gencpu.exe
92: gencpu f 2 >cpu2.c
93: cpu3.c: gencpu.exe
94: gencpu f 3 >cpu3.c
95: cpu4.c: gencpu.exe
96: gencpu f 4 >cpu4.c
97: cpu5.c: gencpu.exe
98: gencpu f 5 >cpu5.c
99: cpu6.c: gencpu.exe
100: gencpu f 6 >cpu6.c
101: cpu7.c: gencpu.exe
102: gencpu f 7 >cpu7.c
103: cpu8.c: gencpu.exe
104: gencpu f 8 >cpu8.c
105: cpu9.c: gencpu.exe
106: gencpu f 9 >cpu9.c
107: cpuA.c: gencpu.exe
108: gencpu f 10 >cpuA.c
109: cpuB.c: gencpu.exe
110: gencpu f 11 >cpuB.c
111: cpuC.c: gencpu.exe
112: gencpu f 12 >cpuC.c
113: cpuD.c: gencpu.exe
114: gencpu f 13 >cpuD.c
115: cpuE.c: gencpu.exe
116: gencpu f 14 >cpuE.c
117: cpuF.c: gencpu.exe
118: gencpu f 15 >cpuF.c
119:
120: cpu0.o: cpu0.c cputbl.h
121: $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
122: cpu1.o: cpu1.c cputbl.h
123: $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
124: cpu2.o: cpu2.c cputbl.h
125: $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
126: cpu3.o: cpu3.c cputbl.h
127: $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
128: cpu4.o: cpu4.c cputbl.h
129: $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
130: cpu5.o: cpu5.c cputbl.h
131: $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
132: cpu6.o: cpu6.c cputbl.h
133: $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
134: cpu7.o: cpu7.c cputbl.h
135: $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
136: cpu8.o: cpu8.c cputbl.h
137: $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
138: cpu9.o: cpu9.c cputbl.h
139: $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
140: cpuA.o: cpuA.c cputbl.h
141: $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
142: cpuB.o: cpuB.c cputbl.h
143: $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
144: cpuC.o: cpuC.c cputbl.h
145: $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
146: cpuD.o: cpuD.c cputbl.h
147: $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
148: cpuE.o: cpuE.c cputbl.h
149: $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
150: cpuF.o: cpuF.c cputbl.h
151: $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
152:
153: cpufast0.o: cpufast0.s cputbl.h
154: $(CC) $(INCLUDES) -c $(CFLAGS) $*.s
155: cpufast1.o: cpufast1.s cputbl.h
156: $(CC) $(INCLUDES) -c $(CFLAGS) $*.s
157: cpufast2.o: cpufast2.s cputbl.h
158: $(CC) $(INCLUDES) -c $(CFLAGS) $*.s
159: cpufast3.o: cpufast3.s cputbl.h
160: $(CC) $(INCLUDES) -c $(CFLAGS) $*.s
161: cpufast4.o: cpufast4.s cputbl.h
162: $(CC) $(INCLUDES) -c $(CFLAGS) $*.s
163: cpufast5.o: cpufast5.s cputbl.h
164: $(CC) $(INCLUDES) -c $(CFLAGS) $*.s
165: cpufast6.o: cpufast6.s cputbl.h
166: $(CC) $(INCLUDES) -c $(CFLAGS) $*.s
167: cpufast7.o: cpufast7.s cputbl.h
168: $(CC) $(INCLUDES) -c $(CFLAGS) $*.s
169: cpufast8.o: cpufast8.s cputbl.h
170: $(CC) $(INCLUDES) -c $(CFLAGS) $*.s
171: cpufast9.o: cpufast9.s cputbl.h
172: $(CC) $(INCLUDES) -c $(CFLAGS) $*.s
173: cpufastA.o: cpufastA.s cputbl.h
174: $(CC) $(INCLUDES) -c $(CFLAGS) $*.s
175: cpufastB.o: cpufastB.s cputbl.h
176: $(CC) $(INCLUDES) -c $(CFLAGS) $*.s
177: cpufastC.o: cpufastC.s cputbl.h
178: $(CC) $(INCLUDES) -c $(CFLAGS) $*.s
179: cpufastD.o: cpufastD.s cputbl.h
180: $(CC) $(INCLUDES) -c $(CFLAGS) $*.s
181: cpufastE.o: cpufastE.s cputbl.h
182: $(CC) $(INCLUDES) -c $(CFLAGS) $*.s
183: cpufastF.o: cpufastF.s cputbl.h
184: $(CC) $(INCLUDES) -c $(CFLAGS) $*.s
185:
186: cpufast0.s: cpu0.c cputbl.h cpuopti.exe
187: $(CC) $(INCLUDES) -S $(CFLAGS) $< -o cpu-tmp.s
188: cpuopti <cpu-tmp.s >$@
189: del cpu-tmp.s
190: cpufast1.s: cpu1.c cputbl.h cpuopti.exe
191: $(CC) $(INCLUDES) -S $(CFLAGS) $< -o cpu-tmp.s
192: cpuopti <cpu-tmp.s >$@
193: del cpu-tmp.s
194: cpufast2.s: cpu2.c cputbl.h cpuopti.exe
195: $(CC) $(INCLUDES) -S $(CFLAGS) $< -o cpu-tmp.s
196: cpuopti <cpu-tmp.s >$@
197: del cpu-tmp.s
198: cpufast3.s: cpu3.c cputbl.h cpuopti.exe
199: $(CC) $(INCLUDES) -S $(CFLAGS) $< -o cpu-tmp.s
200: cpuopti <cpu-tmp.s >$@
201: del cpu-tmp.s
202: cpufast4.s: cpu4.c cputbl.h cpuopti.exe
203: $(CC) $(INCLUDES) -S $(CFLAGS) $< -o cpu-tmp.s
204: cpuopti <cpu-tmp.s >$@
205: del cpu-tmp.s
206: cpufast5.s: cpu5.c cputbl.h cpuopti.exe
207: $(CC) $(INCLUDES) -S $(CFLAGS) $< -o cpu-tmp.s
208: cpuopti <cpu-tmp.s >$@
209: del cpu-tmp.s
210: cpufast6.s: cpu6.c cputbl.h cpuopti.exe
211: $(CC) $(INCLUDES) -S $(CFLAGS) $< -o cpu-tmp.s
212: cpuopti <cpu-tmp.s >$@
213: del cpu-tmp.s
214: cpufast7.s: cpu7.c cputbl.h cpuopti.exe
215: $(CC) $(INCLUDES) -S $(CFLAGS) $< -o cpu-tmp.s
216: cpuopti <cpu-tmp.s >$@
217: del cpu-tmp.s
218: cpufast8.s: cpu8.c cputbl.h cpuopti.exe
219: $(CC) $(INCLUDES) -S $(CFLAGS) $< -o cpu-tmp.s
220: cpuopti <cpu-tmp.s >$@
221: del cpu-tmp.s
222: cpufast9.s: cpu9.c cputbl.h cpuopti.exe
223: $(CC) $(INCLUDES) -S $(CFLAGS) $< -o cpu-tmp.s
224: cpuopti <cpu-tmp.s >$@
225: del cpu-tmp.s
226: cpufastA.s: cpuA.c cputbl.h cpuopti.exe
227: $(CC) $(INCLUDES) -S $(CFLAGS) $< -o cpu-tmp.s
228: cpuopti <cpu-tmp.s >$@
229: del cpu-tmp.s
230: cpufastB.s: cpuB.c cputbl.h cpuopti.exe
231: $(CC) $(INCLUDES) -S $(CFLAGS) $< -o cpu-tmp.s
232: cpuopti <cpu-tmp.s >$@
233: del cpu-tmp.s
234: cpufastC.s: cpuC.c cputbl.h cpuopti.exe
235: $(CC) $(INCLUDES) -S $(CFLAGS) $< -o cpu-tmp.s
236: cpuopti <cpu-tmp.s >$@
237: del cpu-tmp.s
238: cpufastD.s: cpuD.c cputbl.h cpuopti.exe
239: $(CC) $(INCLUDES) -S $(CFLAGS) $< -o cpu-tmp.s
240: cpuopti <cpu-tmp.s >$@
241: del cpu-tmp.s
242: cpufastE.s: cpuE.c cputbl.h cpuopti.exe
243: $(CC) $(INCLUDES) -S $(CFLAGS) $< -o cpu-tmp.s
244: cpuopti <cpu-tmp.s >$@
245: del cpu-tmp.s
246: cpufastF.s: cpuF.c cputbl.h cpuopti.exe
247: $(CC) $(INCLUDES) -S $(CFLAGS) $< -o cpu-tmp.s
248: cpuopti <cpu-tmp.s >$@
249: del cpu-tmp.s
250:
251: X86.o: X86.S
252: $(CC) $(INCLUDES) -c $(CFLAGS) X86.S
253:
254: gencpu.o: gencpu.c
255: $(CC) $(INCLUDES) -c $(CFLAGS_NOT_OPT) gencpu.c
256:
257: .m.o:
258: $(CC) $(INCLUDES) -c $(CFLAGS) $(DEBUGFLAGS) $*.m
259: .c.o:
260: $(CC) $(INCLUDES) -c $(CFLAGS) $(DEBUGFLAGS) $*.c
261: .c.s:
262: $(CC) $(INCLUDES) -S $(CFLAGS) $*.c
263: .S.o:
264: $(CC) $(INCLUDES) -c $(CFLAGS) $(DEBUGFLAGS) $*.S
265:
266: # Saves recompiling...
267: touch:
268: touch *.o
269: touch build68k
270: touch cpudefs.*
271: touch gencpu.exe
272: touch genblitter.exe
273: touch cpu*.*
274:
275: # Some more dependencies...
276: cpustbl.o: cputbl.h
277: cputbl.o: cputbl.h
278:
279: build68k.o: include/readcpu.h
280: readcpu.o: include/readcpu.h
281:
282: main.o: config.h
283: cia.o: config.h include/events.h
284: custom.o: config.h include/events.h
285: newcpu.o: config.h include/events.h
286: autoconf.o: config.h
287: expansion.o: config.h
288: xwin.o: config.h
289: svga.o: config.h
290: bebox.o: config.h
291: os.o: config.h
292: memory.o: config.h
293: debug.o: config.h
294: fpp.o: config.h
295: ersatz.o: config.h
296: disk.o: config.h include/events.h
297: blitter.o: config.h include/events.h
298:
299: config.h: ../config.h
300: -copy ..\config.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.