1# Makefile.in --
2#
3#	This file is a Makefile for the QuickTimeTcl Extension.  If it has the name
4#	"Makefile.in" then it is a template for a Makefile;  to generate the
5#	actual Makefile, run "./configure", which is a configuration script
6#	generated by the "autoconf" program (constructs like "@foo@" will get
7#	replaced in the actual Makefile.
8#
9# Copyright (c) 1999 Scriptics Corporation.
10# Copyright (c) 2002-2005 ActiveState Corporation.
11#
12# See the file "license.terms" for information on usage and redistribution
13# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
14#
15# RCS: @(#) $Id: Makefile.in,v 1.63 2007/02/09 19:06:47 hobbs Exp $
16
17#========================================================================
18# Nothing of the variables below this line should need to be changed.
19# Please check the TARGETS section below to make sure the make targets
20# are correct.
21#========================================================================
22
23#========================================================================
24# The names of the source files is defined in the configure script.
25# The object files are used for linking into the final library.
26# This will be used when a dist target is added to the Makefile.
27# It is not important to specify the directory, as long as it is the
28# $(srcdir) or in the generic, win or unix subdirectory.
29#========================================================================
30
31PKG_SOURCES	= @PKG_SOURCES@
32PKG_OBJECTS	= @PKG_OBJECTS@
33
34PKG_STUB_SOURCES = @PKG_STUB_SOURCES@
35PKG_STUB_OBJECTS = @PKG_STUB_OBJECTS@
36
37#========================================================================
38# PKG_TCL_SOURCES identifies Tcl runtime files that are associated with
39# this package that need to be installed, if any.
40#========================================================================
41
42PKG_TCL_SOURCES = @PKG_TCL_SOURCES@
43
44#========================================================================
45# This is a list of public header files to be installed, if any.
46#========================================================================
47
48PKG_HEADERS	= @PKG_HEADERS@
49
50#========================================================================
51# "PKG_LIB_FILE" refers to the library (dynamic or static as per
52# configuration options) composed of the named objects.
53#========================================================================
54
55PKG_LIB_FILE	= @PKG_LIB_FILE@
56PKG_STUB_LIB_FILE = @PKG_STUB_LIB_FILE@
57
58lib_BINARIES	= $(PKG_LIB_FILE)
59BINARIES	= $(lib_BINARIES)
60
61SHELL		= @SHELL@
62
63srcdir		= @srcdir@
64prefix		= @prefix@
65exec_prefix	= @exec_prefix@
66
67bindir		= @bindir@
68libdir		= @libdir@
69includedir	= @includedir@
70datarootdir     = @datarootdir@
71datadir		= @datadir@
72mandir		= @mandir@
73
74DESTDIR		=
75
76PKG_DIR		= $(PACKAGE_NAME)$(PACKAGE_VERSION)
77pkgdatadir	= $(datadir)/$(PKG_DIR)
78pkglibdir	= $(libdir)/$(PKG_DIR)
79pkgincludedir	= $(includedir)/$(PKG_DIR)
80
81top_builddir	= .
82
83INSTALL		= @INSTALL@
84INSTALL_PROGRAM	= @INSTALL_PROGRAM@
85INSTALL_DATA	= @INSTALL_DATA@
86INSTALL_SCRIPT	= @INSTALL_SCRIPT@
87
88PACKAGE_NAME	= @PACKAGE_NAME@
89PACKAGE_VERSION	= @PACKAGE_VERSION@
90CC		= @CC@
91CFLAGS_DEFAULT	= @CFLAGS_DEFAULT@
92CFLAGS_WARNING	= @CFLAGS_WARNING@
93EXEEXT		= @EXEEXT@
94LDFLAGS_DEFAULT	= @LDFLAGS_DEFAULT@
95MAKE_LIB	= @MAKE_LIB@
96MAKE_SHARED_LIB	= @MAKE_SHARED_LIB@
97MAKE_STATIC_LIB	= @MAKE_STATIC_LIB@
98MAKE_STUB_LIB	= @MAKE_STUB_LIB@
99OBJEXT		= @OBJEXT@
100RANLIB		= @RANLIB@
101RANLIB_STUB	= @RANLIB_STUB@
102SHLIB_CFLAGS	= @SHLIB_CFLAGS@
103SHLIB_LD	= @SHLIB_LD@
104SHLIB_LD_LIBS	= @SHLIB_LD_LIBS@
105STLIB_LD	= @STLIB_LD@
106TCL_BIN_DIR	= @TCL_BIN_DIR@
107TCL_SRC_DIR	= @TCL_SRC_DIR@
108TK_BIN_DIR	= @TK_BIN_DIR@
109TK_SRC_DIR	= @TK_SRC_DIR@
110
111#========================================================================
112# TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our
113# package without installing.  The other environment variables allow us
114# to test against an uninstalled Tcl.  Add special env vars that you
115# require for testing here (like TCLX_LIBRARY).
116#========================================================================
117
118EXTRA_PATH	= $(top_builddir):$(TCL_BIN_DIR):$(TK_BIN_DIR)
119TCLLIBPATH	= $(top_builddir)
120TCLSH_ENV	= TCL_LIBRARY=`@CYGPATH@ $(TCL_SRC_DIR)/library` \
121		  @LD_LIBRARY_PATH_VAR@="$(EXTRA_PATH):$(@LD_LIBRARY_PATH_VAR@)" \
122		  PATH="$(EXTRA_PATH):$(PATH)" \
123		  TCLLIBPATH="$(TCLLIBPATH)" \
124		  TK_LIBRARY=`@CYGPATH@ $(TK_SRC_DIR)/library`
125
126TCLSH_PROG	= @TCLSH_PROG@
127TCLSH   	= $(TCLSH_ENV) $(TCLSH_PROG)
128
129WISH_PROG	= @WISH_PROG@
130WISH   	= $(TCLSH_ENV) $(WISH_PROG)
131
132SHARED_BUILD	= @SHARED_BUILD@
133
134INCLUDES	= @PKG_INCLUDES@ @TCL_INCLUDES@ @TK_INCLUDES@ @TK_XINCLUDES@
135
136PKG_CFLAGS	= @PKG_CFLAGS@
137
138DEFS		= @DEFS@ $(PKG_CFLAGS)
139
140CONFIG_CLEAN_FILES = Makefile pkgIndex.tcl
141CLEANFILES	= @CLEANFILES@
142
143CPPFLAGS	= @CPPFLAGS@
144LIBS		= @PKG_LIBS@ @LIBS@
145AR		= @AR@
146CFLAGS		= @CFLAGS@
147COMPILE		= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
148
149#========================================================================
150# Start of user-definable TARGETS section
151#========================================================================
152
153#========================================================================
154# TEA TARGETS.  Please note that the "libraries:" target refers to platform
155# independent files, and the "binaries:" target inclues executable programs and
156# platform-dependent libraries.  Modify these targets so that they install
157# the various pieces of your package.  The make and install rules
158# for the BINARIES that you specified above have already been done.
159#========================================================================
160
161all: binaries libraries
162
163#========================================================================
164# The binaries target builds executable programs, Windows .dll's, unix
165# shared/static libraries, and any other platform-dependent files.
166# The list of targets to build for "binaries:" is specified at the top
167# of the Makefile, in the "BINARIES" variable.
168#========================================================================
169
170binaries: $(BINARIES)
171
172libraries:
173
174#========================================================================
175# Your doc target should differentiate from doc builds (by the developer)
176# and doc installs (see install-doc), which just install the docs on the
177# end user machine when building from source.
178#========================================================================
179
180doc:
181
182install: all install-binaries
183
184install-binaries: binaries install-lib-binaries
185
186#========================================================================
187# This rule installs platform-independent files, such as header files.
188# The list=...; for p in $$list handles the empty list case x-platform.
189#========================================================================
190
191install-libraries: libraries
192	@mkdir -p $(DESTDIR)$(includedir)
193	@echo "Installing header files in $(DESTDIR)$(includedir)"
194	@list='$(PKG_HEADERS)'; for i in $$list; do \
195	    echo "Installing $(srcdir)/$$i" ; \
196	    $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir) ; \
197	done;
198
199#========================================================================
200# Install documentation.  Unix manpages should go in the $(mandir)
201# directory.
202#========================================================================
203
204install-doc: doc
205	@mkdir -p $(DESTDIR)$(mandir)/mann
206	@echo "Installing documentation in $(DESTDIR)$(mandir)"
207	@list='$(srcdir)/doc/*.n'; for i in $$list; do \
208	    echo "Installing $$i"; \
209	    rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \
210	    $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \
211	done
212
213test: binaries libraries
214	$(TCLSH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS)
215
216shell: binaries libraries
217	@$(TCLSH) $(SCRIPT)
218
219gdb:
220	$(TCLSH_ENV) gdb $(TCLSH_PROG) $(SCRIPT)
221
222depend:
223
224#========================================================================
225# $(PKG_LIB_FILE) should be listed as part of the BINARIES variable
226# mentioned above.  That will ensure that this target is built when you
227# run "make binaries".
228#
229# The $(PKG_OBJECTS) objects are created and linked into the final
230# library.  In most cases these object files will correspond to the
231# source files above.
232#========================================================================
233
234$(PKG_LIB_FILE): $(PKG_OBJECTS)
235	-rm -f $(PKG_LIB_FILE)
236	${MAKE_LIB}
237	$(RANLIB) $(PKG_LIB_FILE)
238
239$(PKG_STUB_LIB_FILE): $(PKG_STUB_OBJECTS)
240	-rm -f $(PKG_STUB_LIB_FILE)
241	${MAKE_STUB_LIB}
242	$(RANLIB_STUB) $(PKG_STUB_LIB_FILE)
243
244#========================================================================
245# We need to enumerate the list of .c to .o lines here.
246#
247# In the following lines, $(srcdir) refers to the toplevel directory
248# containing your extension.  If your sources are in a subdirectory,
249# you will have to modify the paths to reflect this:
250#
251# sample.$(OBJEXT): $(srcdir)/generic/sample.c
252# 	$(COMPILE) -c `@CYGPATH@ $(srcdir)/generic/sample.c` -o $@
253#
254# Setting the VPATH variable to a list of paths will cause the makefile
255# to look into these paths when resolving .c to .obj dependencies.
256# As necessary, add $(srcdir):$(srcdir)/compat:....
257#========================================================================
258
259VPATH = $(srcdir):$(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win
260
261.c.@OBJEXT@:
262	$(COMPILE) -c `@CYGPATH@ $<` -o $@
263
264#========================================================================
265# Distribution creation
266# You may need to tweak this target to make it work correctly.
267#========================================================================
268
269#COMPRESS	= tar cvf $(PKG_DIR).tar $(PKG_DIR); compress $(PKG_DIR).tar
270COMPRESS	= gtar zcvf $(PKG_DIR).tar.gz $(PKG_DIR)
271DIST_ROOT	= /tmp/dist
272DIST_DIR	= $(DIST_ROOT)/$(PKG_DIR)
273
274dist-clean:
275	rm -rf $(DIST_DIR) $(DIST_ROOT)/$(PKG_DIR).tar.*
276
277dist: dist-clean
278	mkdir -p $(DIST_DIR)
279	cp -p $(srcdir)/ChangeLog $(srcdir)/README* $(srcdir)/license* \
280		$(srcdir)/aclocal.m4 $(srcdir)/configure $(srcdir)/*.in \
281		$(DIST_DIR)/
282	chmod 664 $(DIST_DIR)/Makefile.in $(DIST_DIR)/aclocal.m4
283	chmod 775 $(DIST_DIR)/configure $(DIST_DIR)/configure.in
284
285	for i in $(srcdir)/*.[ch]; do \
286	    if [ -f $$i ]; then \
287		cp -p $$i $(DIST_DIR)/ ; \
288	    fi; \
289	done;
290
291	mkdir $(DIST_DIR)/tclconfig
292	cp $(srcdir)/tclconfig/install-sh $(srcdir)/tclconfig/tcl.m4 \
293		$(DIST_DIR)/tclconfig/
294	chmod 664 $(DIST_DIR)/tclconfig/tcl.m4
295	chmod +x $(DIST_DIR)/tclconfig/install-sh
296
297	list='demos doc generic library mac tests unix win'; \
298	for p in $$list; do \
299	    if test -d $(srcdir)/$$p ; then \
300		mkdir $(DIST_DIR)/$$p; \
301		cp -p $(srcdir)/$$p/*.* $(DIST_DIR)/$$p/; \
302	    fi; \
303	done
304
305	(cd $(DIST_ROOT); $(COMPRESS);)
306
307#========================================================================
308# End of user-definable section
309#========================================================================
310
311#========================================================================
312# Don't modify the file to clean here.  Instead, set the "CLEANFILES"
313# variable in configure.in
314#========================================================================
315
316clean:  
317	-test -z "$(BINARIES)" || rm -f $(BINARIES)
318	-rm -f *.$(OBJEXT) core *.core
319	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
320
321distclean: clean
322	-rm -f *.tab.c
323	-rm -f $(CONFIG_CLEAN_FILES)
324	-rm -f config.cache config.log config.status
325
326#========================================================================
327# Install binary object libraries.  On Windows this includes both .dll and
328# .lib files.  Because the .lib files are not explicitly listed anywhere,
329# we need to deduce their existence from the .dll file of the same name.
330# Library files go into the lib directory.
331# In addition, this will generate the pkgIndex.tcl
332# file in the install location (assuming it can find a usable tclsh shell)
333#
334# You should not have to modify this target.
335#========================================================================
336
337install-lib-binaries: binaries
338	@mkdir -p $(DESTDIR)$(pkglibdir)
339	@list='$(lib_BINARIES)'; for p in $$list; do \
340	  if test -f $$p; then \
341	    echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
342	    $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p; \
343	    stub=`echo $$p|sed -e "s/.*\(stub\).*/\1/"`; \
344	    if test "x$$stub" = "xstub"; then \
345		echo " $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p"; \
346		$(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p; \
347	    else \
348		echo " $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p"; \
349		$(RANLIB) $(DESTDIR)$(pkglibdir)/$$p; \
350	    fi; \
351	    ext=`echo $$p|sed -e "s/.*\.//"`; \
352	    if test "x$$ext" = "xdll"; then \
353		lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \
354		if test -f $$lib; then \
355		    echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \
356	            $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib; \
357		fi; \
358	    fi; \
359	  fi; \
360	done
361	@list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
362	  if test -f $(srcdir)/$$p; then \
363	    destp=`basename $$p`; \
364	    echo " Install $$destp $(DESTDIR)$(pkglibdir)/$$destp"; \
365	    $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/$$destp; \
366	  fi; \
367	done
368	@if test "x$(SHARED_BUILD)" = "x1"; then \
369	    echo " Install pkgIndex.tcl $(DESTDIR)$(pkglibdir)"; \
370	    $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir); \
371	fi
372
373#========================================================================
374# Install binary executables (e.g. .exe files and dependent .dll files)
375# This is for files that must go in the bin directory (located next to
376# wish and tclsh), like dependent .dll files on Windows.
377#
378# You should not have to modify this target, except to define bin_BINARIES
379# above if necessary.
380#========================================================================
381
382install-bin-binaries: binaries
383	@mkdir -p $(DESTDIR)$(bindir)
384	@list='$(bin_BINARIES)'; for p in $$list; do \
385	  if test -f $$p; then \
386	    echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p"; \
387	    $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p; \
388	  fi; \
389	done
390
391.SUFFIXES: .c .$(OBJEXT)
392
393Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
394	cd $(top_builddir) \
395	  && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
396
397uninstall-binaries:
398	list='$(lib_BINARIES)'; for p in $$list; do \
399	  rm -f $(DESTDIR)$(pkglibdir)/$$p; \
400	done
401	list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
402	  p=`basename $$p`; \
403	  rm -f $(DESTDIR)$(pkglibdir)/$$p; \
404	done
405	list='$(bin_BINARIES)'; for p in $$list; do \
406	  rm -f $(DESTDIR)$(bindir)/$$p; \
407	done
408
409.PHONY: all binaries clean depend distclean doc install libraries test
410
411# Tell versions [3.59,3.63) of GNU make to not export all variables.
412# Otherwise a system limit (for SysV at least) may be exceeded.
413.NOEXPORT:
414