fixed bug with playing "timeout" and "player dies" sounds in SP engine
[rocksndiamonds.git] / src / libgame / 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 # src/libgame/Makefile
10 # =============================================================================
11
12 # -----------------------------------------------------------------------------
13 # configuration
14 # -----------------------------------------------------------------------------
15
16 SRCS =  system.c        \
17         gadgets.c       \
18         text.c          \
19         sound.c         \
20         joystick.c      \
21         snapshot.c      \
22         image.c         \
23         random.c        \
24         hash.c          \
25         setup.c         \
26         misc.c          \
27         sdl.c
28
29 OBJS =  system.o        \
30         gadgets.o       \
31         text.o          \
32         sound.o         \
33         snapshot.o      \
34         joystick.o      \
35         image.o         \
36         random.o        \
37         hash.o          \
38         setup.o         \
39         misc.o          \
40         sdl.o
41
42 LIBGAME = libgame.a
43
44
45 # -----------------------------------------------------------------------------
46 # build targets
47 # -----------------------------------------------------------------------------
48
49 all: $(LIBGAME)
50
51 $(LIBGAME): $(OBJS)
52         $(AR) cru $(LIBGAME) $(OBJS)
53         $(RANLIB) $(LIBGAME)
54
55 .c.o:
56         $(CC) $(PROFILING) $(CFLAGS) -c $*.c
57
58 clean:
59         $(RM) $(OBJS)
60         $(RM) $(LIBGAME)
61
62
63 # -----------------------------------------------------------------------------
64 # development only
65 # -----------------------------------------------------------------------------
66
67 depend:
68         for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
69
70 ifeq (.depend,$(wildcard .depend))
71 include .depend
72 endif