|
|
1.1.1.8 root 1: # Main Makefile for Hatari. 1.1 root 2: 1.1.1.13! root 3: # Set ENABLE_DSP_EMU to 1 to enable experimental DSP emulation code ! 4: # (there are currently no known programs which this would help, ! 5: # but it will make many of the Falcon programs not to work). ! 6: # If you change this, do "make clean" ! 7: ENABLE_DSP_EMU = 0 ! 8: ! 9: # Select CPU directory: ! 10: CPUDIR = uae-cpu ! 11: 1.1.1.8 root 12: # Include settings 13: include ../Makefile.cnf 1.1.1.5 root 14: 15: # Additional include directories: 1.1.1.13! root 16: CPPFLAGS += -I.. -I./includes -I$(CPUDIR) -I./falcon ! 17: CPPFLAGS += -DCONFDIR=\"$(CONFDIR)\" $(SDL_CFLAGS) 1.1 root 18: 1.1.1.13! root 19: ifeq ($(ENABLE_DSP_EMU),1) ! 20: CPPFLAGS += -DENABLE_DSP_EMU=1 ! 21: endif 1.1 root 22: 1.1.1.9 root 23: GUIOBJS = ./gui-sdl/dlgAbout.o ./gui-sdl/dlgAlert.o ./gui-sdl/dlgDevice.o \ 1.1.1.13! root 24: ./gui-sdl/dlgDisk.o ./gui-sdl/dlgJoystick.o ./gui-sdl/dlgKeyboard.o \ ! 25: ./gui-sdl/dlgMain.o ./gui-sdl/dlgMemory.o ./gui-sdl/dlgNewDisk.o \ 1.1.1.9 root 26: ./gui-sdl/dlgRom.o ./gui-sdl/dlgScreen.o ./gui-sdl/dlgSound.o \ 27: ./gui-sdl/dlgSystem.o ./gui-sdl/dlgFileSelect.o ./gui-sdl/sdlgui.o 1.1.1.8 root 28: 1.1.1.13! root 29: GUIWINOBJS = ./gui-win/hatari-winicon.o ./gui-win/opencon.o ! 30: ! 31: FALCOBJS = ./falcon/videl.o ./falcon/hostscreen.o ./falcon/nvram.o ! 32: ifeq ($(ENABLE_DSP_EMU),1) ! 33: FALCOBJS += ./falcon/dsp.o ./falcon/dsp_cpu.o ./falcon/dsp_disasm.o ! 34: endif 1.1.1.8 root 35: 1.1.1.12 root 36: SRCS = audio.c bios.c blitter.c cart.c cfgopts.c configuration.c options.c \ 37: createBlankImage.c cycles.c debugui.c dialog.c dim.c dmaSnd.c fdc.c file.c \ 1.1.1.13! root 38: floppy.c gemdos.c hdc.c ide.c ikbd.c int.c ioMem.c ioMemTabST.c \ ! 39: ioMemTabSTE.c ioMemTabTT.c ioMemTabFalcon.c joy.c keymap.c paths.c \ 1.1.1.12 root 40: log.c m68000.c main.c midi.c memorySnapShot.c mfp.c misc.c msa.c psg.c \ 41: printer.c rs232.c reset.c rtc.c scandir.c st.c stMemory.c screen.c \ 1.1.1.13! root 42: screenSnapShot.c shortcut.c sound.c spec512.c trace.c tos.c unzip.c \ ! 43: vdi.c video.c wavFormat.c xbios.c ymFormat.c zip.c 1.1 root 44: 45: OBJS = $(SRCS:.c=.o) 46: 47: 1.1.1.13! root 48: ALLOBJS = $(OBJS) $(GUIOBJS) $(CPUDIR)/cpu68k.a $(FALCOBJS) ! 49: ! 50: ifeq ($(SYS_WINDOWS),1) ! 51: ALLOBJS += $(GUIWINOBJS) ! 52: endif ! 53: ifneq ($(strip $(shell gcc -v 2>&1 |grep "cygwin")),) ! 54: ALLOBJS += $(GUIWINOBJS) ! 55: endif 1.1.1.8 root 56: 57: 58: all: hatari 1.1 root 59: 1.1.1.8 root 60: hatari: $(ALLOBJS) 61: $(CC) $(LDFLAGS) $(ALLOBJS) $(SDL_LIBS) $(LIBS) -o hatari 1.1 root 62: 1.1.1.8 root 63: # Sub-folder dependencies: 1.1.1.13! root 64: .PHONY : $(CPUDIR)/cpu68k.a ! 65: $(CPUDIR)/cpu68k.a: ! 66: $(MAKE) -C $(CPUDIR) 1.1.1.4 root 67: 1.1.1.8 root 68: gui-sdl/%.o: gui-sdl/%.c 1.1.1.13! root 69: $(MAKE) ENABLE_DSP_EMU=$(ENABLE_DSP_EMU) -C gui-sdl/ all ! 70: ! 71: gui-win/%.o: ! 72: $(MAKE) ENABLE_DSP_EMU=$(ENABLE_DSP_EMU) -C gui-win/ all ! 73: ! 74: falcon/%.o: falcon/%.c ! 75: $(MAKE) ENABLE_DSP_EMU=$(ENABLE_DSP_EMU) CPUDIR=$(CPUDIR) -C falcon/ 1.1.1.4 root 76: 1.1.1.7 root 77: 1.1.1.12 root 78: clean: 79: $(RM) *.o hatari 80: $(MAKE) -C gui-sdl/ clean 1.1.1.13! root 81: $(MAKE) -C gui-win/ clean ! 82: $(MAKE) -C $(CPUDIR) clean ! 83: $(MAKE) -C falcon/ clean 1.1.1.12 root 84: 85: distclean: 86: $(RM) *.o hatari 87: $(RM) Makefile.dep *~ *.bak *.orig 1.1.1.13! root 88: $(RM) convert/*~ convert/*.bak 1.1.1.12 root 89: $(MAKE) -C gui-sdl/ distclean 1.1.1.13! root 90: $(MAKE) -C gui-win/ distclean ! 91: $(MAKE) -C $(CPUDIR) distclean ! 92: $(MAKE) -C falcon/ distclean 1.1.1.12 root 93: 94: 1.1.1.7 root 95: # Use "make depend" to generate file dependencies: 1.1.1.12 root 96: Makefile.dep: Makefile 1.1.1.13! root 97: $(CC) -M $(CPPFLAGS) $(SRCS) > Makefile.dep 1.1.1.7 root 98: 1.1.1.12 root 99: depend: Makefile.dep 100: $(MAKE) -C gui-sdl/ depend 1.1.1.7 root 101: 1.1.1.12 root 102: -include Makefile.dep
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.