|
|
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.5 root 7: CFLAGS += -I. $(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.5 root 20: all: $(CPU_OBS)
1.1 root 21:
22:
1.1.1.4 root 23: build68k: build68k.c
1.1.1.5 root 24: $(HOSTCC) $(HOSTCFLAGS) -o $@ $<
1.1.1.4 root 25:
1.1.1.7 ! root 26: # Hack for compiling with MinGW (it does not like the "./" before build68k):
! 27: ifeq ($(SHELL),sh.exe)
! 28:
! 29: cpudefs.c: build68k table68k
! 30: build68k <table68k >cpudefs.c
! 31:
! 32: else
! 33:
! 34: cpudefs.c: build68k table68k
! 35: ./build68k <table68k >cpudefs.c
! 36:
! 37: endif
1.1 root 38:
1.1.1.5 root 39: cpudefs-host.o: cpudefs.c
40: $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
41:
42: readcpu-host.o: readcpu.c
43: $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
44:
1.1.1.4 root 45: gencpu.o: gencpu.c
1.1.1.5 root 46: $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
1.1.1.4 root 47:
1.1.1.5 root 48: gencpu: gencpu.o readcpu-host.o cpudefs-host.o
49: $(HOSTCC) $(HOSTLDFLAGS) -o $@ $^
1.1 root 50:
51: cpuemu.c: gencpu
52: ./gencpu
53:
54: cpustbl.c: cpuemu.c
55: cputbl.h: cpuemu.c
56:
57:
1.1.1.4 root 58: # this is for people with low memory (is there a way do do this with a single rule ?)
1.1 root 59: cpuemu1.o: cpuemu.c
1.1.1.5 root 60: $(CC) -DPART_1 -c $(CPPFLAGS) $(QUIETCFLAGS) $< -o $@
1.1 root 61: cpuemu2.o: cpuemu.c
1.1.1.5 root 62: $(CC) -DPART_2 -c $(CPPFLAGS) $(QUIETCFLAGS) $< -o $@
1.1 root 63: cpuemu3.o: cpuemu.c
1.1.1.5 root 64: $(CC) -DPART_3 -c $(CPPFLAGS) $(QUIETCFLAGS) $< -o $@
1.1 root 65: cpuemu4.o: cpuemu.c
1.1.1.5 root 66: $(CC) -DPART_4 -c $(CPPFLAGS) $(QUIETCFLAGS) $< -o $@
1.1 root 67: cpuemu5.o: cpuemu.c
1.1.1.5 root 68: $(CC) -DPART_5 -c $(CPPFLAGS) $(QUIETCFLAGS) $< -o $@
1.1 root 69: cpuemu6.o: cpuemu.c
1.1.1.5 root 70: $(CC) -DPART_6 -c $(CPPFLAGS) $(QUIETCFLAGS) $< -o $@
1.1 root 71: cpuemu7.o: cpuemu.c
1.1.1.5 root 72: $(CC) -DPART_7 -c $(CPPFLAGS) $(QUIETCFLAGS) $< -o $@
1.1 root 73: cpuemu8.o: cpuemu.c
1.1.1.5 root 74: $(CC) -DPART_8 -c $(CPPFLAGS) $(QUIETCFLAGS) $< -o $@
1.1 root 75:
76:
1.1.1.5 root 77: newcpu.o: sysdeps.h hatari-glue.h maccess.h memory.h newcpu.h
1.1.1.7 ! root 78:
! 79:
! 80: clean:
! 81: $(RM) *.o gencpu build68k
! 82:
! 83: distclean: clean
! 84: $(RM) cpudefs.c cpustbl.c cputbl.h cpuemu.c
! 85: $(RM) *~ *.bak *.orig
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.