improved handling network errors (show message instead of stopping program)
[rocksndiamonds.git] / src / game_sp / Makefile
1 # =============================================================================
2 # Rocks'n'Diamonds - McDuffin Strikes Back!
3 # -----------------------------------------------------------------------------
4 # (c) 1995-2014 by Artsoft Entertainment
5 #                  Holger Schemel
6 #                  info@artsoft.org
7 #                  http://www.artsoft.org/
8 # -----------------------------------------------------------------------------
9 # The native Supaplex game engine is based on:
10 # - MegaPlex version 0.5 beta release xmas 2001 by Frank Schindler
11 # - Speed Fix 6.3+ by Herman Perk
12 # - Supaplex by Michael Stopp & Philip Jespersen
13 # -----------------------------------------------------------------------------
14 # src/game_sp/Makefile
15 # =============================================================================
16
17 # -----------------------------------------------------------------------------
18 # configuration
19 # -----------------------------------------------------------------------------
20
21 SRCS =  init.c                  \
22         file.c                  \
23         main.c                  \
24         vb_lib.c                \
25                                 \
26         ASM.c                   \
27         BugsTerminals.c         \
28         DDScrollBuffer.c        \
29         DDSpriteBuffer.c        \
30         Display.c               \
31         DoGameStuff.c           \
32         Electrons.c             \
33         Explosions.c            \
34         Globals.c               \
35         Infotrons.c             \
36         InitGameConditions.c    \
37         Input.c                 \
38         MainForm.c              \
39         MainGameLoop.c          \
40         Murphy.c                \
41         OrangeDisk.c            \
42         SnikSnaks.c             \
43         Sound.c                 \
44         Zonk.c
45
46 OBJS =  init.o                  \
47         file.o                  \
48         main.o                  \
49         vb_lib.o                \
50                                 \
51         ASM.o                   \
52         BugsTerminals.o         \
53         DDScrollBuffer.o        \
54         DDSpriteBuffer.o        \
55         Display.o               \
56         DoGameStuff.o           \
57         Electrons.o             \
58         Explosions.o            \
59         Globals.o               \
60         Infotrons.o             \
61         InitGameConditions.o    \
62         Input.o                 \
63         MainForm.o              \
64         MainGameLoop.o          \
65         Murphy.o                \
66         OrangeDisk.o            \
67         SnikSnaks.o             \
68         Sound.o                 \
69         Zonk.o
70
71 GAME_SP = game_sp.a
72
73
74 # -----------------------------------------------------------------------------
75 # build targets
76 # -----------------------------------------------------------------------------
77
78 all: $(GAME_SP)
79
80 $(GAME_SP): $(OBJS)
81         $(AR) cru $(GAME_SP) $(OBJS)
82         $(RANLIB) $(GAME_SP)
83
84 .c.o:
85         $(CC) $(PROFILING) $(CFLAGS) -c $*.c
86
87 clean:
88         $(RM) $(OBJS)
89         $(RM) $(GAME_SP)
90
91
92 # -----------------------------------------------------------------------------
93 # development only
94 # -----------------------------------------------------------------------------
95
96 depend:
97         for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
98
99 ifeq (.depend,$(wildcard .depend))
100 include .depend
101 endif