added missing and fixed wrong file headers
[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
21 OBJS =  main_bd.o
22
23 GAME_BD = game_bd.a
24
25
26 # -----------------------------------------------------------------------------
27 # build targets
28 # -----------------------------------------------------------------------------
29
30 all: $(GAME_BD)
31
32 $(GAME_BD): $(OBJS)
33         $(AR) cr $(GAME_BD) $(OBJS)
34         $(RANLIB) $(GAME_BD)
35
36 .c.o:
37         $(CC) $(PROFILING) $(CFLAGS) -c $*.c
38
39 clean:
40         $(RM) $(OBJS)
41         $(RM) $(GAME_BD)
42
43
44 # -----------------------------------------------------------------------------
45 # development only
46 # -----------------------------------------------------------------------------
47
48 depend:
49         for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
50
51 ifeq (.depend,$(wildcard .depend))
52 include .depend
53 endif