rnd-20010101-1-src
[rocksndiamonds.git] / src / Makefile
index 18efb9d99ddb5aca2cc28450dfceba27afba9d21..511fb3159bab19e2600282a5320bebfc42c0cce5 100644 (file)
@@ -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