rnd-20060304-1-src
[rocksndiamonds.git] / src / game_em / Makefile
1 # =============================================================================
2 # Rocks'n'Diamonds Makefile (game_em)
3 # -----------------------------------------------------------------------------
4 # (c) 1995-2005 Holger Schemel <info@artsoft.org>
5 # -----------------------------------------------------------------------------
6 # Emerald Mine for X11 © 2000,2001 David Tritscher
7 # =============================================================================
8
9 # -----------------------------------------------------------------------------
10 # configuration
11 # -----------------------------------------------------------------------------
12
13 SRCS =  cave.c          \
14         convert.c       \
15         graphics.c      \
16         init.c          \
17         input.c         \
18         main.c          \
19         sound.c         \
20         synchro_1.c     \
21         synchro_2.c     \
22         synchro_3.c     \
23         tab_generate.c  \
24         ulaw_generate.c
25
26 OBJS =  cave.o          \
27         convert.o       \
28         graphics.o      \
29         init.o          \
30         input.o         \
31         main.o          \
32         sound.o         \
33         synchro_1.o     \
34         synchro_2.o     \
35         synchro_3.o     \
36         tab_generate.o  \
37         ulaw_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) cru $(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