9 # Ar settings to build the library
13 SHLD
= ${CC} ${CFLAGS}
14 LDSHFLAGS
= -shared
-Wl
,-Bsymbolic
-Wl
,-rpath
-Wl
,/usr
/lib
-Wl
,-rpath
,/usr
/lib
15 LDFLAGS
= -Wl
,-rpath
-Wl
,/usr
/lib
-Wl
,-rpath
,/usr
/lib
17 # Set RANLIB to ranlib on systems that require it (Sun OS < 4, Mac OSX)
26 SUFFIXES
= .o .c .h .a .so .sl
28 COMPILE.c
=$(CC
) $(CFLAGS
) -c
30 @
(echo
"compiling $< ...")
31 @
($(COMPILE.c
) -o
$@
$<)
34 SRCS
= src
/iniparser.c \
41 default
: libiniparser.a libiniparser.so
43 libiniparser.a
: $(OBJS
)
44 @
($(AR
) $(ARFLAGS
) libiniparser.a
$(OBJS
))
45 @
($(RANLIB
) libiniparser.a
)
47 libiniparser.so
: $(OBJS
)
48 @
$(SHLD
) $(LDSHFLAGS
) -o
$@
.0 $(OBJS
) $(LDFLAGS
) \
49 -Wl
,-soname
=`basename $@`.0
55 $(RM
) $(OBJS
) libiniparser.a libiniparser.so
*
56 rm -rf .
/html
; mkdir html
57 cd
test ; $(MAKE
) veryclean