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