# Makefile.in generated automatically by automake 1.4f from Makefile.am.

# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.



SHELL = /bin/sh

srcdir = ../../../pfe
top_srcdir = ../../../pfe
VPATH = ../../../pfe
prefix = /usr/local
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${sysconfdir}/default
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${datadir}/man
includedir = ${prefix}/include
oldincludedir = /usr/include
pkgdatadir = $(datadir)/pfe
pkglibdir = $(libdir)/pfe
pkgincludedir = $(includedir)/pfe
top_builddir = .

ACLOCAL = ${SHELL} /usr/src/cvs/pfe-tek/missing --run aclocal
AUTOCONF = ${SHELL} /usr/src/cvs/pfe-tek/missing --run autoconf
AUTOMAKE = ${SHELL} /usr/src/cvs/pfe-tek/missing --run automake
AUTOHEADER = ${SHELL} /usr/src/cvs/pfe-tek/missing --run autoheader

INSTALL = /usr/bin/ginstall -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL}
INSTALL_HEADER = $(INSTALL_DATA)
transform = s,x,x,
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = 
build_triplet = i586-pc-linux-gnu
host_alias = 
host_triplet = i586-pc-linux-gnu
target_alias = 
target_triplet = i586-pc-linux-gnu
AMTAR = ${SHELL} /usr/src/cvs/pfe-tek/missing --run tar
AS = as
AWK = gawk
CC = gcc
DEPDIR = .deps
DLLTOOL = dlltool
ECHO = echo
EXEEXT = 
GENERIC_CONFIG = pfe-config
INSTALL_STRIP_PROGRAM = ${SHELL} `CDPATH=: && cd ../../../pfe/.. && pwd`/install-sh -c -s
LDFLAGS =  -W,--warn-common
LIBTOOL = $(SHELL) $(top_builddir)/libtool --silent
LN_S = ln -s
MAINT = #
OBJDUMP = objdump
OBJEXT = o
PACKAGE = pfe
RANLIB = ranlib
RELEASEINFO = -release 0
RESOLVES =  # 
STRIP = strip
VAR_WITH = @VAR_WITH@
VAR_WITHDEF = @VAR_WITHDEF@
VAR_WITHOUT = @VAR_WITHOUT@
VAR_WITHVAL = @VAR_WITHVAL@
VERSION = 0.32.29
VERSIONINFO = -version-info 32:29
_am_include = include
_am_quote = 
configurecall = ../../../pfe/configure 
install_sh = ../../../pfe/../install-sh
libpfe_LIBADD = 
libpfe_VERSION = -release 0 -version-info 32:29
DEBUG = #  -W -Wshadow
GCC_WARN = 
LIB_TERM = -lncurses

OPTIM =     -DNDEBUG -O1
PFE_DEFS =   
USER_CONFIG = 
WITH_CFLAGS = 

AUTOMAKE_OPTIONS = 1.4e foreign
AUTOTOOL_VERSION = autoconf-2.52 automake-1.4f libtool-1.4

# OPT_FIG= #  # now in config.h 
SRC_K12 = ## # term-k12.c main-k12.c
OPT_K12 = ## # -DSTATIC_MAIN
HDR_K12 = ## # term-k12.h main-k12.h

OPT_FLOAT = # -DP4_NO_FP -msoft-float
SRC_TERM = term-def.c

# ... what about _missing.c ? only _missing.h needed in nonembedded stuff?
pfe_sources = \
	core-sub.c core-ext.c core-mix.c \
	block-sub.c block-ext.c block-mix.c \
	cdecl-ext.c dict-sub.c \
	header-sub.c header-ext.c \
	double-sub.c double-ext.c double-mix.c \
	exception-sub.c exception-ext.c \
	engine-sub.c environ-ext.c option-ext.c facility-ext.c \
	file-ext.c file-sub.c file-mix.c \
	locals-ext.c memory-alloc-ext.c pfe-words.c \
	tools-sub.c tools-ext.c tools-mix.c \
	search-order-ext.c string-ext.c \
	main-sub.c memory-sub.c debug-ext.c lined.c \
	forth-83-ext.c forth-usual-ext.c misc-ext.c posix-ext.c \
	shell-os-ext.c  signals-ext.c \
	system-ext.c useful-ext.c utils-sub.c your-ext.c \
	term-sub.c term-ext.c $(SRC_TERM) \
        dl-def.c dl-ext.c dl-internal.c \
	with-spy.c version-sub.c


# these two get compiled by dl-internal.c when appropriate
SRC_CONTRIB = gforth-ext.c dstrings-ext.c

EXTRA_pfe_SOURCES = $(SRC_CONTRIB) main-k12.c \
	term-curses.c term-dj.c term-emx.c term-k12.c term-wat.c term-lib.c \
	dl-hpux.c dl-non.c dl-vxworks.c dl-dlfcn.c


noinst_pfe_headers = _missing.h _nonansi.h
pkginc_pfe_headers = \
	config.h def-comp.h def-config.h def-const.h def-macro.h \
	def-paths.h def-regs.h def-types.h def-words.h def-xtra.h \
	def-pth.h incl-ext.h incl-sub.h incl-sup.h pfe-base.h \
	lined.h logging.h pfe.h term-sub.h $(HDR_K12) \
	dstrings-ext.h 

