cleanup of drawing init text
[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         toons.c         \
23         image.c         \
24         random.c        \
25         hash.c          \
26         setup.c         \
27         misc.c          \
28         sdl.c
29
30 OBJS =  system.o        \
31         gadgets.o       \
32         text.o          \
33         sound.o         \
34         snapshot.o      \
35         joystick.o      \
36         toons.o         \
37         image.o         \
38         random.o        \
39         hash.o          \
40         setup.o         \
41         misc.o          \
42         sdl.o
43
44 LIBGAME = libgame.a
45
46
47 # -----------------------------------------------------------------------------
48 # build targets
49 # -----------------------------------------------------------------------------
50
51 all: $(LIBGAME)
52
53 $(LIBGAME): $(OBJS)
54         $(AR) cru $(LIBGAME) $(OBJS)
55         $(RANLIB) $(LIBGAME)
56
57 .c.o:
58         $(CC) $(PROFILING) $(CFLAGS) -c $*.c
59
60 clean:
61         $(RM) $(OBJS)
62         $(RM) $(LIBGAME)
63
64
65 # -----------------------------------------------------------------------------
66 # development only
67 # -----------------------------------------------------------------------------
68
69 depend:
70         for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
71
72 ifeq (.depend,$(wildcard .depend))
73 include .depend
74 endif