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