# Generated automatically from Makefile.in by configure.
#! make -f
# this is a handwritten autoconf input file that is largely 
# modelled after the correspondig output of a Makefile.am

srcdir = ../../src
prefix = /usr/local

VPATH = ../../src
SHELL = /bin/sh
PACKAGE = pfe
VERSION = 0.29.0

top_srcdir = ../../src
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include

top_builddir = .
pkgdatadir = $(datadir)/pfe
pkglibdir = $(libdir)/pfe
pkgincludedir = $(includedir)/pfe

DESTDIR =
INSTALL = /usr/cygwin/CYGWIN~1/H-I586~1/bin/install -c
INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
transform = s,x,x,

build_alias = i386-pc-cygwin32
build_triplet = i386-pc-cygwin32
host_alias = i386-pc-cygwin32
host_triplet = i386-pc-cygwin32
target_alias = i386-pc-cygwin32
target_triplet = i386-pc-cygwin32

AS = @AS@
CC = gcc.exe
CP = cp -p
DEBUG = -g
DLLTOOL = @DLLTOOL@
LD = d:/cygwin/CYGWIN~1/H-I586~1/i586-cygwin32/bin/ld.exe
LDFLAGS =  -W,-E
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LN_S = ln -s
MAKEINFO = @MAKEINFO@
MD = mkdir -p
MV = mv
NM = /usr/cygwin/CYGWIN~1/H-I586~1/bin/nm -B
OBJDUMP = @OBJDUMP@
OPTIM = -O
RANLIB = ranlib
RM = rm -f
TERMLIB = termunix
TRASH =  core *.core a.out *.bak *~

e   = .exe # executable
o   = .o
E   = .dll # sharedlib
O   = .lo
M   = .dll # dl module 
m   = .llo
s   = .asm
x   = /

SRC_TERM = 	termunix$o 	# term-k12$o
SRC_EXT =  	unix$o 		# main-k12$o
SRC_FLOAT = 	 floating$o
OPT_FLOAT = 	# -DP4_NO_FP -msoft-float

pfe_ANS_O = 	core$o block$o double$o xception$o facility$o file$o \
		locals$o memory$o toolkit$o search$o string$o \
		forth-83$o lpf83$o misc$o showhelp$o debug$o dblsub$o \
		filesub$o support$o dictnry$o lined$o term$o p4words$o \
		p4utils$o $(SRC_FLOAT)

# object files containing environmental dependencies:
pfe_ENV_O = 	main$o $(SRC_TERM) signals$o sysdep$o \
		$(SRC_EXT) shell$o yours$o
#		p4ed$o

# pre-automake style:
# pfe_HEADERS =	p4_config.h p4_regs.h p4_comp.h \
#		p4options.h p4_const.h p4_types.h p4_macro.h \
#		support.h dblsub.h term.h help.h lined.h \
#		p4e.h p4sys.h p4words.h p4_log.h

# EXTRA = main-k12.c unix.c  curses.c term-dj.c term-emx.c term-k12.c term-wat.c termunix.c

pfe_O = $(pfe_ANS_O) $(pfe_ENV_O) version$o
p4ed_M = p4ed$m

bin_FILES= pfe$e # showhelp$e helpidex$e
pkglib_FILES= p4ed$M

SYSDEFS =  -DCPU_i386 -DCPU_i -DSYS_cygwin32 -DSYS_cygwin
CFLAGS = $(OPT_FLOAT) $(OPTIM) \
	-funsigned-char -Wno-char-subscripts $(SYSDEFS) 

DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I. -I-
CPPFLAGS = 
LIBS = -ltermcap -lm 
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@

DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)

TARGETS= pfe$e p4ed$E

all: $(TARGETS)

install-pkglib: $(pkglib_FILES)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
	@list='$(pkglib_FILES)'; for p in $$list; do \
	  if test -f $$p; then \
	    echo "$(LIBTOOL)  --mode=install $(INSTALL) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
	    $(LIBTOOL)  --mode=install $(INSTALL) $$p $(DESTDIR)$(pkglibdir)/$$p; \
	  else :; fi; \
	done

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

install-bin: $(bin_FILES)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(bindir)
	@list='$(bin_FILES)'; for p in $$list; do \
	  if test -f $$p; then \
	    echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
	    $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
	  else :; fi; \
	done

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

install: installdirs install-bin install-pkglib

uninstall: uninstall-bin uninstall-pgklib

installdirs:
	$(mkinstalldirs)  $(DESTDIR)$(pkglibdir) $(DESTDIR)$(bindir)

mostly-clean:
	-rm -f *$o *.lo *$m core *.core *~ *.bak
	-rm -rf .libs _libs

clean: mostly-clean 
	-rm -rf $(TARGETS)

reconfigure: mostly-clean
	-rm -f config.cache config.status config.lo
	CC=gcc.exe ../../src/configure 

tags: TAGS

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

distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)

.SUFFIXES = .S .i .c $s $m $o $O

%$o : %.c
	@echo '$(COMPILE) -c $<'; \
	$(COMPILE) -c $<

%$O : %.c
	@echo '$(LTCOMPILE) -c $<'; \
	$(LTCOMPILE) -c $<

%$o : %$asm
	$(COMPILE) -c $<

%$o : %.S
	$(COMPILE) -c $<

%$O : %$asm
	$(LIBTOOL) --mode=compile $(COMPILE) -c $<

%$O : %.S
	$(LIBTOOL) --mode=compile $(COMPILE) -c $<

%$m : %.c
	$(LIBTOOL) --mode=compile $(CC) \
		$(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) \
		-DMODULE -c $<
	$(MV) ${@:.llo=.lo} $@        

showhelp$e: $(showhelp_O) 
	@rm -f $@
	$(LINK) $(showhelp_O) $(LIBS) -o $@

helpidx$e: $(helpidx_O) 
	@rm -f $@
	$(LINK) $(helpidx_O) $(LIBS) -o $@

pfe$e: $(pfe_O) 
	@rm -f pfe
	$(LINK) -export-dynamic -export-symbols-regex '^p4' \
		$(pfe_O) $(LIBS) -o $@

p4ed$M: $(p4ed_M)
	$(LINK) --shared -export-dynamic -export-symbols-regex '^p4' \
		 $(p4ed_M) -o $@

# 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:
