cleanup of unused EM engine source files and declarations
[rocksndiamonds.git] / src / game_em / Makefile
1 # =============================================================================
2 # Rocks'n'Diamonds - McDuffin Strikes Back!
3 # -----------------------------------------------------------------------------
4 # (c) 1995-2014 by Artsoft Entertainment
5 #                  Holger Schemel
6 #                  info@artsoft.org
7 #                  http://www.artsoft.org/
8 # -----------------------------------------------------------------------------
9 # The native Emerald Mine game engine is based on:
10 # Emerald Mine for X11 (c) 2000,2001 David Tritscher
11 # -----------------------------------------------------------------------------
12 # src/game_em/Makefile
13 # =============================================================================
14
15 # -----------------------------------------------------------------------------
16 # configuration
17 # -----------------------------------------------------------------------------
18
19 SRCS =  cave.c          \
20         convert.c       \
21         graphics.c      \
22         init.c          \
23         input.c         \
24         synchro_1.c     \
25         synchro_2.c     \
26         synchro_3.c     \
27         tab_generate.c
28
29 OBJS =  cave.o          \
30         convert.o       \
31         graphics.o      \
32         init.o          \
33         input.o         \
34         synchro_1.o     \
35         synchro_2.o     \
36         synchro_3.o     \
37         tab_generate.o
38
39 GAME_EM = game_em.a
40
41
42 # -----------------------------------------------------------------------------
43 # build targets
44 # -----------------------------------------------------------------------------
45
46 all: $(GAME_EM)
47
48 $(GAME_EM): $(OBJS)
49         $(AR) cr $(GAME_EM) $(OBJS)
50         $(RANLIB) $(GAME_EM)
51
52 .c.o:
53         $(CC) $(PROFILING) $(CFLAGS) -c $*.c
54
55 clean:
56         $(RM) $(OBJS)
57         $(RM) $(GAME_EM)
58
59
60 # -----------------------------------------------------------------------------
61 # development only
62 # -----------------------------------------------------------------------------
63
64 depend:
65         for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
66
67 ifeq (.depend,$(wildcard .depend))
68 include .depend
69 endif