soap(): use xmlNewChild() instead of xmlNewNode() and xmlAddChild()
[libisds.git] / src / Makefile
blobbcb7adf6949db97b9c60142113378e3dd67f1fd5
1 CFLAGS = -std=c99 -Wall -Werror -fPIC -DPIC -g
2 SONAME = libisds.so.0
3 SOURCES = isds.c utils.c soap.c
5 LIBXML_CFLAGS := $(shell pkg-config --cflags libxml-2.0)
6 LIBCURL_CFLAGS := $(shell pkg-config --cflags libcurl)
7 CFLAGS += $(LIBCURL_CFLAGS) $(LIBXML_CFLAGS)
9 LIBXML_LDFLAGS := $(shell pkg-config --libs libxml-2.0)
10 LIBCURL_LDFLAGS := $(shell pkg-config --libs libcurl)
11 LDFLAGS += $(LIBCURL_LDFLAGS) $(LIBXML_LDFLAGS)
14 all: $(SONAME) libisds.so
16 libisds.so: $(SONAME)
17 ln -s $(SONAME) $@
19 $(SONAME): $(SOURCES:%.c=%.o)
20 $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname=$(SONAME) -o $@ $^
22 %.o: %.c
23 $(CC) $(CFLAGS) -c -o $@ $<
25 clean:
26 -rm -f libisds.so $(SONAME) *.o
28 depend:
29 #makedepend -- $(CFLAGS) -- $(SOURCES)
30 for F in $(SOURCES); do cpp $(CFLAGS) -MM "$$F"; done > Makefile.deps
32 include Makefile.deps