inc_pfe_headers = pfe-config.h pfe-target.h
# the generated headers...
pkginc_gen_headers = double-sub.h \
	main-sub.h engine-sub.h \
	block-sub.h block-ext.h block-mix.h cdecl-ext.h \
	core-sub.h core-ext.h core-mix.h \
	double-ext.h double-mix.h \
	debug-ext.h dict-sub.h \
	exception-sub.h exception-ext.h \
	environ-ext.h facility-ext.h \
	file-ext.h file-mix.h file-sub.h \
	forth-83-ext.h forth-usual-ext.h \
	header-sub.h header-ext.h \
	locals-ext.h memory-alloc-ext.h \
	misc-ext.h option-ext.h \
	posix-ext.h search-order-ext.h \
	shell-os-ext.h signals-ext.h \
	string-ext.h system-ext.h \
	tools-sub.h tools-ext.h tools-mix.h term-ext.h \
	useful-ext.h your-ext.h \
	memory-sub.h utils-sub.h version-sub.h \
	floating-ext.h floating-mix.h \
	struct-ext.h edit-ext.h \
	help-ext.h gforth-ext.h \
	smart-go-ext.h 


CCOPTS = -pipe -Wwrite-strings -Wstrict-prototypes
INCLUDES = $(OPT_FLOAT) $(OPTIM) $(DEBUG) $(OPT_FIG) $(OPT_K12) $(PFE_DEFS) \
 $(CCOPTS) $(OPT_EDIT) $(GCC_WARN) $(WITH_CFLAGS) $(USER_CONFIG)

DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir)/..            # do not do -I$(srcdir) !!

bin_PROGRAMS = pfe
pfe_SOURCES = main-stdc.c
pfe_LDADD = libpfe.la  #  -lpfe
pfe_LDFLAGS = -export-dynamic

lib_LTLIBRARIES = libpfe.la # libpfemodule.la
libpfe_la_SOURCES = $(pfe_sources)
libpfe_la_LDFLAGS = -export-dynamic -module -release 0 -version-info 32:29 \
					# libpfemodule.la

libpfe_la_LIBADD =  $(LIB_TERM)

libpfemodule_la_LDFLAGS = -export-dynamic -module -release 0 -version-info 32:29
libpfemodule_la_LIBADD =   #  -lpfe
libpfemodule_la_SOURCES = edit-ext.c toolbelt-ext.c gforth-ext.c \
             struct-ext.c structs-ext.c module-ext.c dstrings-ext.c \
	     floating-ext.c help-ext.c


MODULELIST = edit.la toolbelt.la gforth.la help.la smart-go.la \
             struct.la module.la dstrings.la floating.la # structs.la 

pkglib_LTLIBRARIES =  $(MODULELIST)
EXTRA_LTLIBRARIES = lib-dummy-with-modules.la
pkginclude_HEADERS = $(pkginc_pfe_headers) $(pkginc_gen_headers)
include_HEADERS = $(inc_pfe_headers)

edit_la_SOURCES = edit-dll.c edit-ext.c
edit_la_LDFLAGS = -export-dynamic -module -avoid-version
edit_la_LIBADD =   #  -lpfe

toolbelt_la_SOURCES = toolbelt-dll.c toolbelt-ext.c
toolbelt_la_LDFLAGS = -export-dynamic -module -avoid-version
toolbelt_la_LIBADD =   #  -lpfe

gforth_la_SOURCES = gforth-dll.c gforth-ext.c
gforth_la_LDFLAGS = -export-dynamic -module -avoid-version
gforth_la_LIBADD =   #  -lpfe

struct_la_SOURCES = struct-dll.c struct-ext.c
struct_la_LDFLAGS = -export-dynamic -module -avoid-version
struct_la_LIBADD =   #  -lpfe


# structs_la_SOURCES = structs-dll.c structs-ext.c 
# structs_la_LDFLAGS = -export-dynamic -module -avoid-version
# structs_la_LIBADD =   #  struct.la -lpfe
# $(srcdir)/structs-dll.c : $(srcdir)/module-dll.c
#	sed s/module/structs/ $< > $@
dstrings_la_SOURCES = dstrings-dll.c dstrings-ext.c
dstrings_la_LDFLAGS = -export-dynamic -module -avoid-version
dstrings_la_LIBADD =   #  -lpfe

floating_la_SOURCES = floating-dll.c floating-mix.c floating-ext.c
floating_la_LDFLAGS = -export-dynamic -module -avoid-version
floating_la_LIBADD =   #  -lpfe -lm

smart_go_la_SOURCES = smart-go-dll.c smart-go-ext.c
smart_go_la_LDFLAGS = -export-dynamic -module -avoid-version
smart_go_la_LIBADD =   #  -lpfe

help_la_SOURCES = help-dll.c help-ext.c
help_la_LDFLAGS = -export-dynamic -module -avoid-version
help_la_LIBADD =   #  -lpfe

module_la_SOURCES = module-dll.c module-ext.c
module_la_LDFLAGS = -export-dynamic -module -avoid-version
module_la_LIBADD =   #  -lpfe

# the original module-dll.c has no source-sed-rule
EXTRA_HEADERS = 

DOCDIR = $(srcdir)/../doc
TESTDIR = $(srcdir)/../test
LIB4DIR = $(srcdir)/../lib

# tests mean to check if the latest changes to the package made for
# some kind of difference in behaviour with respect to some checks.
# if this target is run for the first time (virgin call), it will 
# simply create local reference output, i.e. it will always succeed 
DIFFFLAGS = -bB
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =
LTLIBRARIES = $(lib_LTLIBRARIES) $(pkglib_LTLIBRARIES)

