rnd-20010120-6-src
[rocksndiamonds.git] / src / Makefile
index eee3bac4f2203a9c2bd7bbff2d5691440608fdee..21c753a3a715ccd3ffd3da6619a1939f5224fbd4 100644 (file)
@@ -93,10 +93,10 @@ DEBUG = -DDEBUG -g
 # PROFILING = $(PROFILING_FLAGS)
 
 # OPTIONS = $(DEBUG) -Wall                     # only for debugging purposes
-# OPTIONS = $(DEBUG) -O3 -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
 
@@ -147,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