1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/source3/iniparser/Makefile
Günther Deschner f340b2fa36 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 6658e0a988)
2007-10-10 11:15:58 -05:00

56 lines
794 B
Makefile

#
# 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))