dstrings_la_DEPENDENCIES =
am_dstrings_la_OBJECTS = dstrings-dll.lo dstrings-ext.lo
dstrings_la_OBJECTS = $(am_dstrings_la_OBJECTS)
edit_la_DEPENDENCIES =
am_edit_la_OBJECTS = edit-dll.lo edit-ext.lo
edit_la_OBJECTS = $(am_edit_la_OBJECTS)
floating_la_DEPENDENCIES =
am_floating_la_OBJECTS = floating-dll.lo floating-mix.lo floating-ext.lo
floating_la_OBJECTS = $(am_floating_la_OBJECTS)
gforth_la_DEPENDENCIES =
am_gforth_la_OBJECTS = gforth-dll.lo gforth-ext.lo
gforth_la_OBJECTS = $(am_gforth_la_OBJECTS)
help_la_DEPENDENCIES =
am_help_la_OBJECTS = help-dll.lo help-ext.lo
help_la_OBJECTS = $(am_help_la_OBJECTS)
lib_dummy_with_modules_la_LDFLAGS =
lib_dummy_with_modules_la_LIBADD =
lib_dummy_with_modules_la_SOURCES = lib-dummy-with-modules.la.c
lib_dummy_with_modules_la_OBJECTS = lib-dummy-with-modules.la.lo
libpfe_la_DEPENDENCIES =
am_libpfe_la_OBJECTS = core-sub.lo core-ext.lo core-mix.lo block-sub.lo \
	block-ext.lo block-mix.lo cdecl-ext.lo dict-sub.lo \
	header-sub.lo header-ext.lo double-sub.lo double-ext.lo \
	double-mix.lo exception-sub.lo exception-ext.lo engine-sub.lo \
	environ-ext.lo option-ext.lo facility-ext.lo file-ext.lo \
	file-sub.lo file-mix.lo locals-ext.lo memory-alloc-ext.lo \
	pfe-words.lo tools-sub.lo tools-ext.lo tools-mix.lo \
	search-order-ext.lo string-ext.lo main-sub.lo memory-sub.lo \
	debug-ext.lo lined.lo forth-83-ext.lo forth-usual-ext.lo \
	misc-ext.lo posix-ext.lo shell-os-ext.lo signals-ext.lo \
	system-ext.lo useful-ext.lo utils-sub.lo your-ext.lo \
	term-sub.lo term-ext.lo term-def.lo dl-def.lo dl-ext.lo \
	dl-internal.lo with-spy.lo version-sub.lo
libpfe_la_OBJECTS = $(am_libpfe_la_OBJECTS)
libpfemodule_la_DEPENDENCIES =
am_libpfemodule_la_OBJECTS = edit-ext.lo toolbelt-ext.lo gforth-ext.lo \
	struct-ext.lo structs-ext.lo module-ext.lo dstrings-ext.lo \
	floating-ext.lo help-ext.lo
libpfemodule_la_OBJECTS = $(am_libpfemodule_la_OBJECTS)
module_la_DEPENDENCIES =
am_module_la_OBJECTS = module-dll.lo module-ext.lo
module_la_OBJECTS = $(am_module_la_OBJECTS)
smart_go_la_DEPENDENCIES =
am_smart_go_la_OBJECTS = smart-go-dll.lo smart-go-ext.lo
smart_go_la_OBJECTS = $(am_smart_go_la_OBJECTS)
struct_la_DEPENDENCIES =
am_struct_la_OBJECTS = struct-dll.lo struct-ext.lo
struct_la_OBJECTS = $(am_struct_la_OBJECTS)
toolbelt_la_DEPENDENCIES =
am_toolbelt_la_OBJECTS = toolbelt-dll.lo toolbelt-ext.lo
toolbelt_la_OBJECTS = $(am_toolbelt_la_OBJECTS)
bin_PROGRAMS = pfe$(EXEEXT)
PROGRAMS = $(bin_PROGRAMS)

am_pfe_OBJECTS = main-stdc.$(OBJEXT)
pfe_OBJECTS = $(am_pfe_OBJECTS)
pfe_DEPENDENCIES = libpfe.la
DEFAULT_INCLUDES =  -I. -I$(srcdir) -I.
CPPFLAGS = 
LDFLAGS =  -W,--warn-common
LIBS =  -ldl 
depcomp = $(SHELL) $(top_srcdir)/../depcomp
DEP_FILES = $(DEPDIR)/block-ext.Plo $(DEPDIR)/block-mix.Plo \
	$(DEPDIR)/block-sub.Plo $(DEPDIR)/cdecl-ext.Plo \
	$(DEPDIR)/core-ext.Plo $(DEPDIR)/core-mix.Plo \
	$(DEPDIR)/core-sub.Plo $(DEPDIR)/debug-ext.Plo \
	$(DEPDIR)/dict-sub.Plo $(DEPDIR)/dl-def.Plo \
	$(DEPDIR)/dl-dlfcn.Po $(DEPDIR)/dl-ext.Plo \
	$(DEPDIR)/dl-hpux.Po $(DEPDIR)/dl-internal.Plo \
	$(DEPDIR)/dl-non.Po $(DEPDIR)/dl-vxworks.Po \
	$(DEPDIR)/double-ext.Plo $(DEPDIR)/double-mix.Plo \
	$(DEPDIR)/double-sub.Plo $(DEPDIR)/dstrings-dll.Plo \
	$(DEPDIR)/dstrings-ext.Plo \
	$(DEPDIR)/dstrings-ext.Po $(DEPDIR)/edit-dll.Plo \
	$(DEPDIR)/edit-ext.Plo $(DEPDIR)/engine-sub.Plo \
	$(DEPDIR)/environ-ext.Plo \
	$(DEPDIR)/exception-ext.Plo \
	$(DEPDIR)/exception-sub.Plo \
	$(DEPDIR)/facility-ext.Plo $(DEPDIR)/file-ext.Plo \
	$(DEPDIR)/file-mix.Plo $(DEPDIR)/file-sub.Plo \
	$(DEPDIR)/floating-dll.Plo \
	$(DEPDIR)/floating-ext.Plo \
	$(DEPDIR)/floating-mix.Plo \
	$(DEPDIR)/forth-83-ext.Plo \
	$(DEPDIR)/forth-usual-ext.Plo \
	$(DEPDIR)/gforth-dll.Plo $(DEPDIR)/gforth-ext.Plo \
	$(DEPDIR)/gforth-ext.Po $(DEPDIR)/header-ext.Plo \
	$(DEPDIR)/header-sub.Plo $(DEPDIR)/help-dll.Plo \
	$(DEPDIR)/help-ext.Plo \
	$(DEPDIR)/lib-dummy-with-modules.la.Plo \
	$(DEPDIR)/lined.Plo $(DEPDIR)/locals-ext.Plo \
	$(DEPDIR)/main-k12.Po $(DEPDIR)/main-stdc.Po \
	$(DEPDIR)/main-sub.Plo \
	$(DEPDIR)/memory-alloc-ext.Plo \
	$(DEPDIR)/memory-sub.Plo $(DEPDIR)/misc-ext.Plo \
	$(DEPDIR)/module-dll.Plo $(DEPDIR)/module-ext.Plo \
	$(DEPDIR)/option-ext.Plo $(DEPDIR)/pfe-words.Plo \
	$(DEPDIR)/posix-ext.Plo \
	$(DEPDIR)/search-order-ext.Plo \
	$(DEPDIR)/shell-os-ext.Plo \
	$(DEPDIR)/signals-ext.Plo \
	$(DEPDIR)/smart-go-dll.Plo \
	$(DEPDIR)/smart-go-ext.Plo $(DEPDIR)/string-ext.Plo \
	$(DEPDIR)/struct-dll.Plo $(DEPDIR)/struct-ext.Plo \
	$(DEPDIR)/structs-ext.Plo $(DEPDIR)/system-ext.Plo \
	$(DEPDIR)/term-curses.Po $(DEPDIR)/term-def.Plo \
	$(DEPDIR)/term-dj.Po $(DEPDIR)/term-emx.Po \
	$(DEPDIR)/term-ext.Plo $(DEPDIR)/term-k12.Po \
	$(DEPDIR)/term-lib.Po $(DEPDIR)/term-sub.Plo \
	$(DEPDIR)/term-wat.Po $(DEPDIR)/toolbelt-dll.Plo \
	$(DEPDIR)/toolbelt-ext.Plo $(DEPDIR)/tools-ext.Plo \
	$(DEPDIR)/tools-mix.Plo $(DEPDIR)/tools-sub.Plo \
	$(DEPDIR)/useful-ext.Plo $(DEPDIR)/utils-sub.Plo \
	$(DEPDIR)/version-sub.Plo $(DEPDIR)/with-spy.Plo \
	$(DEPDIR)/your-ext.Plo
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
	$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
	$(AM_LDFLAGS) $(LDFLAGS) -o $@
