]> git.zerfleddert.de Git - micropolis/blame_incremental - src/sim/makefile
automatic byteorder detection
[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
8CC = gcc
9
10OPTFLAGS = -O3
11#OPTFLAGS = -g
12
13#DEFINES = -DIS_LINUX -DCAM -DNET
14DEFINES = -DIS_LINUX
15
16CFLAGS = $(OPTFLAGS) $(DEFINES)
17
18#LDFLAGS = -Bstatic
19LDFLAGS=-L/usr/X11/lib
20
21INSTALL = install -s
22
23INCLUDES = \
24 -Iheaders \
25 -I$(XPMHOME) \
26 -I$(XINCLUDE) \
27 -I$(TCLHOME) \
28 -I$(TCLXHOME)/src \
29 -I$(TKHOME)
30
31CPPFLAGS = $(INCLUDES)
32
33LIBS = $(TCLXHOME)/libtk.a \
34 $(TCLXHOME)/libtcl.a \
35 -lm \
36 -lX11 \
37 -lXext \
38 -lXpm
39
40SRCS = \
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
85HEADERS = \
86 headers/mac.h \
87 headers/macros.h \
88 headers/sim.h \
89 headers/view.h \
90 headers/animtab.h
91
92OBJS = $(SRCS:.c=.o)
93ALLOBJS = $(OBJS)
94
95all: sim
96
97lint:
98 alint $(INCLUDES) $(SRCS) > LINT
99
100sim: $(ALLOBJS)
101 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) $(ALLOBJS) $(LIBS) -o sim
102
103clean:
104 rm -f $(OBJS) \
105 sim a.out core gmon.out *~ *.BAK Headers/*~
106
107etags:
108 etags $(SRCS) $(HEADERS)
Impressum, Datenschutz