Annotation of hatari/src/Makefile, revision 1.1.1.17

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.17! root       14: CPPFLAGS += -I.. -I./includes -I$(CPUDIR) -I./debug -I./falcon \
        !            15:  -DCONFDIR=\"$(CONFDIR)\" $(SDL_CFLAGS) $(PNG_CFLAGS) $(X11_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.17! root       21: SRCS = audio.c avi_record.c bios.c blitter.c cart.c cfgopts.c \
1.1.1.15  root       22:   configuration.c options.c  createBlankImage.c change.c control.c \
1.1.1.17! root       23:   cycInt.c cycles.c dialog.c dim.c dmaSnd.c fdc.c file.c floppy.c \
        !            24:   gemdos.c hd6301_cpu.c hdc.c ide.c ikbd.c ioMem.c ioMemTabST.c \
        !            25:   ioMemTabSTE.c ioMemTabTT.c ioMemTabFalcon.c joy.c keymap.c m68000.c \
        !            26:   main.c midi.c memorySnapShot.c mfp.c msa.c paths.c  psg.c printer.c \
        !            27:   resolution.c rs232.c reset.c rtc.c scandir.c st.c stMemory.c screen.c \
        !            28:   screenSnapShot.c shortcut.c sound.c spec512.c statusbar.c str.c tos.c \
        !            29:   unzip.c utils.c 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.17! root       33: SUBDIRLIBS = $(CPUDIR)/cpu68k.a debug/debug.a falcon/falcon.a gui-sdl/gui-sdl.a
1.1.1.13  root       34: 
                     35: ifeq ($(SYS_WINDOWS),1)
1.1.1.17! 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.17! 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.17! root       53: LIBS := $(PORTAUDIO_LIBS) $(PNG_LIBS) $(SDL_LIBS) $(X11_LIBS) $(LIBS)
        !            54: 
1.1.1.8   root       55: hatari: $(ALLOBJS)
1.1.1.17! root       56:        $(CC) $(LDFLAGS) $(ALLOBJS) $(LIBS) -o hatari
1.1       root       57: 
1.1.1.8   root       58: # Sub-folder dependencies:
1.1.1.15  root       59: .PHONY : $(SUBDIRS)
                     60: $(SUBDIRS):
                     61:        $(MAKE) ENABLE_DSP_EMU=$(ENABLE_DSP_EMU) CPUDIR=$(CPUDIR) -C $@
1.1.1.4   root       62: 
1.1.1.7   root       63: 
1.1.1.12  root       64: clean:
                     65:        $(RM) *.o hatari
                     66:        $(MAKE) -C gui-sdl/ clean
1.1.1.13  root       67:        $(MAKE) -C gui-win/ clean
                     68:        $(MAKE) -C $(CPUDIR) clean
                     69:        $(MAKE) -C falcon/ clean
1.1.1.17! root       70:        $(MAKE) -C debug/ clean
1.1.1.12  root       71: 
                     72: distclean:
                     73:        $(RM) *.o hatari
                     74:        $(RM) Makefile.dep *~ *.bak *.orig
1.1.1.13  root       75:        $(RM) convert/*~ convert/*.bak
1.1.1.12  root       76:        $(MAKE) -C gui-sdl/ distclean
1.1.1.13  root       77:        $(MAKE) -C gui-win/ distclean
                     78:        $(MAKE) -C $(CPUDIR) distclean
                     79:        $(MAKE) -C falcon/ distclean
1.1.1.17! root       80:        $(MAKE) -C debug/ distclean
1.1.1.12  root       81: 
                     82: 
1.1.1.7   root       83: # Use "make depend" to generate file dependencies:
1.1.1.15  root       84: Makefile.dep: Makefile ../Makefile.cnf
1.1.1.13  root       85:        $(CC) -M $(CPPFLAGS) $(SRCS) > Makefile.dep
1.1.1.7   root       86: 
1.1.1.15  root       87: .PHONY : depend
                     88: depend:
                     89:        $(MAKE) cleandeps
                     90:        $(MAKE) Makefile.dep
1.1.1.12  root       91:        $(MAKE) -C gui-sdl/ depend
1.1.1.14  root       92:        $(MAKE) -C $(CPUDIR) depend
                     93:        $(MAKE) -C falcon/ depend
1.1.1.17! root       94:        $(MAKE) -C debug/ depend
1.1.1.14  root       95: 
1.1.1.15  root       96: .PHONY : cleandeps
1.1.1.14  root       97: cleandeps:
                     98:        $(RM) Makefile.dep */Makefile.dep
1.1.1.7   root       99: 
1.1.1.12  root      100: -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.