CFLAGS =  -Wall -Wall  -fomit-frame-pointer -D_OMIT_FRAME_POINTER 
DIST_SOURCES = $(dstrings_la_SOURCES) $(edit_la_SOURCES) \
	$(floating_la_SOURCES) $(gforth_la_SOURCES) $(help_la_SOURCES) \
	lib-dummy-with-modules.la.c $(libpfe_la_SOURCES) \
	$(libpfemodule_la_SOURCES) $(module_la_SOURCES) \
	$(smart_go_la_SOURCES) $(struct_la_SOURCES) \
	$(toolbelt_la_SOURCES) $(pfe_SOURCES) $(EXTRA_pfe_SOURCES)
HEADERS = $(include_HEADERS) $(pkginclude_HEADERS)

DIST_COMMON = $(include_HEADERS) $(pkginclude_HEADERS) ../config.guess \
	../config.sub ../depcomp ../install-sh ../ltmain.sh ../missing \
	../mkinstalldirs ./stamp-h.in Makefile.am Makefile.in \
	acconfig.h aclocal.m4 config.h.in configure configure.ac
SOURCES = $(dstrings_la_SOURCES) $(edit_la_SOURCES) $(floating_la_SOURCES) $(gforth_la_SOURCES) $(help_la_SOURCES) lib-dummy-with-modules.la.c $(libpfe_la_SOURCES) $(libpfemodule_la_SOURCES) $(module_la_SOURCES) $(smart_go_la_SOURCES) $(struct_la_SOURCES) $(toolbelt_la_SOURCES) $(pfe_SOURCES) $(EXTRA_pfe_SOURCES)

all: config.h
	$(MAKE) $(AM_MAKEFLAGS) all-am

.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
$(srcdir)/Makefile.in: # Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
	cd $(top_srcdir) && \
	  $(AUTOMAKE) --foreign  Makefile
Makefile: # $(srcdir)/Makefile.in  $(top_builddir)/config.status
	cd $(top_builddir) && \
	  CONFIG_HEADERS= CONFIG_LINKS= \
	  CONFIG_FILES=$@ $(SHELL) ./config.status
$(srcdir)/configure: # $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
	cd $(srcdir) && $(AUTOCONF)

$(ACLOCAL_M4): # configure.ac 
	cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
	@rm -f stamp-h stamp-hT
	@echo timestamp > stamp-hT 2> /dev/null
	cd $(top_builddir) \
	  && CONFIG_FILES= CONFIG_HEADERS=config.h \
	     $(SHELL) ./config.status
	@mv stamp-hT stamp-h
$(srcdir)/config.h.in: # $(srcdir)/./stamp-h.in
	@if test ! -f $@; then \
		rm -f $(srcdir)/./stamp-h.in; \
		$(MAKE) $(srcdir)/./stamp-h.in; \
	else :; fi
$(srcdir)/./stamp-h.in: $(top_srcdir)/configure.ac $(ACLOCAL_M4) $(top_srcdir)/acconfig.h
	@rm -f $(srcdir)/./stamp-h.in $(srcdir)/./stamp-h.inT
	@echo timestamp > $(srcdir)/./stamp-h.inT 2> /dev/null
	cd $(top_srcdir) && $(AUTOHEADER)
	@mv $(srcdir)/./stamp-h.inT $(srcdir)/./stamp-h.in

