X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2FMakefile;h=d034771b175b750a31b4dacd6144d3bbaf49e531;hp=cdef423e8d1b11c4d50bd8f42f4596dccd29197e;hb=8be31c2781126204470171aff7af45713ec42e9e;hpb=adebc3d223c1611d7c947adba6a8b34885033aec diff --git a/src/Makefile b/src/Makefile index cdef423e..d034771b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -41,13 +41,6 @@ else PROFILING = -pg endif -ifeq ($(TARGET),sdl_old_10) -TARGET = sdl -USE_SDL_OLD_LIBS = true -else -USE_SDL_OLD_LIBS = false -endif - ifeq ($(TARGET),sdl) USE_SDL = true else @@ -169,3 +162,15 @@ clean: $(RM) *.o $(RM) ../*.exe $(RM) $(PROGNAME) + + +#-----------------------------------------------------------------------------# +# development only stuff # +#-----------------------------------------------------------------------------# + +depend: + for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend + +ifeq (.depend,$(wildcard .depend)) +include .depend +endif