|
|
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.10! root 7: CFLAGS += -I. -I../.. -I../includes -I../debug -I../falcon $(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.1.9 root 12: CPUCSRCS = hatari-glue.c memory.c newcpu.c readcpu.c fpp.c
1.1.1.2 root 13:
1.1.1.9 root 14: CPUGENOBS = cpuemu1.o cpuemu2.o cpuemu3.o cpuemu4.o \
15: cpuemu5.o cpuemu6.o cpuemu7.o cpuemu8.o \
16: cpudefs.o cpustbl.o
1.1 root 17:
1.1.1.9 root 18: CPU_OBS = $(CPUCSRCS:.c=.o) $(CPUGENOBS)
1.1 root 19:
1.1.1.4 root 20:
1.1.1.8 root 21: all: cpu68k.a
1.1 root 22:
1.1.1.8 root 23: cpu68k.a: $(CPU_OBS)
24: $(AR) cru $@ $^
25: $(RANLIB) $@
1.1 root 26:
1.1.1.4 root 27: build68k: build68k.c
1.1.1.5 root 28: $(HOSTCC) $(HOSTCFLAGS) -o $@ $<
1.1.1.4 root 29:
1.1.1.7 root 30: cpudefs.c: build68k table68k
31: ./build68k <table68k >cpudefs.c
32:
1.1.1.5 root 33: cpudefs-host.o: cpudefs.c
34: $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
35:
36: readcpu-host.o: readcpu.c
37: $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
38:
1.1.1.4 root 39: gencpu.o: gencpu.c
1.1.1.5 root 40: $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
1.1.1.4 root 41:
1.1.1.5 root 42: gencpu: gencpu.o readcpu-host.o cpudefs-host.o
43: $(HOSTCC) $(HOSTLDFLAGS) -o $@ $^
1.1 root 44:
45: cpuemu.c: gencpu
46: ./gencpu
47:
1.1.1.8 root 48:
1.1 root 49: cpustbl.c: cpuemu.c
50: cputbl.h: cpuemu.c
51:
52:
1.1.1.4 root 53: # this is for people with low memory (is there a way do do this with a single rule ?)
1.1 root 54: cpuemu1.o: cpuemu.c
1.1.1.8 root 55: $(CC) -DPART_1 -c $(QUIETCFLAGS) $< -o $@
1.1 root 56: cpuemu2.o: cpuemu.c
1.1.1.8 root 57: $(CC) -DPART_2 -c $(QUIETCFLAGS) $< -o $@
1.1 root 58: cpuemu3.o: cpuemu.c
1.1.1.8 root 59: $(CC) -DPART_3 -c $(QUIETCFLAGS) $< -o $@
1.1 root 60: cpuemu4.o: cpuemu.c
1.1.1.8 root 61: $(CC) -DPART_4 -c $(QUIETCFLAGS) $< -o $@
1.1 root 62: cpuemu5.o: cpuemu.c
1.1.1.8 root 63: $(CC) -DPART_5 -c $(QUIETCFLAGS) $< -o $@
1.1 root 64: cpuemu6.o: cpuemu.c
1.1.1.8 root 65: $(CC) -DPART_6 -c $(QUIETCFLAGS) $< -o $@
1.1 root 66: cpuemu7.o: cpuemu.c
1.1.1.8 root 67: $(CC) -DPART_7 -c $(QUIETCFLAGS) $< -o $@
1.1 root 68: cpuemu8.o: cpuemu.c
1.1.1.8 root 69: $(CC) -DPART_8 -c $(QUIETCFLAGS) $< -o $@
1.1 root 70:
71:
1.1.1.7 root 72: clean:
1.1.1.8 root 73: $(RM) *.o gencpu build68k cpu68k.a
1.1.1.7 root 74:
75: distclean: clean
76: $(RM) cpudefs.c cpustbl.c cputbl.h cpuemu.c
1.1.1.9 root 77: $(RM) *~ *.bak *.orig Makefile.dep
78:
79:
80: # Use "make depend" to generate file dependencies:
1.1.1.10! root 81: Makefile.dep: Makefile ../Makefile
1.1.1.9 root 82: $(CC) -M $(CFLAGS) $(CPUCSRCS) > Makefile.dep
83:
84: depend: Makefile.dep
85:
86: -include Makefile.dep
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.