1 |
578 |
markom |
#
|
2 |
|
|
# This file is a Makefile for Tk. If it has the name "Makefile.in"
|
3 |
|
|
# then it is a template for a Makefile; to generate the actual Makefile,
|
4 |
|
|
# run "./configure", which is a configuration script generated by the
|
5 |
|
|
# "autoconf" program (constructs like "@foo@" will get replaced in the
|
6 |
|
|
# actual Makefile.
|
7 |
|
|
#
|
8 |
|
|
# @(#) Makefile.in 1.19 95/01/08 16:55:30
|
9 |
|
|
|
10 |
|
|
#----------------------------------------------------------------
|
11 |
|
|
# Things you can change to personalize the Makefile for your own
|
12 |
|
|
# site (you can make these changes in either Makefile.in or
|
13 |
|
|
# Makefile, but changes to Makefile will get lost if you re-run
|
14 |
|
|
# the configuration script).
|
15 |
|
|
#----------------------------------------------------------------
|
16 |
|
|
|
17 |
|
|
# Default top-level directories in which to install architecture-
|
18 |
|
|
# specific files (exec_prefix) and machine-independent files such
|
19 |
|
|
# as scripts (prefix). The values specified here may be overridden
|
20 |
|
|
# at configure-time with the --exec-prefix and --prefix options
|
21 |
|
|
# to the "configure" script.
|
22 |
|
|
|
23 |
|
|
prefix = @prefix@
|
24 |
|
|
exec_prefix = @exec_prefix@
|
25 |
|
|
|
26 |
|
|
@SET_MAKE@
|
27 |
|
|
|
28 |
|
|
# Directory in which to install the library of Tix scripts and demos
|
29 |
|
|
# (note: you can set the TIX_LIBRARY environment variable at run-time to
|
30 |
|
|
# override the compiled-in location):
|
31 |
|
|
TIX_LIBRARY = $(prefix)/lib/tix
|
32 |
|
|
|
33 |
|
|
# Directory in which to install the archive libtix.a:
|
34 |
|
|
LIB_DIR = $(exec_prefix)/lib
|
35 |
|
|
|
36 |
|
|
# Directory in which to install the program wish:
|
37 |
|
|
BIN_DIR = $(exec_prefix)/bin
|
38 |
|
|
|
39 |
|
|
# Directory in which to install the include file tix.h:
|
40 |
|
|
INCLUDE_DIR = $(prefix)/include
|
41 |
|
|
|
42 |
|
|
# Top-level directory for manual entries:
|
43 |
|
|
MAN_DIR = $(prefix)/man
|
44 |
|
|
|
45 |
|
|
# Directory in which to install manual entry for wish:
|
46 |
|
|
MAN1_DIR = $(MAN_DIR)/man1
|
47 |
|
|
|
48 |
|
|
# Directory in which to install manual entries for Tix's C library
|
49 |
|
|
# procedures:
|
50 |
|
|
MAN3_DIR = $(MAN_DIR)/man3
|
51 |
|
|
|
52 |
|
|
# Directory in which to install manual entries for the built-in
|
53 |
|
|
# Tcl commands implemented by Tix:
|
54 |
|
|
MANN_DIR = $(MAN_DIR)/mann
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
# A "-I" switch that can be used when compiling to make all of the
|
58 |
|
|
# X11 include files accessible (the configure script will try to
|
59 |
|
|
# set this value, and will cause it to be an empty string if the
|
60 |
|
|
# include files are accessible via /usr/include).
|
61 |
|
|
X11_INCLUDES = @XINCLUDES@
|
62 |
|
|
|
63 |
|
|
# Linker switch(es) to use to link with the X11 library archive (the
|
64 |
|
|
# configure script will try to set this value automatically, but you
|
65 |
|
|
# can override it).
|
66 |
|
|
X11_LIB_SWITCHES = @XLIBSW@
|
67 |
|
|
|
68 |
|
|
# Libraries to use when linking: must include at least Tix, Tcl, Xlib,
|
69 |
|
|
# and the math library (in that order). The "@LIBS@" part will be
|
70 |
|
|
# replaced (or has already been replaced) with relevant libraries as
|
71 |
|
|
# determined by the configure script.
|
72 |
|
|
LIBS = ../../unix-tk4.0/libtix.a @TK40_LIB@ @TCL74_LIB@ \
|
73 |
|
|
$(X11_LIB_SWITCHES) @LIBS@ @MATH_LIBS@
|
74 |
|
|
|
75 |
|
|
# To change the compiler switches, for example to change from -O
|
76 |
|
|
# to -g, change the following line:
|
77 |
|
|
CFLAGS = @TIX_DEBUG_FLAG@
|
78 |
|
|
|
79 |
|
|
# To disable ANSI-C procedure prototypes reverse the comment characters
|
80 |
|
|
# on the following lines:
|
81 |
|
|
PROTO_FLAGS =
|
82 |
|
|
#PROTO_FLAGS = -DNO_PROTOTYPE
|
83 |
|
|
|
84 |
|
|
# To enable memory debugging reverse the comment characters on the following
|
85 |
|
|
# lines. Warning: if you enable memory debugging, you must do it
|
86 |
|
|
# *everywhere*, including all the code that calls Tcl, and you must use
|
87 |
|
|
# ckalloc and ckfree everywhere instead of malloc and free.
|
88 |
|
|
MEM_DEBUG_FLAGS =
|
89 |
|
|
#MEM_DEBUG_FLAGS = -DTCL_MEM_DEBUG
|
90 |
|
|
|
91 |
|
|
# Some versions of make, like SGI's, use the following variable to
|
92 |
|
|
# determine which shell to use for executing commands:
|
93 |
|
|
SHELL = /bin/sh
|
94 |
|
|
|
95 |
|
|
#----------------------------------------------------------------
|
96 |
|
|
# The information below is modified by the configure script when
|
97 |
|
|
# Makefile is generated from Makefile.in. You shouldn't normally
|
98 |
|
|
# modify any of this stuff by hand.
|
99 |
|
|
#----------------------------------------------------------------
|
100 |
|
|
|
101 |
|
|
AC_FLAGS = @DEFS@
|
102 |
|
|
SRC_DIR = @SRC_DIR@
|
103 |
|
|
INC_DIR = @SRC_DIR@/include
|
104 |
|
|
VPATH = @SRC_DIR@
|
105 |
|
|
|
106 |
|
|
#----------------------------------------------------------------
|
107 |
|
|
# The information below should be usable as is. The configure
|
108 |
|
|
# script won't modify it and you shouldn't need to modify it
|
109 |
|
|
# either.
|
110 |
|
|
#----------------------------------------------------------------
|
111 |
|
|
|
112 |
|
|
|
113 |
|
|
CC = @CC@
|
114 |
|
|
CC_SWITCHES = ${CFLAGS} -I${INC_DIR} -I@TCL74_SRC_DIR@ -I@TK40_SRC_DIR@ \
|
115 |
|
|
${X11_INCLUDES} ${AC_FLAGS} ${PROTO_FLAGS} ${MEM_DEBUG_FLAGS} \
|
116 |
|
|
-DTIX_LIBRARY=\"${TIX_LIBRARY}\" @TIX_EXTRA_CFLAGS@
|
117 |
|
|
|
118 |
|
|
OBJS = tixAppInit.o myInit.o myCmds.o
|
119 |
|
|
|
120 |
|
|
HDRS =
|
121 |
|
|
|
122 |
|
|
all: mytixwish
|
123 |
|
|
|
124 |
|
|
mytixwish: $(OBJS)
|
125 |
|
|
$(CC) $(CC_SWITCHES) $(OBJS) @TIX_EXTRA_LDFLAGS@ $(LIBS) -o mytixwish
|
126 |
|
|
|
127 |
|
|
Makefile: Makefile.in
|
128 |
|
|
cd $(SRC_DIR); $(SHELL) config.status
|
129 |
|
|
|
130 |
|
|
clean:
|
131 |
|
|
- rm -f *.a *.o core errs *~ \#* TAGS *.E a.out errors \
|
132 |
|
|
config.info mytixwish
|
133 |
|
|
|
134 |
|
|
distclean: clean
|
135 |
|
|
- rm -f Makefile config.status config.log config.cache
|
136 |
|
|
|
137 |
|
|
depend:
|
138 |
|
|
makedepend -- $(CC_SWITCHES) -- $(SRCS)
|
139 |
|
|
|
140 |
|
|
install:
|
141 |
|
|
@echo nothing to be done.
|
142 |
|
|
|
143 |
|
|
.c.o:
|
144 |
|
|
$(CC) -c $(CC_SWITCHES) $<
|
145 |
|
|
|
146 |
|
|
|
147 |
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|