rnd-20091019-1-src
[rocksndiamonds.git] / src / game_sp / Makefile
1 # =============================================================================
2 # Makefile for Rocks'n'Diamonds native Supaplex engine (game_sp)
3 # -----------------------------------------------------------------------------
4 # (c) 1995-2009 Holger Schemel <info@artsoft.org>
5 # -----------------------------------------------------------------------------
6 # 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 # (code automatically converted from VisualBasic to C by vb2c.pl).
10 # =============================================================================
11
12 # -----------------------------------------------------------------------------
13 # configuration
14 # -----------------------------------------------------------------------------
15
16 SRCS =  init.c                  \
17         file.c                  \
18         main.c                  \
19         vb_lib.c                \
20         vb_vars.c               \
21                                 \
22         ASM.c                   \
23         BitMapObject.c          \
24         BugsTerminals.c         \
25         Capture.c               \
26         DDScrollBuffer.c        \
27         DDSpriteBuffer.c        \
28         Demo.c                  \
29         DemoBufferObject.c      \
30         DirectDrawGlobals.c     \
31         DirectXGlobals.c        \
32         Display.c               \
33         DoGameStuff.c           \
34         Electrons.c             \
35         ErrorReporting.c        \
36         Explosions.c            \
37         FakeDeclares.c          \
38         FancyRestore.c          \
39         GeneralTricks.c         \
40         Globals.c               \
41         Infotrons.c             \
42         InitGameConditions.c    \
43         Input.c                 \
44         LevelSetPreviewForm.c   \
45         MainForm.c              \
46         MainGameLoop.c          \
47         Marker.c                \
48         Murphy.c                \
49         OrangeDisk.c            \
50         PathTools.c             \
51         SettingsObject.c        \
52         SnikSnaks.c             \
53         Sound.c                 \
54         TickCountObject.c       \
55         TopMost.c               \
56         Zonk.c                  \
57         modAnimations.c         \
58         modGeneralTricks.c      \
59         modMPX.c
60
61 OBJS =  init.o                  \
62         file.o                  \
63         main.o                  \
64         vb_lib.o                \
65         vb_vars.o               \
66                                 \
67         ASM.o                   \
68         BitMapObject.o          \
69         BugsTerminals.o         \
70         Capture.o               \
71         DDScrollBuffer.o        \
72         DDSpriteBuffer.o        \
73         Demo.o                  \
74         DemoBufferObject.o      \
75         DirectDrawGlobals.o     \
76         DirectXGlobals.o        \
77         Display.o               \
78         DoGameStuff.o           \
79         Electrons.o             \
80         ErrorReporting.o        \
81         Explosions.o            \
82         FakeDeclares.o          \
83         FancyRestore.o          \
84         GeneralTricks.o         \
85         Globals.o               \
86         Infotrons.o             \
87         InitGameConditions.o    \
88         Input.o                 \
89         LevelSetPreviewForm.o   \
90         MainForm.o              \
91         MainGameLoop.o          \
92         Marker.o                \
93         Murphy.o                \
94         OrangeDisk.o            \
95         PathTools.o             \
96         SettingsObject.o        \
97         SnikSnaks.o             \
98         Sound.o                 \
99         TickCountObject.o       \
100         TopMost.o               \
101         Zonk.o                  \
102         modAnimations.o         \
103         modGeneralTricks.o      \
104         modMPX.o
105
106 GAME_SP = game_sp.a
107
108
109 # -----------------------------------------------------------------------------
110 # build targets
111 # -----------------------------------------------------------------------------
112
113 all: $(GAME_SP)
114
115 $(GAME_SP): $(OBJS)
116         $(AR) cru $(GAME_SP) $(OBJS)
117         $(RANLIB) $(GAME_SP)
118
119 .c.o:
120         $(CC) $(PROFILING) $(CFLAGS) -c $*.c
121
122 clean:
123         $(RM) $(OBJS)
124         $(RM) $(GAME_SP)
125
126
127 # -----------------------------------------------------------------------------
128 # development only
129 # -----------------------------------------------------------------------------
130
131 depend:
132         for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
133
134 ifeq (.depend,$(wildcard .depend))
135 include .depend
136 endif