# Generated automatically from Makefile.in by configure.
TOP = ../..
srcdir = .

include $(TOP)/config/Makedefs

T = INQUIR
LCLOBBER = theta_generated/* \
	$(T).externs.h $(T).externs.h~ \
	$(T)_types.data $(T).data $(T).data~ \
	$(T)_types.pth $(T).pth $(T).pth~ \
	$(T).th $(T).c

THETA_SOURCES = \
	$(srcdir)/InquirBase.th        \
	$(srcdir)/RealDict.th         \
	$(srcdir)/DataElem.th         \
	$(srcdir)/new_DataElem.th     \
	$(srcdir)/new_RealDict.th     \
	$(srcdir)/new_InquirBase.th     \
	$(srcdir)/InquirBase_class.th   \
	$(srcdir)/DataElem_class.th   \
	$(srcdir)/RealDict_class.th


CCINCS = -I. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../.. -I$(TOP) \
	 -Itheta_generated -I$(srcdir)/../types

CCCINCS = $(CCINCS)

CCSRCS = INQUIR.c

INQUIR.th: $(THETA_SOURCES)
	rm -f INQUIR.th; \
	cat $(THETA_SOURCES) > INQUIR.th

stamp:  INQUIR.th
	@if [ ! -d theta_generated ]; then mkdir theta_generated; fi
	cd theta_generated; rm -f *; theta -c ../INQUIR.th
	$(TOPSRC)/bin/th_link theta_generated 
	$(TOPSRC)/bin/process_user_types INQUIR
	touch stamp

INQUIR.c: stamp
	rm -f INQUIR.c; cat theta_generated/*.c-th > INQUIR.c
	$(TOPSRC)/bin/fix_includes INQUIR.c

inquirtypes-th.a: INQUIR.c

init-src: 
	@if [ -d CVS ]; then mv CVS .CVS; fi
	tar cf - -C $(srcdir)/../../initdir/inquir_types-th . \
	|(tar xf - ; $(TOPSRC)/bin/th_link theta_generated;);
	@if [ -d .CVS ]; then /bin/rm -rf CVS ; mv .CVS CVS; fi
	@if [ -d theta_generated/CVS ]; then /bin/rm -rf theta_generated/CVS; fi

THISLIB = inquirtypes-th.a
CONDITIONAL_BUILD = INQUIR_TH
include $(TOPSRC)/config/libdefs
include $(TOPSRC)/config/libinitdefs
