]> cvs.zerfleddert.de Git - micropolis/blame - src/tk/makefile.dvx
XINCLUDE: use /usr/X11R6/include everywhere
[micropolis] / src / tk / makefile.dvx
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
30TCL_DIR = ..\tcl
31XPM_DIR = ..\xpm
32XLIB = -lX
33
34CC = gcc
35#CFLAGS = -g -I. -I$(TCL_DIR) -DTK_VERSION=\"2.3\" -DUSE_XPM3 -I$(XPM_DIR)
36CFLAGS = -O2 -I. -I$(TCL_DIR) -DTK_VERSION=\"2.3\" -DUSE_XPM3 -I$(XPM_DIR)
37
38LIBS = libtk.a $(TCL_DIR)/libtcl.a $(XPM_DIR)/libXpm.a
39
40WIDGOBJS = tkbutton.o tkentry.o tkframe.o tklist.o \
41 tkmenu.o tkmnbut.o tkmsg.o tkscale.o \
42 tkscrbar.o
43
44CANVOBJS = tkcanvas.o tkcvarc.o tkcvbmap.o tkcvline.o \
45 tkcvpoly.o tkcvtext.o tkcvwind.o tkrectov.o \
46 tktrig.o
47
48TEXTOBJS = tktext.o tktxbtre.o tktxdisp.o tktxidx.o tktxtag.o
49
50OBJS = tk3d.o tkargv.o tkatom.o tkbind.o tkbitmap.o \
51 tkcmds.o tkcolor.o tkconfig.o tkcursor.o tkerror.o \
52 tkevent.o tkfont.o tkget.o tkgc.o tkgeo.o tkgrab.o \
53 tkoption.o tkpack.o tkpixmap.o tkplace.o tkpresrv.o \
54 tkselect.o tksend.o tkshare.o tkwindow.o tkwm.o tkrawtcp.o \
55 $(WIDGOBJS) $(CANVOBJS) $(TEXTOBJS)
56
57WIDGSRCS = tkbutton.c tkentry.c tkframe.c tklist.c \
58 tkmenu.c tkmnbut.c tkmessage.c tkscale.c \
59 tkscrbar.c tktext.c tktxbtre.c tktxdisp.c \
60 tktextindex.c
61
62CANVSRCS = tkcanvas.c tkcvarc.c tkcvbmap.c tkcvline.c \
63 tkcvpoly.c tkcvtext.c tkcvwind.c tkrectov.c \
64 tktrig.c
65
66TEXTSRCS = tktext.c tktxbtre.c tktxdisp.c tktxidx.c tktxtag.c
67
68SRCS = tk3d.c tkargv.c tkatom.c tkbind.c tkbitmap.c \
69 tkcmds.c tkcolor.c tkconfig.c tkcursor.c tkerror.c \
70 tkevent.c tkfont.c tkget.c tkgc.c tkgeo.c tkgrab.c \
71 tkoption.c tkpack.c tkplace.c tkpresrv.c tkselect.c \
72 tksend.c tkshare.c tkwindow.c tkwm.c tkrawtcp.c $(WIDGSRCS) \
73 $(CANVSRCS) $(TEXTSRCS)
74
75.c.o:
76 $(CC) $< -c $(CFLAGS)
77
78all: wish
79
80wish: main.o $(LIBS)
81 $(CC) $(CFLAGS) main.o <@<
82$(LIBS) $(XLIB) -lsys -lm -o wish
83<
84 aout2exe wish
85
86libtk.a: $(OBJS)
87 rm -f libtk.a
88 ar cr libtk.a <@<
89$(OBJS)
90<
91 ranlib libtk.a
92
93$(TCL_DIR)/libtcl.a:
94 cd $(TCL_DIR)
95 pmake libtcl.a
96
97clean:
98 rm -f $(OBJS) main.o libtk.a wish *.bak
99
100$(OBJS): tk.h tkint.h tkconfig.h
101$(WIDGOBJS): default.h
102$(CANVOBJS): default.h tkcanvas.h
103main.o: tk.h tkint.h
104\1a
Impressum, Datenschutz