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