distclean-hdr:
	-rm -f config.h
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(libdir)
	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
	  if test -f $$p; then \
	    echo " $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$p"; \
	    $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$p; \
	  else :; fi; \
	done

uninstall-libLTLIBRARIES:
	@$(NORMAL_UNINSTALL)
	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
	  echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p"; \
	  $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
	done

clean-libLTLIBRARIES:
	-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
	@list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
	  if test -f $$p; then \
	    echo " $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
	    $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(pkglibdir)/$$p; \
	  else :; fi; \
	done

uninstall-pkglibLTLIBRARIES:
	@$(NORMAL_UNINSTALL)
	@list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
	  echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(pkglibdir)/$$p"; \
	  $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(pkglibdir)/$$p; \
	done

clean-pkglibLTLIBRARIES:
	-test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES)
dstrings.la: $(dstrings_la_OBJECTS) $(dstrings_la_DEPENDENCIES)
	$(LINK) -rpath $(pkglibdir) $(dstrings_la_LDFLAGS) $(dstrings_la_OBJECTS) $(dstrings_la_LIBADD) $(LIBS)
edit.la: $(edit_la_OBJECTS) $(edit_la_DEPENDENCIES)
	$(LINK) -rpath $(pkglibdir) $(edit_la_LDFLAGS) $(edit_la_OBJECTS) $(edit_la_LIBADD) $(LIBS)
floating.la: $(floating_la_OBJECTS) $(floating_la_DEPENDENCIES)
	$(LINK) -rpath $(pkglibdir) $(floating_la_LDFLAGS) $(floating_la_OBJECTS) $(floating_la_LIBADD) $(LIBS)
gforth.la: $(gforth_la_OBJECTS) $(gforth_la_DEPENDENCIES)
	$(LINK) -rpath $(pkglibdir) $(gforth_la_LDFLAGS) $(gforth_la_OBJECTS) $(gforth_la_LIBADD) $(LIBS)
help.la: $(help_la_OBJECTS) $(help_la_DEPENDENCIES)
	$(LINK) -rpath $(pkglibdir) $(help_la_LDFLAGS) $(help_la_OBJECTS) $(help_la_LIBADD) $(LIBS)
lib-dummy-with-modules.la: $(lib_dummy_with_modules_la_OBJECTS) $(lib_dummy_with_modules_la_DEPENDENCIES)
	$(LINK)  $(lib_dummy_with_modules_la_LDFLAGS) $(lib_dummy_with_modules_la_OBJECTS) $(lib_dummy_with_modules_la_LIBADD) $(LIBS)
libpfe.la: $(libpfe_la_OBJECTS) $(libpfe_la_DEPENDENCIES)
	$(LINK) -rpath $(libdir) $(libpfe_la_LDFLAGS) $(libpfe_la_OBJECTS) $(libpfe_la_LIBADD) $(LIBS)
libpfemodule.la: $(libpfemodule_la_OBJECTS) $(libpfemodule_la_DEPENDENCIES)
	$(LINK) -rpath $(libdir) $(libpfemodule_la_LDFLAGS) $(libpfemodule_la_OBJECTS) $(libpfemodule_la_LIBADD) $(LIBS)
module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES)
	$(LINK) -rpath $(pkglibdir) $(module_la_LDFLAGS) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS)
smart-go.la: $(smart_go_la_OBJECTS) $(smart_go_la_DEPENDENCIES)
	$(LINK) -rpath $(pkglibdir) $(smart_go_la_LDFLAGS) $(smart_go_la_OBJECTS) $(smart_go_la_LIBADD) $(LIBS)
struct.la: $(struct_la_OBJECTS) $(struct_la_DEPENDENCIES)
	$(LINK) -rpath $(pkglibdir) $(struct_la_LDFLAGS) $(struct_la_OBJECTS) $(struct_la_LIBADD) $(LIBS)
toolbelt.la: $(toolbelt_la_OBJECTS) $(toolbelt_la_DEPENDENCIES)
	$(LINK) -rpath $(pkglibdir) $(toolbelt_la_LDFLAGS) $(toolbelt_la_OBJECTS) $(toolbelt_la_LIBADD) $(LIBS)
