added GDash source files prepared for game engine integration into R'n'D
[rocksndiamonds.git] / src / game_bd / Makefile
1 # =============================================================================
2 # Rocks'n'Diamonds - McDuffin Strikes Back!
3 # -----------------------------------------------------------------------------
4 # (c) 1995-2024 by Artsoft Entertainment
5 #                  Holger Schemel
6 #                  info@artsoft.org
7 #                  https://www.artsoft.org/
8 # -----------------------------------------------------------------------------
9 # The native Boulder Dash game engine is based on:
10 # - GDash by Czirkos Zoltan (2010)
11 # -----------------------------------------------------------------------------
12 # src/game_bd/Makefile
13 # =============================================================================
14
15 # -----------------------------------------------------------------------------
16 # configuration
17 # -----------------------------------------------------------------------------
18
19 SRCS =  main_bd.c       \
20         bd_cave.c       \
21         bd_cavedb.c     \
22         bd_caveengine.c \
23         bd_caveobject.c \
24         bd_bdcff.c      \
25         bd_caveset.c    \
26         bd_c64import.c  \
27         bd_gameplay.c   \
28         bd_graphics.c   \
29         bd_sound.c
30
31 OBJS =  main_bd.o       \
32         bd_cave.o       \
33         bd_cavedb.o     \
34         bd_caveengine.o \
35         bd_caveobject.o \
36         bd_bdcff.o      \
37         bd_caveset.o    \
38         bd_c64import.o  \
39         bd_gameplay.o   \
40         bd_graphics.o   \
41         bd_sound.o
42
43 GAME_BD = game_bd.a
44
45
46 # -----------------------------------------------------------------------------
47 # build targets
48 # -----------------------------------------------------------------------------
49
50 all: $(GAME_BD)
51
52 $(GAME_BD): $(OBJS)
53         $(AR) cr $(GAME_BD) $(OBJS)
54         $(RANLIB) $(GAME_BD)
55
56 .c.o:
57         $(CC) $(PROFILING) $(CFLAGS) -c $*.c
58
59 clean:
60         $(RM) $(OBJS)
61         $(RM) $(GAME_BD)
62
63
64 # -----------------------------------------------------------------------------
65 # development only
66 # -----------------------------------------------------------------------------
67
68 depend:
69         for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
70
71 ifeq (.depend,$(wildcard .depend))
72 include .depend
73 endif