extended support for slime settings in BD engine to level editor
[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_colors.c     \
30         bd_random.c     \
31         bd_sound.c
32
33 OBJS =  main_bd.o       \
34         bd_cave.o       \
35         bd_cavedb.o     \
36         bd_caveengine.o \
37         bd_caveobject.o \
38         bd_bdcff.o      \
39         bd_caveset.o    \
40         bd_c64import.o  \
41         bd_gameplay.o   \
42         bd_graphics.o   \
43         bd_colors.o     \
44         bd_random.o     \
45         bd_sound.o
46
47 GAME_BD = game_bd.a
48
49
50 # -----------------------------------------------------------------------------
51 # build targets
52 # -----------------------------------------------------------------------------
53
54 all: $(GAME_BD)
55
56 $(GAME_BD): $(OBJS)
57         $(AR) cr $(GAME_BD) $(OBJS)
58         $(RANLIB) $(GAME_BD)
59
60 .c.o:
61         $(CC) $(PROFILING) $(CFLAGS) -c $*.c
62
63 clean:
64         $(RM) $(OBJS)
65         $(RM) $(GAME_BD)
66
67
68 # -----------------------------------------------------------------------------
69 # development only
70 # -----------------------------------------------------------------------------
71
72 depend:
73         for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
74
75 depend-clean:
76         $(RM) .depend
77
78 ifeq (.depend,$(wildcard .depend))
79 include .depend
80 endif