34617385f12f8fd305c47f479119c47cf1a08003
[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         LevelSetPreviewForm.c   \
36         MainForm.c              \
37         MainGameLoop.c          \
38         Marker.c                \
39         Murphy.c                \
40         OrangeDisk.c            \
41         PathTools.c             \
42         SettingsObject.c        \
43         SnikSnaks.c             \
44         Sound.c                 \
45         TickCountObject.c       \
46         TopMost.c               \
47         Zonk.c                  \
48         modAnimations.c         \
49         modMPX.c
50
51 OBJS =  init.o                  \
52         file.o                  \
53         main.o                  \
54         vb_lib.o                \
55         vb_vars.o               \
56                                 \
57         ASM.o                   \
58         BugsTerminals.o         \
59         DDScrollBuffer.o        \
60         DDSpriteBuffer.o        \
61         Demo.o                  \
62         Display.o               \
63         DoGameStuff.o           \
64         Electrons.o             \
65         Explosions.o            \
66         FakeDeclares.o          \
67         Globals.o               \
68         Infotrons.o             \
69         InitGameConditions.o    \
70         Input.o                 \
71         LevelSetPreviewForm.o   \
72         MainForm.o              \
73         MainGameLoop.o          \
74         Marker.o                \
75         Murphy.o                \
76         OrangeDisk.o            \
77         PathTools.o             \
78         SettingsObject.o        \
79         SnikSnaks.o             \
80         Sound.o                 \
81         TickCountObject.o       \
82         TopMost.o               \
83         Zonk.o                  \
84         modAnimations.o         \
85         modMPX.o
86
87 GAME_SP = game_sp.a
88
89
90 # -----------------------------------------------------------------------------
91 # build targets
92 # -----------------------------------------------------------------------------
93
94 all: $(GAME_SP)
95
96 $(GAME_SP): $(OBJS)
97         $(AR) cru $(GAME_SP) $(OBJS)
98         $(RANLIB) $(GAME_SP)
99
100 .c.o:
101         $(CC) $(PROFILING) $(CFLAGS) -c $*.c
102
103 clean:
104         $(RM) $(OBJS)
105         $(RM) $(GAME_SP)
106
107
108 # -----------------------------------------------------------------------------
109 # development only
110 # -----------------------------------------------------------------------------
111
112 depend:
113         for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
114
115 ifeq (.depend,$(wildcard .depend))
116 include .depend
117 endif