]> git.zerfleddert.de Git - micropolis/blob - src/sim/makefile
water will not kill the monster
[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 #DEFINES = -DIS_LINUX -DCAM -DNET
17 DEFINES = -DIS_LINUX #-DNO_AIRCRASH
18
19 CFLAGS += $(OPTFLAGS) $(DEFINES) -Wall
20
21 #LDFLAGS = -Bstatic
22 LDFLAGS=-L/usr/X11/lib -L/usr/X11R6/lib
23
24 INSTALL = install -s
25
26 INCLUDES = \
27 -Iheaders \
28 -I$(XPMHOME) \
29 -I$(XINCLUDE) \
30 -I$(TCLHOME) \
31 -I$(TCLXHOME)/src \
32 -I$(TKHOME) \
33 $(SDLINCLUDE)
34
35 CPPFLAGS = $(INCLUDES)
36
37 LIBS = $(TCLXHOME)/libtk.a \
38 $(TCLXHOME)/libtcl.a \
39 -lm \
40 -lX11 \
41 -lXext \
42 -lXpm \
43 $(SDLLIBS)
44
45 SRCS = \
46 sim.c \
47 s_alloc.c \
48 s_disast.c \
49 s_eval.c \
50 s_gen.c \
51 s_init.c \
52 s_msg.c \
53 s_power.c \
54 s_scan.c \
55 s_sim.c \
56 s_traf.c \
57 s_zone.c \
58 s_fileio.c \
59 g_setup.c \
60 g_ani.c \
61 g_bigmap.c \
62 g_map.c \
63 g_smmaps.c \
64 w_stubs.c \
65 w_sound.c \
66 w_resrc.c \
67 w_keys.c \
68 w_util.c \
69 w_con.c \
70 w_eval.c \
71 w_budget.c \
72 w_graph.c \
73 w_date.c \
74 w_update.c \
75 w_tool.c \
76 w_x.c \
77 w_tk.c \
78 w_sim.c \
79 w_editor.c \
80 w_map.c \
81 w_sprite.c \
82 w_piem.c \
83 w_inter.c \
84 w_cam.c \
85 g_cam.c \
86 w_net.c \
87 rand.c \
88 random.c
89
90 HEADERS = \
91 headers/mac.h \
92 headers/macros.h \
93 headers/sim.h \
94 headers/view.h \
95 headers/animtab.h
96
97 OBJS = $(SRCS:.c=.o)
98 ALLOBJS = $(OBJS)
99
100 all: sim
101
102 lint:
103 alint $(INCLUDES) $(SRCS) > LINT
104
105 sim: $(ALLOBJS) $(TCLXHOME)/libtk.a $(TCLXHOME)/libtcl.a
106 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) $(ALLOBJS) $(LIBS) -o sim
107
108 clean:
109 rm -f $(OBJS) \
110 sim a.out core gmon.out *~ *.BAK Headers/*~
111
112 etags:
113 etags $(SRCS) $(HEADERS)
Impressum, Datenschutz