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