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