1#
2# @configure_input@
3# $Id: Makefile.in,v 1.6 2002/05/10 18:54:30 jenglish Exp $
4#
5
6### Identification division.
7#
8
9PACKAGE = @PACKAGE@
10VERSION = @VERSION@
11
12### Environment division.
13#
14prefix		= @prefix@
15exec_prefix	= @exec_prefix@
16bindir		= @bindir@
17libdir		= @libdir@
18libexecdir	= @libexecdir@
19mandir		= @mandir@
20
21srcdir		= @srcdir@
22pkglibdir	= $(libdir)/@PACKAGE@@VERSION@
23
24DEFS		= @DEFS@
25LIBS		= @LIBS@
26INCLUDES	= @TCL_INCLUDES@
27CFLAGS		= @CFLAGS@
28CPPFLAGS	= @CPPFLAGS@
29CONFIGDIR	= @CONFIGDIR@
30
31SHELL		= @SHELL@
32TCLSH_PROG	= @TCLSH_PROG@
33INSTALL		= @INSTALL@
34INSTALL_PROGRAM = @INSTALL_PROGRAM@
35INSTALL_DATA	= @INSTALL_DATA@
36
37CC 		= @CC@
38CFLAGS_DEFAULT	= @CFLAGS_DEFAULT@
39CFLAGS_WARNING	= @CFLAGS_WARNING@
40SHLIB_CFLAGS	= @SHLIB_CFLAGS@
41SHLIB_LD	= @SHLIB_LD@
42SHLIB_LD_LIBS	= @SHLIB_LD_LIBS@
43TCL_DBGX	= @TCL_DBGX@
44
45# @@ This is not quite right:
46expat_LIB_PATH		= @expat_LIB_PATH@
47TCL_LD_SEARCH_FLAGS	= @TCL_LD_SEARCH_FLAGS@
48LIB_RUNTIME_DIR		= $(expat_LIB_PATH)
49SHLIB_LDFLAGS		= $(TCL_LD_SEARCH_FLAGS)
50
51
52### Data division.
53#
54
55CLEANFILES	= *.o *.obj $(tcldom_LIB_FILE) @CONFIG_CLEANFILES@
56
57OBJEXT		= @OBJEXT@
58
59tcldom_LIB_FILE	= @tcldom_LIB_FILE@
60
61tcldom_OBJECTS = \
62    tcldompro.$(OBJEXT) \
63    tdpExpat.$(OBJEXT) \
64    traversal.$(OBJEXT) \
65    livelist.$(OBJEXT)
66
67expat_LIB_SPEC		= @expat_LIB_SPEC@
68TCL_STUB_LIB_SPEC	= @TCL_STUB_LIB_SPEC@
69
70tcldom_LIBRARIES = \
71    $(expat_LIB_SPEC) \
72    $(TCL_STUB_LIB_SPEC)
73
74### Procedure division.
75#
76.PHONY: default all package clean distclean doc install installdirs test
77.NOEXPORT:
78
79### TEA targets section.
80#
81# DEVIATION: added 'package', 'install-package' targets.
82#
83
84default:	package
85all:		binaries libraries # doc
86package:	$(tcldom_LIB_FILE)
87binaries:	$(tcldom_LIB_FILE)
88libraries:	# N/A
89install:	all install-package # install-doc
90
91### Build stuff section.
92#
93
94.SUFFIXES: .c .@OBJEXT@
95
96.c.@OBJEXT@:
97	$(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
98
99$(tcldom_LIB_FILE): $(tcldom_OBJECTS)
100	-rm -f $(tcldom_LIB_FILE)
101	$(SHLIB_LD) -o $@ $(SHLIB_LDFLAGS) \
102		$(tcldom_OBJECTS) $(tcldom_LIBRARIES) $(SHLIB_LD_LIBS)
103
104### Documentation section.
105#
106
107doc:
108	@echo "make $@: not yet implemented"
109
110### Test stuff section.
111#
112
113TESTFLAGS	= -verbose b
114TESTDIR		= ../tests
115TESTDRIVER	= all.tcl
116
117test: binaries libraries
118	TCLLIBPATH=`pwd` ; export TCLLIBPATH ;  \
119	    (cd $(TESTDIR) ; \
120	     $(TCLSH_PROG) $(TESTDRIVER) $(TESTFLAGS)) 2>&1 | tee test.log
121
122### Install stuff section.
123#
124
125mkinstalldirs = $(SHELL) $(CONFIGDIR)/mkinstalldirs
126installdirs:
127	$(mkinstalldirs)  $(libdir)
128	$(mkinstalldirs)  $(pkglibdir)
129
130install-binaries: binaries
131	$(INSTALL_DATA) $(tcldom_LIB_FILE) $(pkglibdir)
132
133install-libraries:
134	@echo "Nothing to install for $@"
135
136install-doc:
137	@echo "Nothing to install (yet) for $@"
138
139install-package: installdirs package
140	$(INSTALL_DATA) $(tcldom_LIB_FILE) $(pkglibdir)
141	$(INSTALL_DATA) pkgIndex.tcl $(pkglibdir)
142
143
144### Maintain stuff section.
145#
146depend:
147	@echo "Not implemented.  Joe doesn't believe in 'make depend'."
148	@echo "Just run 'make clean' and recompile"
149	@exit 1
150
151### Cleanup section.
152#
153clean::
154	-rm -f $(CLEANFILES)
155
156distclean:: clean
157	-rm -f @CONFIGURE_OUTPUTS@
158
159maintainer-clean:: distclean
160	-rm -f configure
161
162# Also: 'make doc' outputs, others @@
163
164reconfigure:: distclean
165	autoconf
166	sh ./configure
167
168# *EOF*
169