|
|
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.7 root 26: SRCS = audio.c bios.c blitter.c cart.c cfgopts.c configuration.c \
1.1.1.10! root 27: createBlankImage.c debugui.c dialog.c dim.c fdc.c file.c floppy.c gemdos.c \
! 28: hdc.c ikbd.c int.c ioMem.c ioMemTables.c joy.c keymap.c log.c \
! 29: m68000.c main.c midi.c memorySnapShot.c mfp.c misc.c msa.c psg.c \
1.1.1.7 root 30: printer.c rs232.c reset.c rtc.c st.c stMemory.c screen.c screenConvert.c \
1.1.1.8 root 31: screenSnapShot.c shortcut.c sound.c spec512.c tos.c unzip.c vdi.c video.c \
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:
45: clean:
46: rm -f *.o hatari
1.1.1.8 root 47: $(MAKE) -C gui-sdl/ clean
1.1 root 48: $(MAKE) -C uae-cpu/ clean
49:
50:
1.1.1.8 root 51: # Sub-folder dependencies:
52: uae-cpu/%.o: uae-cpu/%.c
53: $(MAKE) -C uae-cpu/ all
54: uae-cpu/cpuemu%.o: uae-cpu/cpuemu.c
55: $(MAKE) -C uae-cpu/ all
56: uae-cpu/cpuemu.c: uae-cpu/gencpu.o uae-cpu/readcpu.c uae-cpu/cpudefs.c
57: $(MAKE) -C uae-cpu/ cpuemu.c
58: uae-cpu/cpudefs.c: uae-cpu/build68k.c uae-cpu/table68k
59: $(MAKE) -C uae-cpu/ cpudefs.c
1.1.1.4 root 60:
1.1.1.8 root 61: gui-sdl/%.o: gui-sdl/%.c
62: $(MAKE) -C gui-sdl/ all
1.1.1.4 root 63:
1.1.1.7 root 64:
65: # Use "make depend" to generate file dependencies:
66: depend: $(SRCS)
67: $(CC) -MM $(CFLAGS) $(SRCS) > Makefile.dep
1.1.1.8 root 68: $(MAKE) -C gui-sdl/ depend
1.1.1.7 root 69:
70: ifneq (,$(wildcard Makefile.dep))
71: include Makefile.dep
72: endif
73:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.