|
|
1.1.1.2 ! root 1: # Makefile for UAE (Un*x Amiga Emulator) 1.1 root 2: # 1.1.1.2 ! root 3: # Copyright 1995,1996 Bernd Schmidt ! 4: # Copyright 1996 Ed Hanway 1.1 root 5: 1.1.1.2 ! root 6: .SUFFIXES: .o .c .h 1.1 root 7: 1.1.1.2 ! root 8: # If you have a Pentium, you can get better code if you use the commented ! 9: # line. ! 10: # Only gcc 2.7.x understands this. Use an empty "PENTIUMOPT =" line ! 11: # if you use gcc 2.6.x, or a non-x86 architecture. ! 12: # PENTIUMOPT = -malign-jumps=0 -malign-loops=0 ! 13: PENTIUMOPT = ! 14: ! 15: # Don't change anything below this line, except maybe the search paths ! 16: # for X11 (X11R6 could be X11R5 on your system) ! 17: ! 18: RELEASE=yes ! 19: ! 20: INCLUDES=-Iinclude ! 21: ! 22: OBJS = main.o newcpu.o memory.o debug.o custom.o cia.o disk.o $(GFXOBJS) \ ! 23: autoconf.o os.o ersatz.o filesys.o hardfile.o keybuf.o \ ! 24: cpu0.o cpu1.o cpu2.o cpu3.o cpu4.o cpu5.o cpu6.o cpu7.o \ ! 25: cpu8.o cpu9.o cpuA.o cpuB.o cpuC.o cpuD.o cpuE.o cpuF.o cputbl.o ! 26: ! 27: all: ! 28: @echo "Use one of the following:" ! 29: @echo "make generic -- if nothing else works" ! 30: @echo "make withgcc -- if nothing else works, but you have gcc" ! 31: @echo "make sgi -- SGI IRIX 5.3" ! 32: @echo "make linux -- Linux (X Window System)" ! 33: @echo "make svga -- Linux svgalib" ! 34: @echo "make hpux -- Try to use HP-SUX compiler. Use GCC if it's available." ! 35: @echo "make osf -- DEC ALPHA with OSF/1" ! 36: ! 37: generic: ! 38: $(MAKE) INCDIRS='-I/usr/include/X11' \ ! 39: GFXLDFLAGS='-L/usr/X11/lib -lX11 -lXext' \ ! 40: GFXOBJS=xwin.o \ ! 41: progs ! 42: ! 43: withgcc: ! 44: $(MAKE) CC='gcc' \ ! 45: INCDIRS='-I/usr/include/X11' \ ! 46: GFXLDFLAGS='-L/usr/X11/lib -lX11 -lXext' \ ! 47: GFXOBJS=xwin.o \ ! 48: progs ! 49: ! 50: osf: ! 51: $(MAKE) CC=gcc \ ! 52: INCDIRS='-I/usr/X11R6/include' \ ! 53: GFXLDFLAGS='-L/usr/X11R6/lib -lX11' \ ! 54: GFXOBJS=xwin.o \ ! 55: CFLAGS='-ansi -pedantic \ ! 56: -Wall -ggdb' \ ! 57: progs ! 58: ! 59: hpux: ! 60: $(MAKE) CC=$(CXX) \ ! 61: INCDIRS='-I/usr/include/X11' \ ! 62: GFXLDFLAGS='-lX11 -lXext' \ ! 63: GFXOBJS=xwin.o \ ! 64: CFLAGS='-Aa +O1' \ ! 65: progs ! 66: ! 67: sgi: ! 68: $(MAKE) CC=$(CXX) \ ! 69: INCDIRS='-I/usr/include/X11' \ ! 70: GFXLDFLAGS='-lX11 -lXext' \ ! 71: GFXOBJS=xwin.o \ ! 72: CFLAGS='-woff 3262 -O2' \ ! 73: progs ! 74: ! 75: linux: ! 76: $(MAKE) INCDIRS='-I/usr/X11R6/include' \ ! 77: GFXLDFLAGS='-L/usr/X11R6/lib -lX11 -lXext' \ ! 78: GFXOBJS=xwin.o \ ! 79: CFLAGS='-ansi -pedantic \ ! 80: -Wall -Wno-unused -W -Wmissing-prototypes -Wstrict-prototypes \ ! 81: -O3 -fomit-frame-pointer $(PENTIUMOPT)' \ ! 82: progs ! 83: ! 84: svga: ! 85: $(MAKE) \ ! 86: GFXLDFLAGS='-lvga' \ ! 87: GFXOBJS=svga.o \ ! 88: CFLAGS='-ansi -pedantic \ ! 89: -Wall -Wno-unused -W -Wmissing-prototypes -Wstrict-prototypes \ ! 90: -O3 -fomit-frame-pointer $(PENTIUMOPT)' \ ! 91: progs ! 92: ! 93: progs: uae readdisk ! 94: ! 95: install: ! 96: ! 97: readdisk: readdisk.o ! 98: $(CC) readdisk.o -o readdisk $(LDFLAGS) $(DEBUGFLAGS) ! 99: ! 100: uae: $(OBJS) ! 101: $(CC) $(OBJS) -o uae $(GFXLDFLAGS) $(LDFLAGS) $(DEBUGFLAGS) ! 102: ! 103: clean: ! 104: -rm -f *.o uae readdisk ! 105: -rm -f gencpu genblitter ! 106: -rm -f cpu?.c blit.h ! 107: -rm -f cputbl.h cputbl.c ! 108: ! 109: blit.h: genblitter ! 110: genblitter >blit.h ! 111: ! 112: genblitter: genblitter.o ! 113: $(CC) -o $@ $? ! 114: gencpu: gencpu.o ! 115: $(CC) -o $@ $? ! 116: ! 117: custom.o: blit.h ! 118: ! 119: cputbl.c: gencpu ! 120: gencpu t >cputbl.c ! 121: cputbl.h: gencpu ! 122: gencpu h >cputbl.h ! 123: ! 124: cpu0.c: gencpu ! 125: gencpu f 0 >cpu0.c ! 126: cpu1.c: gencpu ! 127: gencpu f 1 >cpu1.c ! 128: cpu2.c: gencpu ! 129: gencpu f 2 >cpu2.c ! 130: cpu3.c: gencpu ! 131: gencpu f 3 >cpu3.c ! 132: cpu4.c: gencpu ! 133: gencpu f 4 >cpu4.c ! 134: cpu5.c: gencpu ! 135: gencpu f 5 >cpu5.c ! 136: cpu6.c: gencpu ! 137: gencpu f 6 >cpu6.c ! 138: cpu7.c: gencpu ! 139: gencpu f 7 >cpu7.c ! 140: cpu8.c: gencpu ! 141: gencpu f 8 >cpu8.c ! 142: cpu9.c: gencpu ! 143: gencpu f 9 >cpu9.c ! 144: cpuA.c: gencpu ! 145: gencpu f 10 >cpuA.c ! 146: cpuB.c: gencpu ! 147: gencpu f 11 >cpuB.c ! 148: cpuC.c: gencpu ! 149: gencpu f 12 >cpuC.c ! 150: cpuD.c: gencpu ! 151: gencpu f 13 >cpuD.c ! 152: cpuE.c: gencpu ! 153: gencpu f 14 >cpuE.c ! 154: cpuF.c: gencpu ! 155: gencpu f 15 >cpuF.c ! 156: ! 157: # Compiling these without debugging info speeds up the compilation ! 158: # if you have limited RAM (<= 8M) ! 159: cpu0.o: cpu0.c ! 160: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c ! 161: cpu1.o: cpu1.c ! 162: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c ! 163: cpu2.o: cpu2.c ! 164: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c ! 165: cpu3.o: cpu3.c ! 166: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c ! 167: cpu4.o: cpu4.c ! 168: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c ! 169: cpu5.o: cpu5.c ! 170: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c ! 171: cpu6.o: cpu6.c ! 172: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c ! 173: cpu7.o: cpu7.c ! 174: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c ! 175: cpu8.o: cpu8.c ! 176: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c ! 177: cpu9.o: cpu9.c ! 178: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c ! 179: cpuA.o: cpuA.c ! 180: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c ! 181: cpuB.o: cpuB.c ! 182: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c ! 183: cpuC.o: cpuC.c ! 184: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c ! 185: cpuD.o: cpuD.c ! 186: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c ! 187: cpuE.o: cpuE.c ! 188: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c ! 189: cpuF.o: cpuF.c ! 190: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c ! 191: ! 192: .c.o: ! 193: $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(DEBUGFLAGS) $*.c ! 194: .c.s: ! 195: $(CC) $(INCLUDES) -S $(INCDIRS) $(CFLAGS) $*.c ! 196: ! 197: # Some more dependencies... ! 198: cpu0.o: cputbl.h ! 199: cpu1.o: cputbl.h ! 200: cpu2.o: cputbl.h ! 201: cpu3.o: cputbl.h ! 202: cpu4.o: cputbl.h ! 203: cpu5.o: cputbl.h ! 204: cpu6.o: cputbl.h ! 205: cpu7.o: cputbl.h ! 206: cpu8.o: cputbl.h ! 207: cpu9.o: cputbl.h ! 208: cpuA.o: cputbl.h ! 209: cpuB.o: cputbl.h ! 210: cpuC.o: cputbl.h ! 211: cpuD.o: cputbl.h ! 212: cpuE.o: cputbl.h ! 213: cpuF.o: cputbl.h ! 214: cputbl.o: cputbl.h ! 215: ! 216: ifeq ($(RELEASE),yes) ! 217: main.o: config.h ! 218: cia.o: config.h ! 219: custom.o: config.h ! 220: newcpu.o: config.h ! 221: autoconf.o: config.h ! 222: xwin.o: config.h ! 223: svga.o: config.h ! 224: os.o: config.h ! 225: memory.o: config.h ! 226: gencpu.o: config.h ! 227: genblitter.o: config.h ! 228: debug.o: config.h ! 229: ersatz.o: config.h ! 230: disk.o: config.h ! 231: endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.