X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=lib%2Futil%2FMakefile;fp=lib%2Futil%2FMakefile;h=27ae85dfd9b0574c7b1760982355d22210d6fdfb;hb=ce67d0cdeaa37c3e856e23ae4010480887165630;hp=0000000000000000000000000000000000000000;hpb=e355d4e7962400470f467b88f5568de9c8324475;p=xmlrpc-c diff --git a/lib/util/Makefile b/lib/util/Makefile new file mode 100644 index 0000000..27ae85d --- /dev/null +++ b/lib/util/Makefile @@ -0,0 +1,52 @@ +############################################################################### +# This directory builds object modules that provide utility functions that +# programs can use. Not libraries, though -- just programs. The reason +# we don't want any library to use object modules in here is that they'll +# probably pollute the name space when users link those libraries to their +# programs. In fact, if more than one Xmlrpc-c library includes one of these +# modules, the libraries will conflict with each other. +# +# So a utility function that is to be used by libraries (and, optionally, +# programs) should go in libxmlrpc_util. libxmlrpc_util is a prerequisite +# for many Xmlrpc-c libraries, gets included in a program link only once, +# and uses external symbol names that have the "xmlrpc_" prefix to avoid +# collision with users' code. +# +# If we knew a portable way to link multiple object modules into one and +# restrict the symbols exported by the whole, we could avoid this mess and +# just link utility object modules into each Xmlrpc-c library. +############################################################################## + +ifeq ($(SRCDIR)x,x) +SRCDIR = $(CURDIR)/../.. +endif +SUBDIR = lib/util +BUILDDIR = $(SRCDIR) + +default: all + +include $(BUILDDIR)/Makefile.config + +include $(SRCDIR)/Makefile.common + +.PHONY: all +all: cmdline_parser.lo getoptx.lo casprintf.lo + +INCLUDES = -Iinclude -I$(BUILDDIR) + +CFLAGS = $(CFLAGS_COMMON) $(INCLUDES) $(CFLAGS_PERSONAL) $(CADD) + +%.lo:%.c + $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $< + +include Makefile.depend + +.PHONY: clean distclean +clean: clean-common + +distclean: clean distclean-common + +.PHONY: dep +dep: dep-common + +install: \ No newline at end of file