X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_bd%2FMakefile;fp=src%2Fgame_bd%2FMakefile;h=d25283af5e80405bf1d28cfc19a9bee5c445c0c5;hb=a8363446190d9cc0c712749d0e3610c8485fdfb3;hp=0000000000000000000000000000000000000000;hpb=de2230033229c30b5b4d344d57f9b61d7be941d3;p=rocksndiamonds.git diff --git a/src/game_bd/Makefile b/src/game_bd/Makefile new file mode 100644 index 00000000..d25283af --- /dev/null +++ b/src/game_bd/Makefile @@ -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