rnd-20100316-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                                 \
20         ASM.c                   \
21         BugsTerminals.c         \
22         DDScrollBuffer.c        \
23         DDSpriteBuffer.c        \
24         Display.c               \
25         DoGameStuff.c           \
26         Electrons.c             \
27         Explosions.c            \
28         FakeDeclares.c          \
29         Globals.c               \
30         Infotrons.c             \
31         InitGameConditions.c    \
32         Input.c                 \
33         MainForm.c              \
34         MainGameLoop.c          \
35         Murphy.c                \
36         OrangeDisk.c            \
37         SnikSnaks.c             \
38         Sound.c                 \
39         Zonk.c
40
41 OBJS =  init.o                  \
42         file.o                  \
43         main.o                  \
44         vb_lib.o                \
45                                 \
46         ASM.o                   \
47         BugsTerminals.o         \
48         DDScrollBuffer.o        \
49         DDSpriteBuffer.o        \
50         Display.o               \
51         DoGameStuff.o           \
52         Electrons.o             \
53         Explosions.o            \
54         FakeDeclares.o          \
55         Globals.o               \
56         Infotrons.o             \
57         InitGameConditions.o    \
58         Input.o                 \
59         MainForm.o              \
60         MainGameLoop.o          \
61         Murphy.o                \
62         OrangeDisk.o            \
63         SnikSnaks.o             \
64         Sound.o                 \
65         Zonk.o
66
67 GAME_SP = game_sp.a
68
69
70 # -----------------------------------------------------------------------------
71 # build targets
72 # -----------------------------------------------------------------------------
73
74 all: $(GAME_SP)
75
76 $(GAME_SP): $(OBJS)
77         $(AR) cru $(GAME_SP) $(OBJS)
78         $(RANLIB) $(GAME_SP)
79
80 .c.o:
81         $(CC) $(PROFILING) $(CFLAGS) -c $*.c
82
83 clean:
84         $(RM) $(OBJS)
85         $(RM) $(GAME_SP)
86
87
88 # -----------------------------------------------------------------------------
89 # development only
90 # -----------------------------------------------------------------------------
91
92 depend:
93         for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
94
95 ifeq (.depend,$(wildcard .depend))
96 include .depend
97 endif