added Makefile targets to clean up header dependency files
[rocksndiamonds.git] / src / game_sp / Makefile
index d1d9ffc3ff55281a01f07ac614ee892d84b45a0b..1d327c50684e1f7a642c46ec2d82687e692a3aac 100644 (file)
@@ -1,11 +1,17 @@
 # =============================================================================
-# Makefile for native Supaplex engine for Rocks'n'Diamonds (game_sp)
+# Rocks'n'Diamonds - McDuffin Strikes Back!
 # -----------------------------------------------------------------------------
-# (c) 1995-2009 Holger Schemel <info@artsoft.org>
+# (c) 1995-2014 by Artsoft Entertainment
+#                  Holger Schemel
+#                  info@artsoft.org
+#                  https://www.artsoft.org/
 # -----------------------------------------------------------------------------
-# based on MegaPlex version 0.5 beta release xmas 2001 by Frank Schindler,
-# based on the Speed Fix 6.3+ by Herman Perk,
-# based on original Supaplex by Michael Stopp & Philip Jespersen
+# The native Supaplex game engine is based on:
+# - MegaPlex version 0.5 beta release xmas 2001 by Frank Schindler
+# - Speed Fix 6.3+ by Herman Perk
+# - Supaplex by Michael Stopp & Philip Jespersen
+# -----------------------------------------------------------------------------
+# src/game_sp/Makefile
 # =============================================================================
 
 # -----------------------------------------------------------------------------
@@ -72,7 +78,7 @@ GAME_SP = game_sp.a
 all: $(GAME_SP)
 
 $(GAME_SP): $(OBJS)
-       $(AR) cru $(GAME_SP) $(OBJS)
+       $(AR) cr $(GAME_SP) $(OBJS)
        $(RANLIB) $(GAME_SP)
 
 .c.o:
@@ -90,6 +96,9 @@ clean:
 depend:
        for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
 
+depend-clean:
+       $(RM) .depend
+
 ifeq (.depend,$(wildcard .depend))
 include .depend
 endif