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