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