diff options
author | Günther Deschner <gd@samba.org> | 2006-04-11 14:34:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:58 -0500 |
commit | f340b2fa367d7a888c0dc24ff57f2aed7e9c88bb (patch) | |
tree | 84149b4ff19bd0119057cce6834a60f1a0d33879 /source3/iniparser/Makefile | |
parent | 262ffd9750f58f2c5f2268932b45c4d7b05a5fca (diff) | |
download | samba-f340b2fa367d7a888c0dc24ff57f2aed7e9c88bb.tar.gz samba-f340b2fa367d7a888c0dc24ff57f2aed7e9c88bb.tar.bz2 samba-f340b2fa367d7a888c0dc24ff57f2aed7e9c88bb.zip |
r15037: Adding iniParser (http://ndevilla.free.fr/iniparser/), a free inifile
parsing library under the MIT licence.
This is required to have a configuration ini-file for pam_winbind
without using loadparm in the next step.
Guenther
(This used to be commit 6658e0a9886ee5a361361bc9b26c136ec91aea72)
Diffstat (limited to 'source3/iniparser/Makefile')
-rw-r--r-- | source3/iniparser/Makefile | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/source3/iniparser/Makefile b/source3/iniparser/Makefile new file mode 100644 index 0000000000..59793dbee1 --- /dev/null +++ b/source3/iniparser/Makefile @@ -0,0 +1,55 @@ +# +# iniparser Makefile +# + +# Compiler settings +CC = gcc +CFLAGS = -O3 + +# Ar settings to build the library +AR = ar +ARFLAGS = rcv + +# Set RANLIB to ranlib on systems that require it (Sun OS < 4, Mac OSX) +# RANLIB = ranlib +RANLIB = true + +RM = rm -f + + +# Implicit rules + +SUFFIXES = .o .c .h .a .so .sl + +COMPILE.c=$(CC) $(CFLAGS) -c +.c.o: + @(echo "compiling $< ...") + @($(COMPILE.c) -o $@ $<) + + +SRCS = src/iniparser.c \ + src/dictionary.c \ + src/strlib.c + +OBJS = $(SRCS:.c=.o) + + +default: libiniparser.a + +libiniparser.a: $(OBJS) + @($(AR) $(ARFLAGS) libiniparser.a $(OBJS)) + @($(RANLIB) libiniparser.a) + +clean: + $(RM) $(OBJS) + +veryclean: + $(RM) $(OBJS) libiniparser.a + rm -rf ./html ; mkdir html + cd test ; $(MAKE) veryclean + +docs: + @(cd doc ; $(MAKE)) + +check: + @(cd test ; $(MAKE)) |