]> cvs.zerfleddert.de Git - micropolis/blame - src/tk/makefile
src/tk/tkrawtcp.c: Micropolis build fixes for recent macOS
[micropolis] / src / tk / makefile
CommitLineData
6a5fa4e0
MG
1#
2# This is a simplified Makefile for use in Tk distributions. Before using
3# it to compile Tk, you may wish to reset some of the following variables:
4#
5# TCL_DIR - Name of directory holding tcl.h and tcl.a.
6# XLIB - Name of archive containing Xlib binaries.
7#
8
9# You may also wish to add some of the following switches to the CFLAGS
10# variable:
11#
12# -DX11R3 Causes code that depends on R4 facilities not to
13# be compiled. I haven't tested Tk with R3 in quite
14# a while, so this switch may not be enough to
15# generate a working R3 version of Tk. Furthermore,
16# use of this switch will disable some of the facilities
17# of Tk related to window managers.
18# -DNO_PROTOTYPE Turns off ANSI-style procedure prototypes and the
19# corresponding compile-time checks. Without this
20# defininition, prototypes will be turned on if the
21# compiler supports ANSI C by defining __STDC__.
22# -DTK_LIBRARY=\"dir\" Arranges for dir, which must be the name of a
23# directory, to be the library directory for Tk scripts.
24# This value gets put into the variable $tk_library
25# when a new application is created. The library
26# defaults to /usr/local/lib/tk, so you don't need the
27# switch unless your library is in a non-standard place.
28#
29
30CC = gcc
31
5ec4544b
RS
32CFLAGS = -I. -I$(XINCLUDE) -I$(TCL_DIR) -I$(TCLX_DIR) -O3 -DTK_VERSION=\"2.3\" -DUSE_XPM3 -DIS_LINUX
33#CFLAGS = -I. -I$(XINCLUDE) -I$(TCL_DIR) -I$(TCLX_DIR) -g -DTK_VERSION=\"2.3\" -DUSE_XPM3 -DIS_LINUX
6a5fa4e0
MG
34
35TCL_DIR = ../tcl
5ec4544b 36TCLX_DIR = ../tclx/src
6a5fa4e0
MG
37XINCLUDE = /usr/include/X11
38XLIB = -L/usr/X11R6/lib -lX11 -lXpm
39
40LIBS = libtk.a $(TCL_DIR)/libtcl.a
41LINKS = $(LIBS)
42
43WIDGOBJS = \
44 tkbutton.o \
45 tkentry.o \
46 tkframe.o \
47 tklist.o \
48 tkmenu.o \
49 tkmnbut.o \
50 tkmsg.o \
51 tkscale.o \
52 tkscrbar.o
53
54CANVOBJS = \
55 tkcanvas.o \
56 tkcvarc.o \
57 tkcvbmap.o \
58 tkcvline.o \
59 tkcvpoly.o \
60 tkcvtext.o \
61 tkcvwind.o \
62 tkrectov.o \
63 tktrig.o
64
65TEXTOBJS = \
66 tktext.o \
67 tktxbtre.o \
68 tktxdisp.o \
69 tktxidx.o \
70 tktxtag.o
71
72OBJS = \
73 tk3d.o \
74 tkargv.o \
75 tkatom.o \
76 tkbind.o \
77 tkbitmap.o \
78 tkcmds.o \
79 tkcolor.o \
80 tkconfig.o \
81 tkcursor.o \
82 tkerror.o \
83 tkevent.o \
84 tkfont.o \
85 tkget.o \
86 tkgc.o \
87 tkgeo.o \
88 tkgrab.o \
89 tkoption.o \
90 tkpack.o \
91 tkpixmap.o \
92 tkplace.o \
93 tkpresrv.o \
94 tkselect.o \
95 tksend.o \
96 tkshare.o \
97 tkwindow.o \
98 tkwm.o \
99 tkrawtcp.o \
100 $(WIDGOBJS) \
101 $(CANVOBJS) \
102 $(TEXTOBJS)
103
104WIDGSRCS = \
105 tkbutton.c \
106 tkentry.c \
107 tkframe.c \
108 tklist.c \
109 tkmenu.c \
110 tkmnbut.c \
111 tkmessage.c \
112 tkscale.c \
113 tkscrbar.c \
114 tktext.c \
115 tktxbtre.c \
116 tktxdisp.c \
117 tktextindex.c
118
119CANVSRCS = \
120 tkcanvas.c \
121 tkcvarc.c \
122 tkcvbmap.c \
123 tkcvline.c \
124 tkcvpoly.c \
125 tkcvtext.c \
126 tkcvwind.c \
127 tkrectov.c \
128 tktrig.c
129
130TEXTSRCS = \
131 tktext.c \
132 tktxbtre.c \
133 tktxdisp.c \
134 tktxidx.c \
135 tktxtag.c
136
137SRCS = \
138 tk3d.c \
139 tkargv.c \
140 tkatom.c \
141 tkbind.c \
142 tkbitmap.c \
143 tkcmds.c \
144 tkcolor.c \
145 tkconfig.c \
146 tkcursor.c \
147 tkerror.c \
148 tkevent.c \
149 tkfont.c \
150 tkget.c \
151 tkgc.c \
152 tkgeo.c \
153 tkgrab.c \
154 tkoption.c \
155 tkpack.c \
156 tkplace.c \
157 tkpresrv.c \
158 tkselect.c \
159 tksend.c \
160 tkshare.c \
161 tkwindow.c \
162 tkwm.c \
163 tkrawtcp.c \
164 $(widgsrcs) \
165 $(CANVSRCS) \
166 $(TEXTSRCS)
167
168all: wish
169
170wish: main.o $(LIBS)
171 $(CC) $(CFLAGS) main.o $(LINKS) $(XLIB) -lm -o wish
172
173libtk.a: $(OBJS)
174 rm -f libtk.a
175 ar cr libtk.a $(OBJS)
176 ranlib libtk.a
177
178$(TCL_DIR)/libtcl.a:
179 cd $(TCL_DIR); make libtcl.a
180
181clean:
182 touch junk~
183 rm -f $(OBJS) main.o libtk.a wish *~
184
185$(OBJS): tk.h tkint.h tkconfig.h
186$(WIDGOBJS): default.h
187$(CANVOBJS): default.h tkcanvas.h
188main.o: tk.h tkint.h
Impressum, Datenschutz