rnd-20100315-3-src
[rocksndiamonds.git] / src / game_sp / Makefile
1 # =============================================================================
2 # Makefile for native Supaplex engine for Rocks'n'Diamonds (game_sp)
3 # -----------------------------------------------------------------------------
4 # (c) 1995-2009 Holger Schemel <info@artsoft.org>
5 # -----------------------------------------------------------------------------
6 # based on MegaPlex version 0.5 beta release xmas 2001 by Frank Schindler,
7 # based on the Speed Fix 6.3+ by Herman Perk,
8 # based on original Supaplex by Michael Stopp & Philip Jespersen
9 # =============================================================================
10
11 # -----------------------------------------------------------------------------
12 # configuration
13 # -----------------------------------------------------------------------------
14
15 SRCS =  init.c                  \
16         file.c                  \
17         main.c                  \
18         vb_lib.c                \
19         vb_vars.c               \
20                                 \
21         ASM.c                   \
22         BugsTerminals.c         \
23         DDScrollBuffer.c        \
24         DDSpriteBuffer.c        \
25         Demo.c                  \
26         Display.c               \
27         DoGameStuff.c           \
28         Electrons.c             \
29         Explosions.c            \
30         FakeDeclares.c          \
31         Globals.c               \
32         Infotrons.c             \
33         InitGameConditions.c    \
34         Input.c                 \
35         MainForm.c              \
36         MainGameLoop.c          \
37         Murphy.c                \
38         OrangeDisk.c            \
39         PathTools.c             \
40         SettingsObject.c        \
41         SnikSnaks.c             \
42         Sound.c                 \
43         TickCountObject.c       \
44         TopMost.c               \
45         Zonk.c                  \
46         modAnimations.c         \
47         modMPX.c
48
49 OBJS =  init.o                  \
50         file.o                  \
51         main.o                  \
52         vb_lib.o                \
53         vb_vars.o               \
54                                 \
55         ASM.o                   \
56         BugsTerminals.o         \
57         DDScrollBuffer.o        \
58         DDSpriteBuffer.o        \
59         Demo.o                  \
60         Display.o               \
61         DoGameStuff.o           \
62         Electrons.o             \
63         Explosions.o            \
64         FakeDeclares.o          \
65         Globals.o               \
66         Infotrons.o             \
67         InitGameConditions.o    \
68         Input.o                 \
69         MainForm.o              \
70         MainGameLoop.o          \
71         Murphy.o                \
72         OrangeDisk.o            \
73         PathTools.o             \
74         SettingsObject.o        \
75         SnikSnaks.o             \
76         Sound.o                 \
77         TickCountObject.o       \
78         TopMost.o               \
79         Zonk.o                  \
80         modAnimations.o         \
81         modMPX.o
82
83 GAME_SP = game_sp.a
84
85
86 # -----------------------------------------------------------------------------
87 # build targets
88 # -----------------------------------------------------------------------------
89
90 all: $(GAME_SP)
91
92 $(GAME_SP): $(OBJS)
93         $(AR) cru $(GAME_SP) $(OBJS)
94         $(RANLIB) $(GAME_SP)
95
96 .c.o:
97         $(CC) $(PROFILING) $(CFLAGS) -c $*.c
98
99 clean:
100         $(RM) $(OBJS)
101         $(RM) $(GAME_SP)
102
103
104 # -----------------------------------------------------------------------------
105 # development only
106 # -----------------------------------------------------------------------------
107
108 depend:
109         for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
110
111 ifeq (.depend,$(wildcard .depend))
112 include .depend
113 endif