--- hatari/src/uae-cpu/Makefile 2019/04/01 07:13:47 1.1.1.8 +++ hatari/src/uae-cpu/Makefile 2019/04/09 08:48:49 1.1.1.10 @@ -4,17 +4,18 @@ include ../../Makefile.cnf -CFLAGS += -I. -I../.. $(CPPFLAGS) $(SDL_CFLAGS) +CFLAGS += -I. -I../.. -I../includes -I../debug -I../falcon $(CPPFLAGS) $(SDL_CFLAGS) # disable several warnings for the CPU emu code as it comes from elsewhere QUIETCFLAGS = $(CFLAGS) -Wno-unused -Wno-sign-compare -Wno-shadow -CPUCSRCS = hatari-glue.c memory.c newcpu.c readcpu.c fpp.c cpustbl.c cpudefs.c +CPUCSRCS = hatari-glue.c memory.c newcpu.c readcpu.c fpp.c -CPUEMUSRCS = cpuemu1.c cpuemu2.c cpuemu3.c cpuemu4.c \ - cpuemu5.c cpuemu6.c cpuemu7.c cpuemu8.c +CPUGENOBS = cpuemu1.o cpuemu2.o cpuemu3.o cpuemu4.o \ + cpuemu5.o cpuemu6.o cpuemu7.o cpuemu8.o \ + cpudefs.o cpustbl.o -CPU_OBS = $(CPUCSRCS:.c=.o) $(CPUEMUSRCS:.c=.o) +CPU_OBS = $(CPUCSRCS:.c=.o) $(CPUGENOBS) all: cpu68k.a @@ -68,12 +69,18 @@ cpuemu8.o: cpuemu.c $(CC) -DPART_8 -c $(QUIETCFLAGS) $< -o $@ -newcpu.o: sysdeps.h hatari-glue.h maccess.h memory.h newcpu.h - - clean: $(RM) *.o gencpu build68k cpu68k.a distclean: clean $(RM) cpudefs.c cpustbl.c cputbl.h cpuemu.c - $(RM) *~ *.bak *.orig + $(RM) *~ *.bak *.orig Makefile.dep + + +# Use "make depend" to generate file dependencies: +Makefile.dep: Makefile ../Makefile + $(CC) -M $(CFLAGS) $(CPUCSRCS) > Makefile.dep + +depend: Makefile.dep + +-include Makefile.dep