File:  [UNIX Amiga Emulator] / uae / Makefile.dos
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:38:02 2018 UTC (8 years, 2 months ago) by root
Branches: MAIN, BSchmidt
CVS tags: uae060, HEAD
uae-0.6.0

#
# Makefile.dos for UAE
#

CC        = gcc
CPP       = gcc -E
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
LIBRARIES = -lgrx20
GFXOBJS   = dos-grx.o nogui.o
ASMOBJS   = X86.o

.SUFFIXES: .o .c .h .m

INCLUDES=-Iinclude

OBJS = main.o newcpu.o memory.o debug.o custom.o cia.o disk.o $(GFXOBJS) \
       autoconf.o os.o ersatz.o filesys.o hardfile.o keybuf.o expansion.o \
       readcpu.o cpudefs.o gfxutil.o gfxlib.o blitfunc.o blittable.o $(ASMOBJS) \
       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 cpustbl.o

all: sysconfig.h uae.exe readdisk.exe

sysconfig.h: sysconfig.h.dos
	cp sysconfig.h.dos sysconfig.h

readdisk.exe: readdisk.o
	$(CC) readdisk.o -o readdisk
	strip readdisk
	coff2exe readdisk

uae.exe: $(OBJS)
	$(CC) $(OBJS) -o uae $(LIBRARIES)
	strip uae
	coff2exe uae

clean:
	-del *.o
	-del uae
	-del uae.exe
	-del readdisk
	-del readdisk.exe
	-del gencpu.exe
	-del genblitter.exe
	-del build68k.exe
	-del cpudefs.c
	-del cpu?.c
	-del blit.h
	-del cputbl.h
	-del cpustbl.c
	-del blitfunc.c
	-del blitfunc.h
	-del blittable.c

halfclean:
	-del *.o

blit.h: genblitter.exe
	genblitter i >blit.h
blitfunc.c: genblitter.exe blitfunc.h
	genblitter f >blitfunc.c
blitfunc.h: genblitter.exe
	genblitter h >blitfunc.h
blittable.c: genblitter.exe blitfunc.h
	genblitter t >blittable.c

genblitter.exe: genblitter.o
	$(CC) -o $@ $?
build68k.exe: build68k.o
	$(CC) -o $@ $?
gencpu.exe: gencpu.o readcpu.o cpudefs.o
	$(CC) -o $@ gencpu.o readcpu.o cpudefs.o

custom.o: blit.h

cpudefs.c: build68k.exe table68k
	build68k >cpudefs.c
cpustbl.c: gencpu.exe
	gencpu s >cpustbl.c
cputbl.c: gencpu.exe
	gencpu t >cputbl.c
cputbl.h: gencpu.exe
	gencpu h >cputbl.h

cpu0.c: gencpu.exe
	gencpu f 0 >cpu0.c
cpu1.c: gencpu.exe
	gencpu f 1 >cpu1.c
cpu2.c: gencpu.exe
	gencpu f 2 >cpu2.c
cpu3.c: gencpu.exe
	gencpu f 3 >cpu3.c
cpu4.c: gencpu.exe
	gencpu f 4 >cpu4.c
cpu5.c: gencpu.exe
	gencpu f 5 >cpu5.c
cpu6.c: gencpu.exe
	gencpu f 6 >cpu6.c
cpu7.c: gencpu.exe
	gencpu f 7 >cpu7.c
cpu8.c: gencpu.exe
	gencpu f 8 >cpu8.c
cpu9.c: gencpu.exe
	gencpu f 9 >cpu9.c
cpuA.c: gencpu.exe
	gencpu f 10 >cpuA.c
cpuB.c: gencpu.exe
	gencpu f 11 >cpuB.c
cpuC.c: gencpu.exe
	gencpu f 12 >cpuC.c
cpuD.c: gencpu.exe
	gencpu f 13 >cpuD.c
cpuE.c: gencpu.exe
	gencpu f 14 >cpuE.c
cpuF.c: gencpu.exe
	gencpu f 15 >cpuF.c

cpu0.o: cpu0.c cputbl.h
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.c
cpu1.o: cpu1.c cputbl.h
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.c
cpu2.o: cpu2.c cputbl.h
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.c
cpu3.o: cpu3.c cputbl.h
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.c
cpu4.o: cpu4.c cputbl.h
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.c
cpu5.o: cpu5.c cputbl.h
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.c
cpu6.o: cpu6.c cputbl.h
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.c
cpu7.o: cpu7.c cputbl.h
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.c
cpu8.o: cpu8.c cputbl.h
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.c
cpu9.o: cpu9.c cputbl.h
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.c
cpuA.o: cpuA.c cputbl.h
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.c
cpuB.o: cpuB.c cputbl.h
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.c
cpuC.o: cpuC.c cputbl.h
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.c
cpuD.o: cpuD.c cputbl.h
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.c
cpuE.o: cpuE.c cputbl.h
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.c
cpuF.o: cpuF.c cputbl.h
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.c

X86.o: X86.S
	$(CC) $(INCLUDES) -c $(CFLAGS) X86.S

.m.o:
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.m
.c.o:
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.c
.c.s:
	$(CC) $(INCLUDES) -S $(CFLAGS) $*.c
.S.o:
	$(CC) $(INCLUDES) -c $(CFLAGS) $*.S

# Saves recompiling...
touch:
	touch *.o
	touch build68k.exe
	touch cpudefs.c
	touch gencpu.exe
	touch genblitter.exe
	touch cpu*.c
	touch cpu*.h

# Some more dependencies...
cpustbl.o: cputbl.h
cputbl.o: cputbl.h

build68k.o: include/readcpu.h
readcpu.o: include/readcpu.h

main.o: config.h
cia.o: config.h
custom.o: config.h
newcpu.o: config.h
autoconf.o: config.h
expansion.o: config.h
xwin.o: config.h
svga.o: config.h
bebox.o: config.h
os.o: config.h
memory.o: config.h
debug.o: config.h
ersatz.o: config.h
disk.o: config.h

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.