diff options
author | Lars Müller <lmuelle@samba.org> | 2007-05-27 15:58:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:22:51 -0500 |
commit | e5e33247ff9abe01a87bd7b8ebd050c549e2814f (patch) | |
tree | 3266f7257f09f87cd76a2632d2f68309edb58f8d /source3/iniparser/Makefile | |
parent | 40a3b796ceac468b887b981422680a8139142a07 (diff) | |
download | samba-e5e33247ff9abe01a87bd7b8ebd050c549e2814f.tar.gz samba-e5e33247ff9abe01a87bd7b8ebd050c549e2814f.tar.bz2 samba-e5e33247ff9abe01a87bd7b8ebd050c549e2814f.zip |
r23166: Bring samba.org's iniparser copy in sync with the upstream version 2.17.
(This used to be commit 3fa98245d98436a0f042ffca9bf102e9f920bace)
Diffstat (limited to 'source3/iniparser/Makefile')
-rw-r--r-- | source3/iniparser/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/source3/iniparser/Makefile b/source3/iniparser/Makefile index 59793dbee1..bc5d61211a 100644 --- a/source3/iniparser/Makefile +++ b/source3/iniparser/Makefile @@ -4,12 +4,16 @@ # Compiler settings CC = gcc -CFLAGS = -O3 +CFLAGS = -O3 -fPIC # Ar settings to build the library AR = ar ARFLAGS = rcv +SHLD = ${CC} ${CFLAGS} +LDSHFLAGS = -shared -Wl,-Bsymbolic -Wl,-rpath -Wl,/usr/lib -Wl,-rpath,/usr/lib +LDFLAGS = -Wl,-rpath -Wl,/usr/lib -Wl,-rpath,/usr/lib + # Set RANLIB to ranlib on systems that require it (Sun OS < 4, Mac OSX) # RANLIB = ranlib RANLIB = true @@ -34,17 +38,21 @@ SRCS = src/iniparser.c \ OBJS = $(SRCS:.c=.o) -default: libiniparser.a +default: libiniparser.a libiniparser.so libiniparser.a: $(OBJS) @($(AR) $(ARFLAGS) libiniparser.a $(OBJS)) @($(RANLIB) libiniparser.a) +libiniparser.so: $(OBJS) + @$(SHLD) $(LDSHFLAGS) -o $@.0 $(OBJS) $(LDFLAGS) \ + -Wl,-soname=`basename $@`.0 + clean: $(RM) $(OBJS) veryclean: - $(RM) $(OBJS) libiniparser.a + $(RM) $(OBJS) libiniparser.a libiniparser.so* rm -rf ./html ; mkdir html cd test ; $(MAKE) veryclean |