added basic support for native Boulder Dash game engine code
[rocksndiamonds.git] / src / game_bd / Makefile
diff --git a/src/game_bd/Makefile b/src/game_bd/Makefile
new file mode 100644 (file)
index 0000000..d25283a
--- /dev/null
@@ -0,0 +1,53 @@
+# =============================================================================
+# Rocks'n'Diamonds - McDuffin Strikes Back!
+# -----------------------------------------------------------------------------
+# (c) 1995-2023 by Artsoft Entertainment
+#                  Holger Schemel
+#                  info@artsoft.org
+#                  https://www.artsoft.org/
+# -----------------------------------------------------------------------------
+# The native Boulder Dash game engine is based on:
+# - GDash by Czirkos Zoltan (2010)
+# -----------------------------------------------------------------------------
+# src/game_bd/Makefile
+# =============================================================================
+
+# -----------------------------------------------------------------------------
+# configuration
+# -----------------------------------------------------------------------------
+
+SRCS = bd_main.c
+
+OBJS = bd_main.o
+
+GAME_BD = game_bd.a
+
+
+# -----------------------------------------------------------------------------
+# build targets
+# -----------------------------------------------------------------------------
+
+all: $(GAME_BD)
+
+$(GAME_BD): $(OBJS)
+       $(AR) cr $(GAME_BD) $(OBJS)
+       $(RANLIB) $(GAME_BD)
+
+.c.o:
+       $(CC) $(PROFILING) $(CFLAGS) -c $*.c
+
+clean:
+       $(RM) $(OBJS)
+       $(RM) $(GAME_BD)
+
+
+# -----------------------------------------------------------------------------
+# development only
+# -----------------------------------------------------------------------------
+
+depend:
+       for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
+
+ifeq (.depend,$(wildcard .depend))
+include .depend
+endif