--- hatari/src/Makefile 2019/04/01 07:09:53 1.1.1.4 +++ hatari/src/Makefile 2019/04/01 07:10:11 1.1.1.5 @@ -1,11 +1,11 @@ # Makefile for Hatari -# Set flags passed to the compiler (e.g. optimization flags) -CMPLRFLAGS = -O3 -fomit-frame-pointer - # Set the C compiler (e.g. gcc) CC = gcc +# Set flags passed to the compiler (e.g. optimization flags) +CMPLRFLAGS = -O3 -fomit-frame-pointer -Wall -Wno-unused + # Here you can define the default data directory for Hatari where it # looks for the default TOS image etc. # For example you can use the local directory with . or if you want to do @@ -13,11 +13,14 @@ CC = gcc DATADIR = . # SDL-Library configuration: -SDLLIB=$(shell sdl-config --libs) -SDLFLAGS=$(shell sdl-config --cflags) +SDLLIB = $(shell sdl-config --libs) +SDLFLAGS = $(shell sdl-config --cflags) + +# Additional include directories: +INCFLAGS = -I./includes -I./uae-cpu -CFLAGS = -I./includes -I./uae-cpu $(CMPLRFLAGS) $(SDLFLAGS) +CFLAGS = $(CMPLRFLAGS) $(INCFLAGS) $(SDLFLAGS) CPUOBJS = ./uae-cpu/hatari-glue.o ./uae-cpu/memory.o ./uae-cpu/newcpu.o \ @@ -26,12 +29,12 @@ CPUOBJS = ./uae-cpu/hatari-glue.o ./uae- ./uae-cpu/cpuemu4.o ./uae-cpu/cpuemu5.o ./uae-cpu/cpuemu6.o \ ./uae-cpu/cpuemu7.o ./uae-cpu/cpuemu8.o -SRCS = audio.c bios.c cart.c configuration.c createBlankImage.c \ +SRCS = audio.c bios.c blitter.c cart.c configuration.c createBlankImage.c \ createDiscImage.c debug.c debugui.c dialog.c errlog.c fdc.c file.c \ floppy.c gemdos.c hdc.c ikbd.c int.c intercept.c joy.c keymap.c m68000.c \ main.c midi.c memAlloc.c memorySnapShot.c mfp.c misc.c msa.c psg.c \ printer.c rs232.c reset.c st.c stMemory.c screen.c screenConvert.c \ - screenSnapShot.c sdlgui.c shortcut.c sound.c spec512.c timer.c \ + screenSnapShot.c sdlgui.c shortcut.c sound.c spec512.c \ tos.c vdi.c video.c wavFormat.c xbios.c ymFormat.c OBJS = $(SRCS:.c=.o) @@ -42,7 +45,7 @@ hatari: $(OBJS) cpu strip hatari cpu: - $(MAKE) -C uae-cpu/ CFLAGS="$(CMPLRFLAGS) $(SDLFLAGS)" CC="$(CC)" all + $(MAKE) -C uae-cpu/ CC="$(CC)" CMPLRFLAGS="$(CMPLRFLAGS)" SDLFLAGS="$(SDLFLAGS)" all clean: rm -f *.o hatari