]> cvs.zerfleddert.de Git - micropolis/blob - src/sim/makefile
bdf58472a6e1aa166281b2d9a0602b46ddf1d9f2
[micropolis] / src / sim / makefile
1 XINCLUDE = /usr/include/X11
2 TCLHOME = ../tcl
3 TKHOME = ../tk
4 TCLXHOME = ../tclx
5 TCLLIBRARY = /usr/local/lib/tcl
6 TKLIBRARY = /usr/local/lib/tk
7
8 SDLINCLUDE = $$(/bin/sh ./sdl_helper cflags)
9 SDLLIBS = $$(/bin/sh ./sdl_helper libs)
10
11 CC = gcc
12
13 OPTFLAGS = -O3
14 #OPTFLAGS = -g
15
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
22 #DEFINES = -DIS_LINUX -DCAM -DNET
23 DEFINES = -DIS_LINUX -DORIGINAL_MONSTER_BEHAVIOUR #-DNO_AIRCRASH
24
25 CFLAGS += $(OPTFLAGS) $(DEFINES) -Wall
26
27 #LDFLAGS = -Bstatic
28 LDFLAGS=-L/usr/X11/lib -L/usr/X11R6/lib
29
30 INSTALL = install -s
31
32 INCLUDES = \
33 -Iheaders \
34 -I$(XPMHOME) \
35 -I$(XINCLUDE) \
36 -I$(TCLHOME) \
37 -I$(TCLXHOME)/src \
38 -I$(TKHOME) \
39 $(SDLINCLUDE)
40
41 CPPFLAGS = $(INCLUDES)
42
43 LIBS = $(TCLXHOME)/libtk.a \
44 $(TCLXHOME)/libtcl.a \
45 -lm \
46 -lX11 \
47 -lXext \
48 -lXpm \
49 $(SDLLIBS)
50
51 SRCS = \
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
96 HEADERS = \
97 headers/mac.h \
98 headers/macros.h \
99 headers/sim.h \
100 headers/view.h \
101 headers/animtab.h
102
103 OBJS = $(SRCS:.c=.o)
104 ALLOBJS = $(OBJS)
105
106 all: sim
107
108 lint:
109 alint $(INCLUDES) $(SRCS) > LINT
110
111 sim: $(ALLOBJS) $(TCLXHOME)/libtk.a $(TCLXHOME)/libtcl.a
112 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) $(ALLOBJS) $(LIBS) -o sim
113
114 clean:
115 rm -f $(OBJS) \
116 sim a.out core gmon.out *~ *.BAK Headers/*~
117
118 etags:
119 etags $(SRCS) $(HEADERS)
Impressum, Datenschutz