install-binPROGRAMS: $(bin_PROGRAMS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(bindir)
	@list='$(bin_PROGRAMS)'; for p in $$list; do \
	  if test -f $$p; then \
	    f=`echo $$p|sed 's/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$f"; \
	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$f; \
	  else :; fi; \
	done

uninstall-binPROGRAMS:
	@$(NORMAL_UNINSTALL)
	@list='$(bin_PROGRAMS)'; for p in $$list; do \
	  f=`echo $$p|sed 's/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
	  echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
	  rm -f $(DESTDIR)$(bindir)/$$f; \
	done

clean-binPROGRAMS:
	-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
pfe$(EXEEXT): $(pfe_OBJECTS) $(pfe_DEPENDENCIES)
	@rm -f pfe$(EXEEXT)
	$(LINK) $(pfe_LDFLAGS) $(pfe_OBJECTS) $(pfe_LDADD) $(LIBS)

mostlyclean-compile:
	-rm -f *.$(OBJEXT) core *.core

distclean-compile:
	-rm -f *.tab.c

mostlyclean-libtool:
	-rm -f *.lo

clean-libtool:
	-rm -rf .libs _libs

distclean-libtool:
	-rm -f libtool

include $(DEPDIR)/block-ext.Plo
include $(DEPDIR)/block-mix.Plo
include $(DEPDIR)/block-sub.Plo
include $(DEPDIR)/cdecl-ext.Plo
include $(DEPDIR)/core-ext.Plo
include $(DEPDIR)/core-mix.Plo
include $(DEPDIR)/core-sub.Plo
include $(DEPDIR)/debug-ext.Plo
include $(DEPDIR)/dict-sub.Plo
include $(DEPDIR)/dl-def.Plo
include $(DEPDIR)/dl-dlfcn.Po
include $(DEPDIR)/dl-ext.Plo
include $(DEPDIR)/dl-hpux.Po
include $(DEPDIR)/dl-internal.Plo
include $(DEPDIR)/dl-non.Po
include $(DEPDIR)/dl-vxworks.Po
include $(DEPDIR)/double-ext.Plo
include $(DEPDIR)/double-mix.Plo
include $(DEPDIR)/double-sub.Plo
include $(DEPDIR)/dstrings-dll.Plo
include $(DEPDIR)/dstrings-ext.Plo
include $(DEPDIR)/dstrings-ext.Po
include $(DEPDIR)/edit-dll.Plo
include $(DEPDIR)/edit-ext.Plo
include $(DEPDIR)/engine-sub.Plo
include $(DEPDIR)/environ-ext.Plo
include $(DEPDIR)/exception-ext.Plo
include $(DEPDIR)/exception-sub.Plo
include $(DEPDIR)/facility-ext.Plo
include $(DEPDIR)/file-ext.Plo
include $(DEPDIR)/file-mix.Plo
include $(DEPDIR)/file-sub.Plo
include $(DEPDIR)/floating-dll.Plo
include $(DEPDIR)/floating-ext.Plo
include $(DEPDIR)/floating-mix.Plo
include $(DEPDIR)/forth-83-ext.Plo
include $(DEPDIR)/forth-usual-ext.Plo
include $(DEPDIR)/gforth-dll.Plo
include $(DEPDIR)/gforth-ext.Plo
include $(DEPDIR)/gforth-ext.Po
include $(DEPDIR)/header-ext.Plo
include $(DEPDIR)/header-sub.Plo
include $(DEPDIR)/help-dll.Plo
include $(DEPDIR)/help-ext.Plo
include $(DEPDIR)/lib-dummy-with-modules.la.Plo
include $(DEPDIR)/lined.Plo
include $(DEPDIR)/locals-ext.Plo
include $(DEPDIR)/main-k12.Po
include $(DEPDIR)/main-stdc.Po
include $(DEPDIR)/main-sub.Plo
include $(DEPDIR)/memory-alloc-ext.Plo
include $(DEPDIR)/memory-sub.Plo
include $(DEPDIR)/misc-ext.Plo
include $(DEPDIR)/module-dll.Plo
include $(DEPDIR)/module-ext.Plo
include $(DEPDIR)/option-ext.Plo
include $(DEPDIR)/pfe-words.Plo
include $(DEPDIR)/posix-ext.Plo
include $(DEPDIR)/search-order-ext.Plo
include $(DEPDIR)/shell-os-ext.Plo
include $(DEPDIR)/signals-ext.Plo
include $(DEPDIR)/smart-go-dll.Plo
include $(DEPDIR)/smart-go-ext.Plo
include $(DEPDIR)/string-ext.Plo
include $(DEPDIR)/struct-dll.Plo
include $(DEPDIR)/struct-ext.Plo
include $(DEPDIR)/structs-ext.Plo
include $(DEPDIR)/system-ext.Plo
include $(DEPDIR)/term-curses.Po
include $(DEPDIR)/term-def.Plo
include $(DEPDIR)/term-dj.Po
include $(DEPDIR)/term-emx.Po
include $(DEPDIR)/term-ext.Plo
include $(DEPDIR)/term-k12.Po
include $(DEPDIR)/term-lib.Po
include $(DEPDIR)/term-sub.Plo
include $(DEPDIR)/term-wat.Po
include $(DEPDIR)/toolbelt-dll.Plo
include $(DEPDIR)/toolbelt-ext.Plo
include $(DEPDIR)/tools-ext.Plo
include $(DEPDIR)/tools-mix.Plo
include $(DEPDIR)/tools-sub.Plo
include $(DEPDIR)/useful-ext.Plo
include $(DEPDIR)/utils-sub.Plo
include $(DEPDIR)/version-sub.Plo
include $(DEPDIR)/with-spy.Plo
include $(DEPDIR)/your-ext.Plo

distclean-depend:
	-rm -rf $(DEPDIR)

.c.o:
	source='$<' object='$@' libtool=no \
	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
	$(CCDEPMODE) $(depcomp) \
	$(COMPILE) -c `test -f $< || echo '$(srcdir)/'`$<

.c.obj:
	source='$<' object='$@' libtool=no \
	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
	$(CCDEPMODE) $(depcomp) \
	$(COMPILE) -c `cygpath -w $<`

.c.lo:
	source='$<' object='$@' libtool=yes \
	depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' \
	$(CCDEPMODE) $(depcomp) \
	$(LTCOMPILE) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
CCDEPMODE = depmode=gcc
uninstall-info-am:
install-includeHEADERS: $(include_HEADERS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(includedir)
	@list='$(include_HEADERS)'; for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
	  echo " $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(includedir)/$$f"; \
	  $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(includedir)/$$f; \
	done

uninstall-includeHEADERS:
	@$(NORMAL_UNINSTALL)
	@list='$(include_HEADERS)'; for p in $$list; do \
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
	  echo " rm -f $(DESTDIR)$(includedir)/$$f"; \
	  rm -f $(DESTDIR)$(includedir)/$$f; \
	done
install-pkgincludeHEADERS: $(pkginclude_HEADERS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(pkgincludedir)
	@list='$(pkginclude_HEADERS)'; for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
	  echo " $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(pkgincludedir)/$$f"; \
	  $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(pkgincludedir)/$$f; \
	done

uninstall-pkgincludeHEADERS:
	@$(NORMAL_UNINSTALL)
	@list='$(pkginclude_HEADERS)'; for p in $$list; do \
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
	  echo " rm -f $(DESTDIR)$(pkgincludedir)/$$f"; \
	  rm -f $(DESTDIR)$(pkgincludedir)/$$f; \
	done

tags: TAGS

ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
	list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	mkid -fID $$unique $(LISP)

TAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
		$(TAGS_FILES) $(LISP)
	tags=; \
	here=`pwd`; \
	list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
	  || etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP)

GTAGS:
	here=`CDPATH=: && cd $(top_builddir) && pwd` \
	  && cd $(top_srcdir) \
	  && gtags -i $$here

distclean-tags:
	-rm -f TAGS ID

DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)

top_distdir = .
# Avoid unsightly `./'.
distdir = $(PACKAGE)-$(VERSION)

GZIP_ENV = --best

distdir: $(DISTFILES)
	-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
	mkdir $(distdir)
	$(mkinstalldirs) $(distdir)/..
	@for file in $(DISTFILES); do \
	  if test -f $$file; then d=.; else d=$(srcdir); fi; \
	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
	    $(mkinstalldirs) "$(distdir)/$$dir"; \
	  fi; \
	  if test -d $$d/$$file; then \
	    cp -pR $$d/$$file $(distdir) \
	    || exit 1; \
	  else \
	    test -f $(distdir)/$$file \
	    || cp -p $$d/$$file $(distdir)/$$file \
	    || exit 1; \
	  fi; \
	done
	-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
	  ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
	|| chmod -R a+r $(distdir)
dist: distdir
	$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
	-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)

