make monster behaviour configurable
[micropolis] / src / sim / makefile
CommitLineData
6a5fa4e0
MG
1XINCLUDE = /usr/include/X11
2TCLHOME = ../tcl
3TKHOME = ../tk
4TCLXHOME = ../tclx
5TCLLIBRARY = /usr/local/lib/tcl
6TKLIBRARY = /usr/local/lib/tk
7
41b487e3
MG
8SDLINCLUDE = $$(/bin/sh ./sdl_helper cflags)
9SDLLIBS = $$(/bin/sh ./sdl_helper libs)
bf4857d3 10
6a5fa4e0
MG
11CC = gcc
12
13OPTFLAGS = -O3
14#OPTFLAGS = -g
15
6f81c61f
MG
16#Possible defines:
17#ORIGINAL_MONSTER_BEHAVIOUR: The monster is able to walk over water and not die
18#NO_AIRCRASH: The Aircrash-Disaster is disables completely
19#CAM: ?
20#NET: ?
21
e9c442bb 22#DEFINES = -DIS_LINUX -DCAM -DNET
6f81c61f 23DEFINES = -DIS_LINUX -DORIGINAL_MONSTER_BEHAVIOUR #-DNO_AIRCRASH
6a5fa4e0 24
6f214ac0 25CFLAGS += $(OPTFLAGS) $(DEFINES) -Wall
6a5fa4e0
MG
26
27#LDFLAGS = -Bstatic
23ec375e 28LDFLAGS=-L/usr/X11/lib -L/usr/X11R6/lib
6a5fa4e0
MG
29
30INSTALL = install -s
31
32INCLUDES = \
33 -Iheaders \
34 -I$(XPMHOME) \
35 -I$(XINCLUDE) \
36 -I$(TCLHOME) \
37 -I$(TCLXHOME)/src \
bf4857d3
DP
38 -I$(TKHOME) \
39 $(SDLINCLUDE)
6a5fa4e0
MG
40
41CPPFLAGS = $(INCLUDES)
42
43LIBS = $(TCLXHOME)/libtk.a \
44 $(TCLXHOME)/libtcl.a \
45 -lm \
46 -lX11 \
47 -lXext \
bf4857d3
DP
48 -lXpm \
49 $(SDLLIBS)
6a5fa4e0
MG
50
51SRCS = \
52 sim.c \
53 s_alloc.c \
54 s_disast.c \
55 s_eval.c \
56 s_gen.c \
57 s_init.c \
58 s_msg.c \
59 s_power.c \
60 s_scan.c \
61 s_sim.c \
62 s_traf.c \
63 s_zone.c \
64 s_fileio.c \
65 g_setup.c \
66 g_ani.c \
67 g_bigmap.c \
68 g_map.c \
69 g_smmaps.c \
70 w_stubs.c \
71 w_sound.c \
72 w_resrc.c \
73 w_keys.c \
74 w_util.c \
75 w_con.c \
76 w_eval.c \
77 w_budget.c \
78 w_graph.c \
79 w_date.c \
80 w_update.c \
81 w_tool.c \
82 w_x.c \
83 w_tk.c \
84 w_sim.c \
85 w_editor.c \
86 w_map.c \
87 w_sprite.c \
88 w_piem.c \
89 w_inter.c \
90 w_cam.c \
91 g_cam.c \
92 w_net.c \
93 rand.c \
94 random.c
95
96HEADERS = \
97 headers/mac.h \
98 headers/macros.h \
99 headers/sim.h \
100 headers/view.h \
101 headers/animtab.h
102
103OBJS = $(SRCS:.c=.o)
104ALLOBJS = $(OBJS)
105
106all: sim
107
108lint:
109 alint $(INCLUDES) $(SRCS) > LINT
110
76cc4ab6 111sim: $(ALLOBJS) $(TCLXHOME)/libtk.a $(TCLXHOME)/libtcl.a
6a5fa4e0
MG
112 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) $(ALLOBJS) $(LIBS) -o sim
113
114clean:
115 rm -f $(OBJS) \
116 sim a.out core gmon.out *~ *.BAK Headers/*~
117
118etags:
119 etags $(SRCS) $(HEADERS)
Impressum, Datenschutz