--- hatari/src/gui-sdl/Makefile 2019/04/01 07:11:56 1.1.1.2 +++ hatari/src/gui-sdl/Makefile 2019/04/01 07:13:14 1.1.1.4 @@ -7,7 +7,7 @@ include ../../Makefile.cnf INCFLAGS = -I../includes -CFLAGS += -DDATADIR=\"$(DATADIR)\" $(INCFLAGS) $(SDL_CFLAGS) +CFLAGS += -DDATADIR=\"$(DATADIR)\" $(INCFLAGS) $(SDL_CFLAGS) -Wno-write-strings @@ -21,19 +21,24 @@ DLGOBJS = $(DLGSRCS:.c=.o) all: $(DLGOBJS) -clean: - rm -f *.o - 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: -depend: $(DLGSRCS) +Makefile.dep: Makefile $(CC) -MM $(CFLAGS) $(DLGSRCS) > Makefile.dep -ifneq (,$(wildcard Makefile.dep)) -include Makefile.dep -endif +depend: Makefile.dep + +-include Makefile.dep