# This target untars the dist file and tries a VPATH configuration.  Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
	-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
	GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
	chmod -R a-w $(distdir); chmod a+w $(distdir)
	mkdir $(distdir)/=build
	mkdir $(distdir)/=inst
	chmod a-w $(distdir)
	dc_install_base=`CDPATH=: && cd $(distdir)/=inst && pwd` \
	  && cd $(distdir)/=build \
	  && ../configure --srcdir=.. --prefix=$$dc_install_base \
	  && $(MAKE) $(AM_MAKEFLAGS) \
	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
	  && $(MAKE) $(AM_MAKEFLAGS) check \
	  && $(MAKE) $(AM_MAKEFLAGS) install \
	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
	  && $(MAKE) $(AM_MAKEFLAGS) uninstall \
	  && test `find $$dc_install_base -type f -print | wc -l` -le 1 \
	  && $(MAKE) $(AM_MAKEFLAGS) dist \
	  && $(MAKE) $(AM_MAKEFLAGS) distclean \
	  && rm -f $(distdir).tar.gz \
	  && (test `find . -type f -print | wc -l` -eq 0 \
	     || (echo "Error: files left after distclean" 1>&2; \
	         exit 1) )
	-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
	@echo "$(distdir).tar.gz is ready for distribution" | \
	  sed 'h;s/./=/g;p;x;p;x'
check-am: all-am
	$(MAKE) $(AM_MAKEFLAGS) check-local
check: check-am
all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) config.h \
		all-local
install-binPROGRAMS: install-libLTLIBRARIES


