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