]> git.zerfleddert.de Git - micropolis/blob - src/tclx/tkucbsrc/makefile
src/tclx/src/tclxgdat.y: Micropolis build fixes for recent macOS
[micropolis] / src / tclx / tkucbsrc / makefile
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
20 include ../config.mk
21 include ../config/$(TCL_CONFIG_FILE)
22 SHELL=/bin/sh
23
24 #------------------------------------------------------------------------------
25
26 CFLAGS= $(OPTIMIZE_FLAG) $(XCFLAGS) -I../src -I../$(TCL_TK_DIR) \
27 -I../$(TCL_UCB_DIR) -I$(XHOME)/include \
28 $(MEM_DEBUG_FLAGS) $(SYS_DEP_FLAGS) \
29 -DTK_VERSION=\"2.2/\"
30
31 #------------------------------------------------------------------------------
32 #
33 # Targets to build:
34
35 LIBOBJS = tkevent.o
36 OBJS = main.o $(LIBOBJS)
37 WISHX_TCL = ../tcllib/wishx.tcl
38 TK_TCL = ../tcllib/tk.tcl
39 TK_TLIB = ../tcllib/tk.tlib
40
41 #------------------------------------------------------------------------------
42 #
43 # Original UCB Sources to build them from:
44
45 MAIN_SRC = ../$(TCL_TK_DIR)/main.c
46 EVENT_SRC = ../$(TCL_TK_DIR)/tkevent.c
47 WISHX_SRC = ../$(TCL_TK_DIR)/library/wish.tcl
48 TK_TCL_SRC= ../$(TCL_TK_DIR)/library/tk.tcl
49
50 #------------------------------------------------------------------------------
51
52 #all: made.tmp $(WISHX_TCL) $(TK_TLIB) $(TK_TCL)
53 all: made.tmp $(WISHX_TCL) $(TK_TCL)
54
55 made.tmp: $(OBJS)
56 -$(AR) d ../libtk.a $(LIBOBJS)
57 $(AR) cr ../libtk.a $(LIBOBJS)
58 touch made.tmp
59
60 main.c: $(MAIN_SRC) main.sed
61 rm -f main.c
62 sed -f main.sed <$(MAIN_SRC) >main.c
63
64 tkevent.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
82 clean:
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