1 # provisional makefile for babel
\r
3 # Note that to compile babel, it is necessary only to compile all the .c
\r
4 # files in this distribution and link them.
\r
6 # This makefile is provided purely as a convenience.
\r
8 # The following targets are available:
\r
10 # babel.lib: make babel handler library (for Borland)
\r
11 # ifiction.lib: make babel ifiction library (for Borland)
\r
12 # babel.a: make babel handler library (for gcc)
\r
13 # ifiction.a: make babel ifiction library (for gcc)
\r
14 # dist: make babel.zip, the babel source distribution
\r
16 # Note that this is a GNU makefile, and may not work with other makes
\r
18 # Comment/uncomment the following lines to make the program work
\r
22 #BABEL_LIB=babel.lib
\r
23 #IFICTION_LIB=ifiction.lib
\r
24 #BABEL_FLIB=babel_functions.lib
\r
30 BABEL_FLIB=babel_functions.a
\r
31 IFICTION_LIB=ifiction.a
\r
32 OUTPUT_BABEL=-o babel
\r
34 treaty_objs = zcode${OBJ} magscrolls${OBJ} blorb${OBJ} glulx${OBJ} hugo${OBJ} agt${OBJ} level9${OBJ} executable${OBJ} advsys${OBJ} tads${OBJ} tads2${OBJ} tads3${OBJ} adrift${OBJ} alan${OBJ}
\r
35 bh_objs = babel_handler${OBJ} register${OBJ} misc${OBJ} md5${OBJ} ${treaty_objs}
\r
36 ifiction_objs = ifiction${OBJ} register_ifiction${OBJ}
\r
37 babel_functions = babel_story_functions${OBJ} babel_ifiction_functions${OBJ} babel_multi_functions${OBJ}
\r
38 babel_objs = babel${OBJ} $(BABEL_FLIB) $(IFICTION_LIB) $(BABEL_LIB)
\r
40 babel: ${babel_objs}
\r
41 ${CC} ${OUTPUT_BABEL} ${babel_objs}
\r
46 register${OBJ}: modules.h
\r
48 babel.lib: ${foreach dep,${bh_objs},${dep}.bl}
\r
50 ifiction.lib: ${foreach dep,${ifiction_objs},${dep}.il}
\r
52 babel_functions.lib: ${foreach dep,${babel_functions},${dep}.fl}
\r
59 tlib ifiction.lib +-$^
\r
62 tlib babel_functions.lib +-$^
\r
68 ifiction.a: $(ifiction_objs)
\r
71 babel_functions.a: $(babel_functions)
\r
72 ar -r babel_functions.a $^
\r
75 cut -c0-31 MANIFEST | zip babel.zip -@
\r