1 CFLAGS
= -std
=c99
-Wall
-Werror
-fPIC
-DPIC
-g
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
19 $(SONAME
): $(SOURCES
:%.c
=%.o
)
20 $(CC
) $(CFLAGS
) $(LDFLAGS
) -shared
-Wl
,-soname
=$(SONAME
) -o
$@
$^
23 $(CC
) $(CFLAGS
) -c
-o
$@
$<
26 -rm -f libisds.so
$(SONAME
) *.o
29 #makedepend -- $(CFLAGS) -- $(SOURCES)
30 for F in
$(SOURCES
); do
cpp $(CFLAGS
) -MM
"$$F"; done
> Makefile.deps