fixed drawing preferred network player in setup menu
[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         main.c          \
25         sound.c         \
26         synchro_1.c     \
27         synchro_2.c     \
28         synchro_3.c     \
29         tab_generate.c  \
30         ulaw_generate.c
31
32 OBJS =  cave.o          \
33         convert.o       \
34         graphics.o      \
35         init.o          \
36         input.o         \
37         main.o          \
38         sound.o         \
39         synchro_1.o     \
40         synchro_2.o     \
41         synchro_3.o     \
42         tab_generate.o  \
43         ulaw_generate.o
44
45 GAME_EM = game_em.a
46
47
48 # -----------------------------------------------------------------------------
49 # build targets
50 # -----------------------------------------------------------------------------
51
52 all: $(GAME_EM)
53
54 $(GAME_EM): $(OBJS)
55         $(AR) cru $(GAME_EM) $(OBJS)
56         $(RANLIB) $(GAME_EM)
57
58 .c.o:
59         $(CC) $(PROFILING) $(CFLAGS) -c $*.c
60
61 clean:
62         $(RM) $(OBJS)
63         $(RM) $(GAME_EM)
64
65
66 # -----------------------------------------------------------------------------
67 # development only
68 # -----------------------------------------------------------------------------
69
70 depend:
71         for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
72
73 ifeq (.depend,$(wildcard .depend))
74 include .depend
75 endif