prefix = @prefix@
exec_prefix = @exec_prefix@

srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ..
VPATH = @srcdir@
bindir = @bindir@
libdir = @libdir@

GU_VERSION=1
GU_REVISION=3
GU_AGE=0

GFTP_VERSION=1
GFTP_REVISION=0
GFTP_AGE=0

LIBTOOL = @LIBTOOL@
CC = @CC@

STATIC_LIBS = @STATIC_LIBS@

libgutils_OBJECTS = divisors.lo fsys.lo gcol.lo gimage.lo gimagereadbmp.lo \
 gimageread.lo gimagereadgif.lo gimagereadjpeg.lo gimagereadpng.lo \
 gimagereadras.lo gimagereadrgb.lo gimagereadtiff.lo gimagereadxbm.lo \
 gimagereadxpm.lo gimagewritebmp.lo gimagewritegimage.lo \
 gimagewritejpeg.lo gimagewritepng.lo gimagewritexbm.lo gimagewritexpm.lo \
 gwwintl.lo dynamic.lo \
 gio.lo giofile.lo giohosts.lo giomime.lo giothread.lo giotrans.lo
libgioftp_OBJECTS = gioftp.lo

Incs = -I$(top_srcdir)/inc -I../inc -I/usr/pkg/include -I/usr/pkg/include/giflib
CFLAGS = @CFLAGS@ @CPPFLAGS@ $(Incs) @WFLAGS@ $(X_CFLAGS) -DNOTHREADS @DEFS@ -DLIBDIR='"$(libdir)"'

both: ../libgutils.la ../libgioftp.la

../libgutils.la: $(libgutils_OBJECTS)
	$(LIBTOOL) --mode=link $(CC) -no-undefined $(CFLAGS) @LDFLAGS@ -o ../libgutils.la $(libgutils_OBJECTS) \
	    ../libgunicode.la @LIBS@ \
	    $(STATIC_LIBS)  \
	    -rpath $(libdir) -version-info $(GU_VERSION):$(GU_REVISION):$(GU_AGE)

../libgioftp.la: $(libgioftp_OBJECTS)
	$(LIBTOOL) --mode=link $(CC) -no-undefined $(CFLAGS) @LDFLAGS@ -o ../libgioftp.la $(libgioftp_OBJECTS) \
	    ../libgunicode.la @LIBS@ \
	    $(STATIC_LIBS)  \
	    -rpath $(libdir) -version-info $(GFTP_VERSION):$(GFTP_REVISION):$(GFTP_AGE)

%.lo: %.c
	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $<

clean:
	-rm -fr *.lo *.o .libs/* .libs ../libgutils.la ../libgioftp.la

distclean cleaner:
	-rm -fr *.lo *.o ../libgutils.la Makefile ../libgioftp.la .libs/* .libs
