|
|
1.1.1.8 root 1: # Main Makefile for Hatari.
1.1 root 2:
1.1.1.14 root 3: # Use "export ENABLE_DSP_EMU=0" & "make clean"
4: # to disable experimental DSP emulation code.
5: ENABLE_DSP_EMU ?= 1
1.1.1.13 root 6:
7: # Select CPU directory:
8: CPUDIR = uae-cpu
9:
1.1.1.8 root 10: # Include settings
11: include ../Makefile.cnf
1.1.1.5 root 12:
13: # Additional include directories:
1.1.1.13 root 14: CPPFLAGS += -I.. -I./includes -I$(CPUDIR) -I./falcon
15: CPPFLAGS += -DCONFDIR=\"$(CONFDIR)\" $(SDL_CFLAGS)
1.1 root 16:
1.1.1.13 root 17: ifeq ($(ENABLE_DSP_EMU),1)
18: CPPFLAGS += -DENABLE_DSP_EMU=1
19: endif
1.1 root 20:
1.1.1.15 root 21: SRCS = audio.c bios.c blitter.c breakcond.c cart.c cfgopts.c \
22: configuration.c options.c createBlankImage.c change.c control.c \
23: cycles.c debugui.c dialog.c dim.c dmaSnd.c fdc.c file.c floppy.c \
24: gemdos.c hdc.c ide.c ikbd.c int.c ioMem.c ioMemTabST.c ioMemTabSTE.c \
25: ioMemTabTT.c ioMemTabFalcon.c joy.c keymap.c log.c m68000.c main.c \
26: midi.c memorySnapShot.c mfp.c msa.c paths.c psg.c printer.c rs232.c \
27: reset.c rtc.c scandir.c st.c stMemory.c screen.c screenSnapShot.c \
28: shortcut.c sound.c spec512.c statusbar.c str.c tos.c unzip.c utils.c \
29: vdi.c video.c wavFormat.c xbios.c ymFormat.c zip.c
1.1 root 30:
31: OBJS = $(SRCS:.c=.o)
32:
1.1.1.15 root 33: SUBDIRLIBS = $(CPUDIR)/cpu68k.a falcon/falcon.a gui-sdl/gui-sdl.a
1.1.1.13 root 34:
35: ifeq ($(SYS_WINDOWS),1)
1.1.1.15 root 36: SUBDIRLIBS += gui-win/gui-win.a
1.1.1.16! root 37: OBJS += gui-win/hatari-winicon.o
1.1.1.14 root 38: else
1.1.1.13 root 39: ifneq ($(strip $(shell gcc -v 2>&1 |grep "cygwin")),)
1.1.1.15 root 40: SUBDIRLIBS += gui-win/gui-win.a
1.1.1.13 root 41: endif
1.1.1.14 root 42: endif
1.1.1.8 root 43:
1.1.1.15 root 44: SUBDIRS = $(dir $(SUBDIRLIBS))
45: ALLOBJS = $(OBJS) $(SUBDIRLIBS)
46:
1.1.1.8 root 47:
1.1.1.15 root 48: .PHONY : all
49: all: ../Makefile.cnf
50: $(MAKE) $(SUBDIRS)
51: $(MAKE) hatari
1.1 root 52:
1.1.1.8 root 53: hatari: $(ALLOBJS)
54: $(CC) $(LDFLAGS) $(ALLOBJS) $(SDL_LIBS) $(LIBS) -o hatari
1.1 root 55:
1.1.1.8 root 56: # Sub-folder dependencies:
1.1.1.15 root 57: .PHONY : $(SUBDIRS)
58: $(SUBDIRS):
59: $(MAKE) ENABLE_DSP_EMU=$(ENABLE_DSP_EMU) CPUDIR=$(CPUDIR) -C $@
1.1.1.4 root 60:
1.1.1.7 root 61:
1.1.1.12 root 62: clean:
63: $(RM) *.o hatari
64: $(MAKE) -C gui-sdl/ clean
1.1.1.13 root 65: $(MAKE) -C gui-win/ clean
66: $(MAKE) -C $(CPUDIR) clean
67: $(MAKE) -C falcon/ clean
1.1.1.12 root 68:
69: distclean:
70: $(RM) *.o hatari
71: $(RM) Makefile.dep *~ *.bak *.orig
1.1.1.13 root 72: $(RM) convert/*~ convert/*.bak
1.1.1.12 root 73: $(MAKE) -C gui-sdl/ distclean
1.1.1.13 root 74: $(MAKE) -C gui-win/ distclean
75: $(MAKE) -C $(CPUDIR) distclean
76: $(MAKE) -C falcon/ distclean
1.1.1.12 root 77:
78:
1.1.1.7 root 79: # Use "make depend" to generate file dependencies:
1.1.1.15 root 80: Makefile.dep: Makefile ../Makefile.cnf
1.1.1.13 root 81: $(CC) -M $(CPPFLAGS) $(SRCS) > Makefile.dep
1.1.1.7 root 82:
1.1.1.15 root 83: .PHONY : depend
84: depend:
85: $(MAKE) cleandeps
86: $(MAKE) Makefile.dep
1.1.1.12 root 87: $(MAKE) -C gui-sdl/ depend
1.1.1.14 root 88: $(MAKE) -C $(CPUDIR) depend
89: $(MAKE) -C falcon/ depend
90:
1.1.1.15 root 91: .PHONY : cleandeps
1.1.1.14 root 92: cleandeps:
93: $(RM) Makefile.dep */Makefile.dep
1.1.1.7 root 94:
1.1.1.12 root 95: -include Makefile.dep
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.