|
|
1.1 root 1: # Makefile for Hatari
2:
3: # Set the C compiler (e.g. gcc)
4: CC = gcc
5:
1.1.1.5 root 6: # Set flags passed to the compiler (e.g. optimization flags)
1.1.1.7 ! root 7: CMPLRFLAGS = -O3 -fomit-frame-pointer -Wall -Wno-unused
1.1.1.5 root 8:
1.1.1.4 root 9: # Here you can define the default data directory for Hatari where it
10: # looks for the default TOS image etc.
11: # For example you can use the local directory with . or if you want to do
12: # a system-wide installation, use something like /usr/share/hatari
13: DATADIR = .
1.1 root 14:
1.1.1.7 ! root 15: # SDL-Library configuration - you don't have to change this if you have
! 16: # correctly installed the SDL library and if you are using GNU make!
1.1.1.5 root 17: SDLLIB = $(shell sdl-config --libs)
18: SDLFLAGS = $(shell sdl-config --cflags)
19:
20: # Additional include directories:
21: INCFLAGS = -I./includes -I./uae-cpu
1.1 root 22:
1.1.1.7 ! root 23: # Additional libaries:
! 24: LIBFLAGS = -lz
1.1.1.4 root 25:
1.1.1.5 root 26: CFLAGS = $(CMPLRFLAGS) $(INCFLAGS) $(SDLFLAGS)
1.1 root 27:
28:
29: CPUOBJS = ./uae-cpu/hatari-glue.o ./uae-cpu/memory.o ./uae-cpu/newcpu.o \
30: ./uae-cpu/readcpu.o ./uae-cpu/fpp.o ./uae-cpu/cpustbl.o ./uae-cpu/cpudefs.o \
31: ./uae-cpu/cpuemu1.o ./uae-cpu/cpuemu2.o ./uae-cpu/cpuemu3.o \
32: ./uae-cpu/cpuemu4.o ./uae-cpu/cpuemu5.o ./uae-cpu/cpuemu6.o \
33: ./uae-cpu/cpuemu7.o ./uae-cpu/cpuemu8.o
34:
1.1.1.7 ! root 35: SRCS = audio.c bios.c blitter.c cart.c cfgopts.c configuration.c \
! 36: createBlankImage.c createDiscImage.c debug.c debugui.c dialog.c errlog.c \
! 37: fdc.c file.c floppy.c gemdos.c hdc.c ikbd.c int.c intercept.c joy.c keymap.c \
! 38: m68000.c main.c midi.c memAlloc.c memorySnapShot.c mfp.c misc.c msa.c psg.c \
! 39: printer.c rs232.c reset.c rtc.c st.c stMemory.c screen.c screenConvert.c \
1.1.1.5 root 40: screenSnapShot.c sdlgui.c shortcut.c sound.c spec512.c \
1.1.1.7 ! root 41: tos.c unzip.c vdi.c video.c wavFormat.c xbios.c ymFormat.c zip.c
1.1 root 42:
43: OBJS = $(SRCS:.c=.o)
44:
45:
46: hatari: $(OBJS) cpu
1.1.1.7 ! root 47: $(CC) $(OBJS) $(CPUOBJS) $(SDLLIB) $(LIBFLAGS) -o hatari
1.1.1.4 root 48: strip hatari
1.1 root 49:
50: cpu:
1.1.1.5 root 51: $(MAKE) -C uae-cpu/ CC="$(CC)" CMPLRFLAGS="$(CMPLRFLAGS)" SDLFLAGS="$(SDLFLAGS)" all
1.1 root 52:
53: clean:
54: rm -f *.o hatari
55: $(MAKE) -C uae-cpu/ clean
56:
57:
1.1.1.4 root 58: configuration.o: configuration.c
59: $(CC) $(CFLAGS) -c -DDATADIR=\"$(DATADIR)\" configuration.c -o configuration.o
60:
61: sdlgui.o: sdlgui.c
62: $(CC) $(CFLAGS) -c -DDATADIR=\"$(DATADIR)\" sdlgui.c -o sdlgui.o
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
! 68:
! 69: ifneq (,$(wildcard Makefile.dep))
! 70: include Makefile.dep
! 71: endif
! 72:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.