
LIB = libmxml.so

OBJS = 	mxml-attr.o \
	mxml-entity.o \
	mxml-file.o \
	mxml-index.o \
	mxml-node.o \
	mxml-search.o \
	mxml-set.o \
	mxml-private.o \
	mxml-string.o \

all install: $(LIB)

clean:
	rm -rf $(OBJS) $(LIB) 

CFLAGS := -Wall -Werror -fPIC -Os -g -D_THREAD_SAFE -D_REENTRANT
	

$(LIB): $(OBJS)
	$(CC) -Werror -shared -Wl,--whole-archive,-soname,$@ -o $@ $(OBJS) -Wl,--no-whole-archive

install: $(LIB)
	install -m 755 $(LIB) $(LIBDIR)


