r22711: Fix a compile warnign in query_user(). Ensure that user_rid
[Samba/bb.git] / source3 / iniparser / Makefile
blob59793dbee19b791dce6e01c22859030be419a067
2 # iniparser Makefile
5 # Compiler settings
6 CC = gcc
7 CFLAGS = -O3
9 # Ar settings to build the library
10 AR = ar
11 ARFLAGS = rcv
13 # Set RANLIB to ranlib on systems that require it (Sun OS < 4, Mac OSX)
14 # RANLIB = ranlib
15 RANLIB = true
17 RM = rm -f
20 # Implicit rules
22 SUFFIXES = .o .c .h .a .so .sl
24 COMPILE.c=$(CC) $(CFLAGS) -c
25 .c.o:
26 @(echo "compiling $< ...")
27 @($(COMPILE.c) -o $@ $<)
30 SRCS = src/iniparser.c \
31 src/dictionary.c \
32 src/strlib.c
34 OBJS = $(SRCS:.c=.o)
37 default: libiniparser.a
39 libiniparser.a: $(OBJS)
40 @($(AR) $(ARFLAGS) libiniparser.a $(OBJS))
41 @($(RANLIB) libiniparser.a)
43 clean:
44 $(RM) $(OBJS)
46 veryclean:
47 $(RM) $(OBJS) libiniparser.a
48 rm -rf ./html ; mkdir html
49 cd test ; $(MAKE) veryclean
51 docs:
52 @(cd doc ; $(MAKE))
54 check:
55 @(cd test ; $(MAKE))