prefix = @prefix@
exec_prefix = @exec_prefix@

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

GU_VERSION=3
GU_REVISION=1
GU_AGE=0

LIBTOOL = @LIBTOOL@
CC = @CC@

libgunicode_OBJECTS =  ArabicForms.lo alphabet.lo char.lo \
 cjk.lo memory.lo ucharmap.lo unialt.lo ustring.lo utype.lo \
 gwwiconv.lo

Incs = -I$(top_builddir)/inc -I$(top_srcdir)/inc -I/usr/pkg/include -I/usr/pkg/include/giflib
CFLAGS = @CFLAGS@ @CPPFLAGS@ $(Incs) @WFLAGS@ @DEFS@

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

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

clean:
	-rm -f *.o *.lo ../libgunicode.la .libs/*

distclean cleaner:
	-rm -f *.o *.lo ../libgunicode.la .libs/* Makefile
