X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2FMakefile;h=511fb3159bab19e2600282a5320bebfc42c0cce5;hp=18efb9d99ddb5aca2cc28450dfceba27afba9d21;hb=72d9100181f212718c4cd0a6863ef3adaa8e1950;hpb=a3cfdc216e5de47afb89f30d3c874e6489364076 diff --git a/src/Makefile b/src/Makefile index 18efb9d9..511fb315 100644 --- a/src/Makefile +++ b/src/Makefile @@ -42,7 +42,7 @@ PLATFORM = unix endif ifeq ($(PLATFORM),unix) -PROFILING = -pg +PROFILING_FLAGS = -pg endif ifeq ($(PLATFORM),cross-msdos) @@ -90,12 +90,13 @@ CONFIG_GAME_DIR = $(CONFIG_RO_GAME_DIR) $(CONFIG_RW_GAME_DIR) CONFIG = $(CONFIG_GAME_DIR) $(CONFIG_SCORE_ENTRIES) $(JOYSTICK) DEBUG = -DDEBUG -g +# PROFILING = $(PROFILING_FLAGS) -OPTIONS = $(DEBUG) -Wall # only for debugging purposes +# OPTIONS = $(DEBUG) -Wall # only for debugging purposes # OPTIONS = $(DEBUG) -O3 -Wall # only for debugging purposes # OPTIONS = $(DEBUG) -Wall -ansi -pedantic # only for debugging purposes # OPTIONS = -O3 -Wall -ansi -pedantic -# OPTIONS = -O3 -Wall +OPTIONS = -O3 -Wall # OPTIONS = -O3 # OPTIONS = -DSYSV -Ae # may be needed for HP-UX @@ -146,18 +147,24 @@ $(LIBGAME): .c.o: $(CC) $(PROFILING) $(CFLAGS) -c $*.c -clean: +clean-obj: $(MAKE) -C $(LIBDIR) clean $(RM) $(OBJS) $(RM) $(LIBGAME) + +clean-bin: $(RM) $(PROGNAME) $(RM) ../*.exe +clean: clean-obj clean-bin + #-----------------------------------------------------------------------------# # development only stuff # #-----------------------------------------------------------------------------# +dist-clean: clean-obj + depend: $(MAKE) -C $(LIBDIR) depend for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend