added list handling functions (from glib)
[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 #                  https://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         list.c          \
26         http.c          \
27         base64.c        \
28         setup.c         \
29         misc.c          \
30         sdl.c           \
31         zip/ioapi.c     \
32         zip/iowin32.c   \
33         zip/unzip.c     \
34         zip/miniunz.c
35
36 OBJS =  system.o        \
37         gadgets.o       \
38         text.o          \
39         sound.o         \
40         snapshot.o      \
41         joystick.o      \
42         image.o         \
43         random.o        \
44         hash.o          \
45         list.o          \
46         http.o          \
47         base64.o        \
48         setup.o         \
49         misc.o          \
50         sdl.o           \
51         zip/ioapi.o     \
52         zip/iowin32.o   \
53         zip/unzip.o     \
54         zip/miniunz.o
55
56 LIBGAME = libgame.a
57
58
59 # -----------------------------------------------------------------------------
60 # build targets
61 # -----------------------------------------------------------------------------
62
63 all: $(LIBGAME)
64
65 $(LIBGAME): $(OBJS)
66         $(AR) cr $(LIBGAME) $(OBJS)
67         $(RANLIB) $(LIBGAME)
68
69 .c.o:
70         $(CC) $(PROFILING) $(CFLAGS) -c $*.c -o $*.o
71
72 clean:
73         $(RM) $(OBJS)
74         $(RM) $(LIBGAME)
75
76
77 # -----------------------------------------------------------------------------
78 # development only
79 # -----------------------------------------------------------------------------
80
81 depend:
82         for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
83
84 depend-clean:
85         $(RM) .depend
86
87 ifeq (.depend,$(wildcard .depend))
88 include .depend
89 endif