
LTLIBRARY_NAME          = libinformix.la
LTLIBRARY_SOURCES       = ifx.c
LTLIBRARY_SHARED_NAME   = informix.la
LTLIBRARY_SHARED_LIBADD = $(INFORMIX_SHARED_LIBADD)
CLEANFILES              = ifx.c libphpifx.a

include $(top_srcdir)/build/dynlib.mk

ifx.c: $(srcdir)/ifx.ec
	(if test -d $(INFORMIXDIR); then \
	   THREADLIB=POSIX $(INFORMIXDIR)/bin/esql -e $(IFX_ESQL_FLAGS) $(srcdir)/ifx.ec; \
	 else \
	   touch ifx.c; \
	 fi)

libphpifx.a: 
	$(LINK) $(IFX_LIBOBJS)

all: libphpifx.a
