8 INCLUDES = -I$(topdir)/include -I$(topdir)/include/share
14 include $(topdir)/build/lib.mk
16 # Our lame Makefile.lite system has no provision for building multiple libs in
17 # a directory, so we hack it:
18 UTF8_LIB_NAME = libutf8
19 UTF8_OBJS = charset.o iconvert.o utf8.o
20 UTF8_STATIC_LIB = $(LIBPATH)/$(UTF8_LIB_NAME).$(STATIC_LIB_SUFFIX)
21 UTF8_DYNAMIC_LIB = $(LIBPATH)/$(UTF8_LIB_NAME).$(DYNAMIC_LIB_SUFFIX)
23 debug: $(UTF8_STATIC_LIB) $(UTF8_DYNAMIC_LIB)
25 release: $(UTF8_STATIC_LIB) $(UTF8_DYNAMIC_LIB)
30 rm -f $(UTF8_OBJS) $(UTF8_STATIC_LIB) $(UTF8_DYNAMIC_LIB)
32 $(UTF8_STATIC_LIB): $(UTF8_OBJS)
33 $(LINK) $@ $(UTF8_OBJS) && ranlib $@
35 $(UTF8_DYNAMIC_LIB): $(UTF8_OBJS)
36 ifeq ($(DARWIN_BUILD),yes)
37 $(LINKD) -o $@ $(UTF8_OBJS) $(LFLAGS) $(LIBS) -lc
39 $(LINKD) -o $@ $(UTF8_OBJS) $(LFLAGS) $(LIBS)
42 # DO NOT DELETE THIS LINE -- make depend depends on it.