# Makefile for Hatari's SDL GUI.

# Include settings
include ../../Makefile-wii.cnf

# Additional include directories:
INCFLAGS = -I../.. -I../debug -I../includes $(CPPFLAGS)


CFLAGS += $(INCFLAGS) $(SDL_CFLAGS) -Wno-write-strings



DLGSRCS = dlgAbout.c  dlgHalt.c dlgAlert.c dlgDevice.c dlgFloppy.c dlgHardDisk.c \
  dlgJoystick.c dlgKeyboard.c dlgWiiMapper.c dlgMain.c dlgMemory.c dlgNewDisk.c dlgRom.c \
  dlgScreen.c dlgSound.c dlgSystem.c dlgFileSelect.c sdlgui.c


DLGOBJS = $(DLGSRCS:.c=.o)


all: gui-sdl.a

gui-sdl.a: $(DLGOBJS)
	$(AR) cru $@ $^
	$(RANLIB) $@


font5x8.h: font5x8.bmp
	convert font5x8.bmp xbm:font5x8.h

font10x16.h: font10x16.bmp
	convert font10x16.bmp xbm:font10x16.h


clean:
	$(RM) *.o

distclean: clean
	$(RM) Makefile.dep *~ *.bak *.orig


# Use "make depend" to generate file dependencies:
Makefile.dep: Makefile
	$(CC) -MM $(CFLAGS) $(DLGSRCS) > Makefile.dep

depend: Makefile.dep

-include Makefile.dep