installdirs:
	$(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(pkglibdir) $(DESTDIR)$(bindir) $(DESTDIR)$(includedir) $(DESTDIR)$(pkgincludedir)

install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am

installcheck: installcheck-am
install-strip:
	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	  `test -z '$(STRIP)' || \
	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:

clean-generic:

distclean-generic:
	-rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*

maintainer-clean-generic:
	@echo "This command is intended for maintainers to use"
	@echo "it deletes files that may require special tools to rebuild."
clean: clean-am

clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
	clean-libtool clean-pkglibLTLIBRARIES mostlyclean-am

dist-all: distdir
	$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
	-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
distclean: distclean-am
	-rm -f config.status config.cache config.log
distclean-am: clean-am distclean-compile distclean-depend \
	distclean-generic distclean-hdr distclean-libtool \
	distclean-tags

dvi: dvi-am

dvi-am:

info: info-am

info-am:

install-data-am: install-data-local install-includeHEADERS \
	install-pkgincludeHEADERS

install-exec-am: install-binPROGRAMS install-exec-local \
	install-libLTLIBRARIES install-pkglibLTLIBRARIES

install-info: install-info-am

install-man:

installcheck-am:

maintainer-clean: maintainer-clean-am

maintainer-clean-am: distclean-am maintainer-clean-generic

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-compile mostlyclean-generic \
	mostlyclean-libtool

uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS \
	uninstall-info-am uninstall-libLTLIBRARIES \
	uninstall-pkgincludeHEADERS uninstall-pkglibLTLIBRARIES

uninstall-info: uninstall-info-am

.PHONY: all all-am all-local check check-am check-local clean \
	clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
	clean-libtool clean-pkglibLTLIBRARIES dist dist-all distcheck \
	distclean distclean-compile distclean-depend distclean-generic \
	distclean-hdr distclean-libtool distclean-tags distdir dvi \
	dvi-am info info-am install install-am install-binPROGRAMS \
	install-data install-data-am install-data-local install-exec \
	install-exec-am install-exec-local install-includeHEADERS \
	install-info install-info-am install-libLTLIBRARIES install-man \
	install-pkgincludeHEADERS install-pkglibLTLIBRARIES \
	install-strip installcheck installcheck-am installdirs \
	maintainer-clean maintainer-clean-generic mostlyclean \
	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
	tags uninstall uninstall-am uninstall-binPROGRAMS \
	uninstall-includeHEADERS uninstall-info-am \
	uninstall-libLTLIBRARIES uninstall-pkgincludeHEADERS \
	uninstall-pkglibLTLIBRARIES

$(srcdir)/edit-dll.c : $(srcdir)/module-dll.c
	sed s/module/edit/ $< > $@
$(srcdir)/toolbelt-dll.c : $(srcdir)/module-dll.c
	sed s/module/toolbelt/ $< > $@
$(srcdir)/gforth-dll.c : $(srcdir)/module-dll.c
	sed s/module/gforth/ $< > $@
$(srcdir)/struct-dll.c : $(srcdir)/module-dll.c
	sed s/module/struct/ $< > $@
$(srcdir)/dstrings-dll.c : $(srcdir)/module-dll.c
	sed s/module/dstrings/ $< > $@
$(srcdir)/floating-dll.c : $(srcdir)/module-dll.c
	sed s/module/floating/ $< > $@
$(srcdir)/smart-go-dll.c : $(srcdir)/module-dll.c
	sed s/module/smart_go/ $< > $@
$(srcdir)/help-dll.c : $(srcdir)/module-dll.c
	sed s/module/help/ $< > $@
# --------------------------------------------------------------------- #
auto:
	aclocal
	autoconf
	autoheader
	automake -a -c

config.h : incl-gen.t

incl-gen : incl-gen.t
incl-gen.t : # make sure it is built atleast after unpacking
	$(MAKE) $(srcdir)/incl-gen.h
	cp $(srcdir)/incl-gen.h $@

      # if perl is not installed, the old files are left untouched.
$(srcdir)/incl-gen.h : $(pkginc_gen_headers:.h=.c)
	@ for F in $? "" ; do if test ! -z "$$F" \
	; then   perl $(srcdir)/../mk/Make-H.pl $$F \
	; fi done 
	@ echo creating $@ \
	; echo '/*' `date` '*/' >$@ \
	; for F in $(pkginc_gen_headers) ; do : \
	; echo '#include <pfe/'$$F'>' >>$@ \
	; done

force-gen:
	@ for F in $(pkginc_gen_headers:.h=.c) "" ; do if test ! -z "$$F" \
	; then   perl $(srcdir)/../mk/Make-H.pl $(srcdir)/$$F \
	; fi done 

distclean-genheaders:
	cd $(srcdir) && rm -f $(pkginc_gen_headers)

config:
	rm -f config.cache
	../../../pfe/configure 

reconfigure:
	../../../pfe/configure 

all-local: man
install-data-local : install-man install-scripts
install-exec-local : install-generic-config

install-doc doc install-docs docs :
	$(MAKE) -C $(DOCDIR) prefix=$(prefix) $@ || true
pfe.1 : pfe$(EXEEXT)
	perl $(DOCDIR)/help2man.pl ./pfe > $@ || true
	@ test -f $@ || head $(srcdir)/../pfe.spec > $@
pfe-config.1 : pfe-config
	perl $(DOCDIR)/help2man.pl "sh pfe-config" > $@ || true
	@ test -f $@ || head $(srcdir)/../pfe.spec > $@
man : pfe.1 pfe-config.1
install-man : pfe.1 pfe-config.1
	$(mkinstalldirs) $(DESTDIR)$(mandir)/man1
	$(INSTALL_DATA) pfe.1 pfe-config.1 $(DESTDIR)$(mandir)/man1
install-scripts : 
	$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
	$(INSTALL_DATA) $(TESTDIR)/*.fs  $(DESTDIR)$(pkgdatadir)
	$(INSTALL_DATA) $(TESTDIR)/*.4th $(DESTDIR)$(pkgdatadir)
	$(INSTALL_DATA) $(LIB4DIR)/*.4th $(DESTDIR)$(pkgdatadir)
install-generic-config:
	$(mkinstalldirs) $(DESTDIR)$(bindir)
	$(INSTALL_SCRIPT) pfe-config $(DESTDIR)$(bindir)

# check-tests will do some minor sanity checks. There may be something awefully
# wrong if these fail. check-local is also called by "make check" or distcheck
check-local:  
	test -d $(TESTDIR)
	@ OK="" ; BAD="" \
	; for f in $(TESTDIR)/*.4th \
	; do : \
	;  check=`basename $$f .4th` \
	;  if test -r "$(TESTDIR)/$$check.sh" \
	;  then echo $$check .... \
	;   ./pfe --bye --quiet -I $(TESTDIR) $$f >$$check.out \
	;   if $(SHELL) "$(TESTDIR)/$$check.sh" $$check.out \
	;   then OK="$$OK $$check" ; else BAD="$$BAD $$check" \
	;   fi \
	;  fi \
	; done \
	; test -z "$$OK"  || echo "OK : $$OK" \
	; test -z "$$BAD" || echo "BAD : $$BAD" \
	; true # test -z "$$BAD" # let the check fail
tests: 
	test -d $(TESTDIR)
	@ OK="" ; BAD="" \
	; for f in $(TESTDIR)/*.4th \
	; do : \
	;  check=`basename $$f .4th` \
	;  if test -r "$(TESTDIR)/$$check.chk" \
	;  then echo $$check .... \
	;   ./pfe --bye --quiet -I $(TESTDIR) $$f >$$check.out \
	;   test -f $$check.our || cp $$check.out $$check.our \
	;   diffs=`diff $(DIFFFLAGS) $$check.our $$check.out | wc -l` \
	;   if test "$$diffs" -ne "0" \
	;   then BAD="$$BAD $$check" \
	;    echo $$check: " ... HAS $$diffs DIFFERENCES!!!" \
	;   else OK="$$OK $$check" \
	;   fi \
	;  fi \
	; done \
	; test -z "$$OK"  || echo "OK : $$OK" \
	; test -z "$$BAD" || echo "BAD : $$BAD" \
	; test -z "$$BAD" # let the check fail

clean-test:
	-rm -f *.out *.our

# ---------------------------------------------------------------------- #

config.status : config.status.test

config.status.test :
	test -f config.status || $(SHELL) $(configurecall)

%.i: %.c
	@echo '$(COMPILE) -E $<'; \
	$(COMPILE) -E $< >$@
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
