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