|
|
1.1.1.4 root 1: # Makefile for Hatari's UAE CPU.
2:
1.1.1.5 root 3: # Include settings
4: include ../../Makefile.cnf
1.1 root 5:
1.1.1.2 root 6:
1.1.1.8 ! root 7: CFLAGS += -I. -I../.. $(CPPFLAGS) $(SDL_CFLAGS)
1.1.1.6 root 8: # disable several warnings for the CPU emu code as it comes from elsewhere
9: QUIETCFLAGS = $(CFLAGS) -Wno-unused -Wno-sign-compare -Wno-shadow
1.1.1.2 root 10:
11:
1.1 root 12: CPUCSRCS = hatari-glue.c memory.c newcpu.c readcpu.c fpp.c cpustbl.c cpudefs.c
1.1.1.2 root 13:
1.1 root 14: CPUEMUSRCS = cpuemu1.c cpuemu2.c cpuemu3.c cpuemu4.c \
1.1.1.5 root 15: cpuemu5.c cpuemu6.c cpuemu7.c cpuemu8.c
1.1 root 16:
17: CPU_OBS = $(CPUCSRCS:.c=.o) $(CPUEMUSRCS:.c=.o)
18:
1.1.1.4 root 19:
1.1.1.8 ! root 20: all: cpu68k.a
1.1 root 21:
1.1.1.8 ! root 22: cpu68k.a: $(CPU_OBS)
! 23: $(AR) cru $@ $^
! 24: $(RANLIB) $@
1.1 root 25:
1.1.1.4 root 26: build68k: build68k.c
1.1.1.5 root 27: $(HOSTCC) $(HOSTCFLAGS) -o $@ $<
1.1.1.4 root 28:
1.1.1.7 root 29: cpudefs.c: build68k table68k
30: ./build68k <table68k >cpudefs.c
31:
1.1.1.5 root 32: cpudefs-host.o: cpudefs.c
33: $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
34:
35: readcpu-host.o: readcpu.c
36: $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
37:
1.1.1.4 root 38: gencpu.o: gencpu.c
1.1.1.5 root 39: $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
1.1.1.4 root 40:
1.1.1.5 root 41: gencpu: gencpu.o readcpu-host.o cpudefs-host.o
42: $(HOSTCC) $(HOSTLDFLAGS) -o $@ $^
1.1 root 43:
44: cpuemu.c: gencpu
45: ./gencpu
46:
1.1.1.8 ! root 47:
1.1 root 48: cpustbl.c: cpuemu.c
49: cputbl.h: cpuemu.c
50:
51:
1.1.1.4 root 52: # this is for people with low memory (is there a way do do this with a single rule ?)
1.1 root 53: cpuemu1.o: cpuemu.c
1.1.1.8 ! root 54: $(CC) -DPART_1 -c $(QUIETCFLAGS) $< -o $@
1.1 root 55: cpuemu2.o: cpuemu.c
1.1.1.8 ! root 56: $(CC) -DPART_2 -c $(QUIETCFLAGS) $< -o $@
1.1 root 57: cpuemu3.o: cpuemu.c
1.1.1.8 ! root 58: $(CC) -DPART_3 -c $(QUIETCFLAGS) $< -o $@
1.1 root 59: cpuemu4.o: cpuemu.c
1.1.1.8 ! root 60: $(CC) -DPART_4 -c $(QUIETCFLAGS) $< -o $@
1.1 root 61: cpuemu5.o: cpuemu.c
1.1.1.8 ! root 62: $(CC) -DPART_5 -c $(QUIETCFLAGS) $< -o $@
1.1 root 63: cpuemu6.o: cpuemu.c
1.1.1.8 ! root 64: $(CC) -DPART_6 -c $(QUIETCFLAGS) $< -o $@
1.1 root 65: cpuemu7.o: cpuemu.c
1.1.1.8 ! root 66: $(CC) -DPART_7 -c $(QUIETCFLAGS) $< -o $@
1.1 root 67: cpuemu8.o: cpuemu.c
1.1.1.8 ! root 68: $(CC) -DPART_8 -c $(QUIETCFLAGS) $< -o $@
1.1 root 69:
70:
1.1.1.5 root 71: newcpu.o: sysdeps.h hatari-glue.h maccess.h memory.h newcpu.h
1.1.1.7 root 72:
73:
74: clean:
1.1.1.8 ! root 75: $(RM) *.o gencpu build68k cpu68k.a
1.1.1.7 root 76:
77: distclean: clean
78: $(RM) cpudefs.c cpustbl.c cputbl.h cpuemu.c
79: $(RM) *~ *.bak *.orig
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.