rnd-20001203-5-src
[rocksndiamonds.git] / src / libgame / Makefile
1 #=============================================================================#
2 # Makefile for Rocks'n'Diamonds                                               #
3 # (c) 1995-2000 Holger Schemel, info@artsoft.org                              #
4 #=============================================================================#
5
6 SRCS =  system.c        \
7         gadgets.c       \
8         text.c          \
9         sound.c         \
10         pcx.c           \
11         image.c         \
12         random.c        \
13         misc.c          \
14         msdos.c         \
15         x11.c           \
16         sdl.c
17
18 OBJS =  system.o        \
19         gadgets.o       \
20         text.o          \
21         sound.o         \
22         pcx.o           \
23         image.o         \
24         random.o        \
25         misc.o          \
26         msdos.o         \
27         x11.o           \
28         sdl.o
29
30 LIBGAME = libgame.a
31
32
33 all: $(LIBGAME)
34
35 $(LIBGAME): $(OBJS)
36         $(AR) cru $(LIBGAME) $(OBJS)
37         $(RANLIB) $(LIBGAME)
38
39 .c.o:
40         $(CC) $(PROFILING) $(CFLAGS) -c $*.c
41
42 clean:
43         $(RM) $(OBJS)
44         $(RM) $(LIBGAME)
45
46
47 #-----------------------------------------------------------------------------#
48 # development only stuff                                                      #
49 #-----------------------------------------------------------------------------#
50
51 depend:
52         for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
53
54 ifeq (.depend,$(wildcard .depend))
55 include .depend
56 endif