Annotation of hatari/src/Makefile, revision 1.1.1.15

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.14  root       37: else
1.1.1.13  root       38: ifneq ($(strip $(shell gcc -v 2>&1 |grep "cygwin")),)
1.1.1.15! root       39:   SUBDIRLIBS += gui-win/gui-win.a
1.1.1.13  root       40: endif 
1.1.1.14  root       41: endif
1.1.1.8   root       42: 
1.1.1.15! root       43: SUBDIRS = $(dir $(SUBDIRLIBS))
        !            44: ALLOBJS = $(OBJS) $(SUBDIRLIBS)
        !            45: 
1.1.1.8   root       46: 
1.1.1.15! root       47: .PHONY : all
        !            48: all: ../Makefile.cnf
        !            49:        $(MAKE) $(SUBDIRS)
        !            50:        $(MAKE) hatari
1.1       root       51: 
1.1.1.8   root       52: hatari: $(ALLOBJS)
                     53:        $(CC) $(LDFLAGS) $(ALLOBJS) $(SDL_LIBS) $(LIBS) -o hatari
1.1       root       54: 
1.1.1.8   root       55: # Sub-folder dependencies:
1.1.1.15! root       56: .PHONY : $(SUBDIRS)
        !            57: $(SUBDIRS):
        !            58:        $(MAKE) ENABLE_DSP_EMU=$(ENABLE_DSP_EMU) CPUDIR=$(CPUDIR) -C $@
1.1.1.4   root       59: 
1.1.1.7   root       60: 
1.1.1.12  root       61: clean:
                     62:        $(RM) *.o hatari
                     63:        $(MAKE) -C gui-sdl/ clean
1.1.1.13  root       64:        $(MAKE) -C gui-win/ clean
                     65:        $(MAKE) -C $(CPUDIR) clean
                     66:        $(MAKE) -C falcon/ clean
1.1.1.12  root       67: 
                     68: distclean:
                     69:        $(RM) *.o hatari
                     70:        $(RM) Makefile.dep *~ *.bak *.orig
1.1.1.13  root       71:        $(RM) convert/*~ convert/*.bak
1.1.1.12  root       72:        $(MAKE) -C gui-sdl/ distclean
1.1.1.13  root       73:        $(MAKE) -C gui-win/ distclean
                     74:        $(MAKE) -C $(CPUDIR) distclean
                     75:        $(MAKE) -C falcon/ distclean
1.1.1.12  root       76: 
                     77: 
1.1.1.7   root       78: # Use "make depend" to generate file dependencies:
1.1.1.15! root       79: Makefile.dep: Makefile ../Makefile.cnf
1.1.1.13  root       80:        $(CC) -M $(CPPFLAGS) $(SRCS) > Makefile.dep
1.1.1.7   root       81: 
1.1.1.15! root       82: .PHONY : depend
        !            83: depend:
        !            84:        $(MAKE) cleandeps
        !            85:        $(MAKE) Makefile.dep
1.1.1.12  root       86:        $(MAKE) -C gui-sdl/ depend
1.1.1.14  root       87:        $(MAKE) -C $(CPUDIR) depend
                     88:        $(MAKE) -C falcon/ depend
                     89: 
1.1.1.15! root       90: .PHONY : cleandeps
1.1.1.14  root       91: cleandeps:
                     92:        $(RM) Makefile.dep */Makefile.dep
1.1.1.7   root       93: 
1.1.1.12  root       94: -include Makefile.dep

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.