|
|
1.1.1.8 root 1: # Main Makefile for Hatari.
1.1 root 2:
1.1.1.8 root 3: # Include settings
4: include ../Makefile.cnf
1.1.1.5 root 5:
6: # Additional include directories:
7: INCFLAGS = -I./includes -I./uae-cpu
1.1 root 8:
1.1.1.4 root 9:
1.1.1.10 root 10: CFLAGS += -DDATADIR=\"$(DATADIR)\" -DCONFDIR=\"$(CONFDIR)\" $(INCFLAGS) $(SDL_CFLAGS)
1.1 root 11:
12:
13: CPUOBJS = ./uae-cpu/hatari-glue.o ./uae-cpu/memory.o ./uae-cpu/newcpu.o \
14: ./uae-cpu/readcpu.o ./uae-cpu/fpp.o ./uae-cpu/cpustbl.o ./uae-cpu/cpudefs.o \
15: ./uae-cpu/cpuemu1.o ./uae-cpu/cpuemu2.o ./uae-cpu/cpuemu3.o \
16: ./uae-cpu/cpuemu4.o ./uae-cpu/cpuemu5.o ./uae-cpu/cpuemu6.o \
17: ./uae-cpu/cpuemu7.o ./uae-cpu/cpuemu8.o
18:
1.1.1.9 root 19: GUIOBJS = ./gui-sdl/dlgAbout.o ./gui-sdl/dlgAlert.o ./gui-sdl/dlgDevice.o \
20: ./gui-sdl/dlgDisc.o ./gui-sdl/dlgJoystick.o ./gui-sdl/dlgKeyboard.o \
21: ./gui-sdl/dlgMain.o ./gui-sdl/dlgMemory.o ./gui-sdl/dlgNewDisc.o \
22: ./gui-sdl/dlgRom.o ./gui-sdl/dlgScreen.o ./gui-sdl/dlgSound.o \
23: ./gui-sdl/dlgSystem.o ./gui-sdl/dlgFileSelect.o ./gui-sdl/sdlgui.o
1.1.1.8 root 24:
25:
1.1.1.12! root 26: SRCS = audio.c bios.c blitter.c cart.c cfgopts.c configuration.c options.c \
! 27: createBlankImage.c cycles.c debugui.c dialog.c dim.c dmaSnd.c fdc.c file.c \
! 28: floppy.c gemdos.c hdc.c ikbd.c int.c ioMem.c ioMemTables.c joy.c keymap.c \
! 29: log.c m68000.c main.c midi.c memorySnapShot.c mfp.c misc.c msa.c psg.c \
! 30: printer.c rs232.c reset.c rtc.c scandir.c st.c stMemory.c screen.c \
! 31: screenSnapShot.c shortcut.c sound.c spec512.c tos.c unzip.c vdi.c video.c \
1.1.1.8 root 32: wavFormat.c xbios.c ymFormat.c zip.c
1.1 root 33:
34: OBJS = $(SRCS:.c=.o)
35:
36:
1.1.1.8 root 37: ALLOBJS = $(OBJS) $(GUIOBJS) $(CPUOBJS)
38:
39:
40: all: hatari
1.1 root 41:
1.1.1.8 root 42: hatari: $(ALLOBJS)
43: $(CC) $(LDFLAGS) $(ALLOBJS) $(SDL_LIBS) $(LIBS) -o hatari
1.1 root 44:
1.1.1.8 root 45: # Sub-folder dependencies:
46: uae-cpu/%.o: uae-cpu/%.c
47: $(MAKE) -C uae-cpu/ all
48: uae-cpu/cpuemu%.o: uae-cpu/cpuemu.c
49: $(MAKE) -C uae-cpu/ all
50: uae-cpu/cpuemu.c: uae-cpu/gencpu.o uae-cpu/readcpu.c uae-cpu/cpudefs.c
51: $(MAKE) -C uae-cpu/ cpuemu.c
52: uae-cpu/cpudefs.c: uae-cpu/build68k.c uae-cpu/table68k
53: $(MAKE) -C uae-cpu/ cpudefs.c
1.1.1.4 root 54:
1.1.1.8 root 55: gui-sdl/%.o: gui-sdl/%.c
56: $(MAKE) -C gui-sdl/ all
1.1.1.4 root 57:
1.1.1.7 root 58:
1.1.1.12! root 59: clean:
! 60: $(RM) *.o hatari
! 61: $(MAKE) -C gui-sdl/ clean
! 62: $(MAKE) -C uae-cpu/ clean
! 63:
! 64: distclean:
! 65: $(RM) *.o hatari
! 66: $(RM) Makefile.dep *~ *.bak *.orig
! 67: $(MAKE) -C gui-sdl/ distclean
! 68: $(MAKE) -C uae-cpu/ distclean
! 69:
! 70:
1.1.1.7 root 71: # Use "make depend" to generate file dependencies:
1.1.1.12! root 72: Makefile.dep: Makefile
1.1.1.7 root 73: $(CC) -MM $(CFLAGS) $(SRCS) > Makefile.dep
74:
1.1.1.12! root 75: depend: Makefile.dep
! 76: $(MAKE) -C gui-sdl/ depend
1.1.1.7 root 77:
1.1.1.12! root 78: -include Makefile.dep
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.