|
|
1.1 root 1: # Makefile for UAE (Un*x Amiga Emulator)
2: #
3: # Copyright 1995,1996 Bernd Schmidt
4: # Copyright 1996 Ed Hanway
5:
6: .SUFFIXES: .o .c .h .m
7:
8: INCLUDES=-Iinclude
9:
10: OBJS = main.o newcpu.o memory.o debug.o custom.o cia.o disk.o blitter.o $(GFXOBJS) \
11: autoconf.o os.o ersatz.o filesys.o hardfile.o keybuf.o expansion.o zfile.o \
12: fpp.o readcpu.o cpudefs.o gfxutil.o gfxlib.o blitfunc.o blittable.o $(ASSEMBLYOBJS) \
13: cpu0.o cpu1.o cpu2.o cpu3.o cpu4.o cpu5.o cpu6.o cpu7.o \
14: cpu8.o cpu9.o cpuA.o cpuB.o cpuC.o cpuD.o cpuE.o cpuF.o cpustbl.o
15:
16: all: sysconfig.h bebox
17:
18: sysconfig.h: sysconfig.h.Be
19: cp sysconfig.h.Be sysconfig.h
20:
21: # ASSEMBLYOBJS='PPC.o' \
22:
23: bebox:
24: $(MAKE) -fMakefile.Be \
25: CC='mwcc' \
26: DEBUGFLAGS='-g' \
27: GFXOBJS='bebox.o' \
28: CFLAGS='-O7 -DPPC603=1 -D__unix -D__bebox__' \
29: LDFLAGS='' \
30: INCPATH='-I$(BEINCLUDES)' \
31: progs
32:
33: progs: uae readdisk
34:
35: install:
36:
37: readdisk: readdisk.o
38: $(CC) readdisk.o -o readdisk $(LDFLAGS) $(DEBUGFLAGS)
39:
40: uae: $(OBJS)
41: $(CC) $(OBJS) -o uae $(GFXLDFLAGS) $(AFLDFLAGS) $(LDFLAGS) $(DEBUGFLAGS)
42:
43: clean:
44: -rm -f *.o uae readdisk
45: -rm -f gencpu genblitter build68k cpudefs.c
46: -rm -f cpu?.c blit.h
47: -rm -f cputbl.h cpustbl.c
48: -rm -f blitfunc.c blitfunc.h blittable.c
49:
50: halfclean:
51: -rm -f $(OBJS) $(GFXOBJS)
52:
53: blit.h: genblitter
54: ./genblitter i >blit.h
55: blitfunc.c: genblitter blitfunc.h
56: ./genblitter f >blitfunc.c
57: blitfunc.h: genblitter
58: ./genblitter h >blitfunc.h
59: blittable.c: genblitter blitfunc.h
60: ./genblitter t >blittable.c
61:
62: genblitter: genblitter.o
63: $(CC) $(LDFLAGS) -o $@ $?
64: build68k: build68k.o
65: $(CC) $(LDFLAGS) -o $@ $?
66: gencpu: gencpu.o readcpu.o cpudefs.o
67: $(CC) $(LDFLAGS) -o $@ gencpu.o readcpu.o cpudefs.o
68:
69: custom.o: blit.h
70:
71: cpudefs.c: build68k table68k
72: ./build68k >cpudefs.c
73: cpustbl.c: gencpu
74: ./gencpu s >cpustbl.c
75: cputbl.c: gencpu
76: ./gencpu t >cputbl.c
77: cputbl.h: gencpu
78: ./gencpu h >cputbl.h
79:
80: cpu0.c: gencpu
81: ./gencpu f 0 >cpu0.c
82: cpu1.c: gencpu
83: ./gencpu f 1 >cpu1.c
84: cpu2.c: gencpu
85: ./gencpu f 2 >cpu2.c
86: cpu3.c: gencpu
87: ./gencpu f 3 >cpu3.c
88: cpu4.c: gencpu
89: ./gencpu f 4 >cpu4.c
90: cpu5.c: gencpu
91: ./gencpu f 5 >cpu5.c
92: cpu6.c: gencpu
93: ./gencpu f 6 >cpu6.c
94: cpu7.c: gencpu
95: ./gencpu f 7 >cpu7.c
96: cpu8.c: gencpu
97: ./gencpu f 8 >cpu8.c
98: cpu9.c: gencpu
99: ./gencpu f 9 >cpu9.c
100: cpuA.c: gencpu
101: ./gencpu f 10 >cpuA.c
102: cpuB.c: gencpu
103: ./gencpu f 11 >cpuB.c
104: cpuC.c: gencpu
105: ./gencpu f 12 >cpuC.c
106: cpuD.c: gencpu
107: ./gencpu f 13 >cpuD.c
108: cpuE.c: gencpu
109: ./gencpu f 14 >cpuE.c
110: cpuF.c: gencpu
111: ./gencpu f 15 >cpuF.c
112:
113: cpu0.o: cpu0.c
114: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
115: cpu1.o: cpu1.c
116: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
117: cpu2.o: cpu2.c
118: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
119: cpu3.o: cpu3.c
120: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
121: cpu4.o: cpu4.c
122: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
123: cpu5.o: cpu5.c
124: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
125: cpu6.o: cpu6.c
126: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
127: cpu7.o: cpu7.c
128: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
129: cpu8.o: cpu8.c
130: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
131: cpu9.o: cpu9.c
132: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
133: cpuA.o: cpuA.c
134: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
135: cpuB.o: cpuB.c
136: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
137: cpuC.o: cpuC.c
138: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
139: cpuD.o: cpuD.c
140: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
141: cpuE.o: cpuE.c
142: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
143: cpuF.o: cpuF.c
144: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
145:
146: bebox.o: bebox.cpp
147: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(DEBUGFLAGS) bebox.cpp
148: #beaudio.o: beaudio.cpp
149: # $(CC) $(INCLUDES) -c $(INCDIRD) $(CFLAGS) $(DEBUGFALGS) beaudio.cpp
150:
151: X86.o: X86.S
152: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(DEBUGFLAGS) $(ASSEMBLYCFLAGS) X86.S
153: #PPC.o: PPC.cpp
154: # $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(DEBUGFLAGS) $(ASSEMBLYCFLAGS) PPC.cpp
155:
156: .m.o:
157: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(DEBUGFLAGS) $*.m
158: .c.o:
159: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(DEBUGFLAGS) $(ASSEMBLYCFLAGS) $*.c
160: .c.s:
161: $(CC) $(INCLUDES) -S $(INCDIRS) $(CFLAGS) $*.c
162: .S.o:
163: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(DEBUGFLAGS) $(ASSEMBLYCFLAGS) $*.S
164:
165: # Saves recompiling...
166: touch:
167: touch *.o; touch build68k; touch cpudefs.c; touch cpudefs.o; touch gencpu; touch genblitter; touch cpu*.c; touch cpu*.h; touch cpu*.o
168:
169: # Some more dependencies...
170: cpu0.o: cputbl.h
171: cpu1.o: cputbl.h
172: cpu2.o: cputbl.h
173: cpu3.o: cputbl.h
174: cpu4.o: cputbl.h
175: cpu5.o: cputbl.h
176: cpu6.o: cputbl.h
177: cpu7.o: cputbl.h
178: cpu8.o: cputbl.h
179: cpu9.o: cputbl.h
180: cpuA.o: cputbl.h
181: cpuB.o: cputbl.h
182: cpuC.o: cputbl.h
183: cpuD.o: cputbl.h
184: cpuE.o: cputbl.h
185: cpuF.o: cputbl.h
186: cpustbl.o: cputbl.h
187: cputbl.o: cputbl.h
188:
189: build68k.o: include/readcpu.h
190: readcpu.o: include/readcpu.h
191:
192: main.o: config.h
193: cia.o: config.h include/events.h
194: custom.o: config.h include/events.h
195: newcpu.o: config.h include/events.h
196: autoconf.o: config.h
197: expansion.o: config.h
198: xwin.o: config.h
199: svga.o: config.h
200: bebox.o: config.h bebox.h
201: #beaudio.o: config.h
202: os.o: config.h
203: memory.o: config.h
204: debug.o: config.h
205: fpp.o: config.h
206: ersatz.o: config.h
207: disk.o: config.h include/events.h
208: blitter.o: config.h include/events.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.