]> git.zerfleddert.de Git - micropolis/blame - src/tclx/tkucbsrc/makefile
XINCLUDE: use /usr/X11R6/include everywhere
[micropolis] / src / tclx / tkucbsrc / makefile
CommitLineData
6a5fa4e0
MG
1#
2# Makefile --
3#
4# Makefile for building special version of tk source to support Extended Tcl.
5#
6#------------------------------------------------------------------------------
7# Copyright 1992 Karl Lehenbauer and Mark Diekhans.
8#
9# Permission to use, copy, modify, and distribute this software and its
10# documentation for any purpose and without fee is hereby granted, provided
11# that the above copyright notice appear in all copies. Karl Lehenbauer and
12# Mark Diekhans make no representations about the suitability of this
13# software for any purpose. It is provided "as is" without express or
14# implied warranty.
15#------------------------------------------------------------------------------
16# $Id: Makefile,v 2.0 1992/10/16 04:54:52 markd Rel $
17#------------------------------------------------------------------------------
18#
19
20include ../config.mk
21include ../config/$(TCL_CONFIG_FILE)
22SHELL=/bin/sh
23
24#------------------------------------------------------------------------------
25
26CFLAGS= $(OPTIMIZE_FLAG) $(XCFLAGS) -I../src -I../$(TCL_TK_DIR) \
939cf665 27 -I../$(TCL_UCB_DIR) -I$(XINCLUDE) \
6a5fa4e0
MG
28 $(MEM_DEBUG_FLAGS) $(SYS_DEP_FLAGS) \
29 -DTK_VERSION=\"2.2/\"
30
31#------------------------------------------------------------------------------
32#
33# Targets to build:
34
35LIBOBJS = tkevent.o
36OBJS = main.o $(LIBOBJS)
37WISHX_TCL = ../tcllib/wishx.tcl
38TK_TCL = ../tcllib/tk.tcl
39TK_TLIB = ../tcllib/tk.tlib
40
41#------------------------------------------------------------------------------
42#
43# Original UCB Sources to build them from:
44
45MAIN_SRC = ../$(TCL_TK_DIR)/main.c
46EVENT_SRC = ../$(TCL_TK_DIR)/tkevent.c
47WISHX_SRC = ../$(TCL_TK_DIR)/library/wish.tcl
48TK_TCL_SRC= ../$(TCL_TK_DIR)/library/tk.tcl
49
50#------------------------------------------------------------------------------
51
52#all: made.tmp $(WISHX_TCL) $(TK_TLIB) $(TK_TCL)
53all: made.tmp $(WISHX_TCL) $(TK_TCL)
54
55made.tmp: $(OBJS)
56 -$(AR) d ../libtk.a $(LIBOBJS)
57 $(AR) cr ../libtk.a $(LIBOBJS)
58 touch made.tmp
59
60main.c: $(MAIN_SRC) main.sed
61 rm -f main.c
62 sed -f main.sed <$(MAIN_SRC) >main.c
63
64tkevent.c: $(EVENT_SRC) tkevent.sed
65 rm -f tkevent.c
66 sed -f tkevent.sed <$(EVENT_SRC) >tkevent.c
67
68$(WISHX_TCL): $(WISHX_SRC) wishx.sed
69 rm -f $(WISHX_TCL)
70 sed -f wishx.sed <$(WISHX_SRC) >$(WISHX_TCL)
71
72$(TK_TCL): $(TK_TCL_SRC)
73 rm -f $(TK_TCL)
74 cp $(TK_TCL_SRC) $(TK_TCL)
75
76$(TK_TLIB): ../$(TCL_TK_DIR)/library/tclindex
77 TCLDEFAULT=../tcldef;export TCLDEFAULT ;\
78 ../tcl "-c convert_lib ../$(TCL_TK_DIR)/library/tclindex $(TK_TLIB)"
79
80#------------------------------------------------------------------------------
81
82clean:
83 touch junk~
84 rm -f *~ $(OBJS) made.tmp
85 rm -f tkevent.c main.c
86 rm -f $(WISHX_TCL) $(TK_TCL) $(TK_TLIB) ../tcllib/tk.tdx
Impressum, Datenschutz