rnd-20100309-1-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         BitMapObject.c          \
23         BugsTerminals.c         \
24         Capture.c               \
25         DDScrollBuffer.c        \
26         DDSpriteBuffer.c        \
27         Demo.c                  \
28         DemoBufferObject.c      \
29         DirectDrawGlobals.c     \
30         DirectXGlobals.c        \
31         Display.c               \
32         DoGameStuff.c           \
33         Electrons.c             \
34         ErrorReporting.c        \
35         Explosions.c            \
36         FakeDeclares.c          \
37         FancyRestore.c          \
38         GeneralTricks.c         \
39         Globals.c               \
40         Infotrons.c             \
41         InitGameConditions.c    \
42         Input.c                 \
43         LevelSetPreviewForm.c   \
44         MainForm.c              \
45         MainGameLoop.c          \
46         Marker.c                \
47         Murphy.c                \
48         OrangeDisk.c            \
49         PathTools.c             \
50         SettingsObject.c        \
51         SnikSnaks.c             \
52         Sound.c                 \
53         TickCountObject.c       \
54         TopMost.c               \
55         Zonk.c                  \
56         modAnimations.c         \
57         modGeneralTricks.c      \
58         modMPX.c
59
60 OBJS =  init.o                  \
61         file.o                  \
62         main.o                  \
63         vb_lib.o                \
64         vb_vars.o               \
65                                 \
66         ASM.o                   \
67         BitMapObject.o          \
68         BugsTerminals.o         \
69         Capture.o               \
70         DDScrollBuffer.o        \
71         DDSpriteBuffer.o        \
72         Demo.o                  \
73         DemoBufferObject.o      \
74         DirectDrawGlobals.o     \
75         DirectXGlobals.o        \
76         Display.o               \
77         DoGameStuff.o           \
78         Electrons.o             \
79         ErrorReporting.o        \
80         Explosions.o            \
81         FakeDeclares.o          \
82         FancyRestore.o          \
83         GeneralTricks.o         \
84         Globals.o               \
85         Infotrons.o             \
86         InitGameConditions.o    \
87         Input.o                 \
88         LevelSetPreviewForm.o   \
89         MainForm.o              \
90         MainGameLoop.o          \
91         Marker.o                \
92         Murphy.o                \
93         OrangeDisk.o            \
94         PathTools.o             \
95         SettingsObject.o        \
96         SnikSnaks.o             \
97         Sound.o                 \
98         TickCountObject.o       \
99         TopMost.o               \
100         Zonk.o                  \
101         modAnimations.o         \
102         modGeneralTricks.o      \
103         modMPX.o
104
105 GAME_SP = game_sp.a
106
107
108 # -----------------------------------------------------------------------------
109 # build targets
110 # -----------------------------------------------------------------------------
111
112 all: $(GAME_SP)
113
114 $(GAME_SP): $(OBJS)
115         $(AR) cru $(GAME_SP) $(OBJS)
116         $(RANLIB) $(GAME_SP)
117
118 .c.o:
119         $(CC) $(PROFILING) $(CFLAGS) -c $*.c
120
121 clean:
122         $(RM) $(OBJS)
123         $(RM) $(GAME_SP)
124
125
126 # -----------------------------------------------------------------------------
127 # development only
128 # -----------------------------------------------------------------------------
129
130 depend:
131         for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
132
133 ifeq (.depend,$(wildcard .depend))
134 include .depend
135 endif