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