update libiniparser
This commit is contained in:
parent
7a5d038f5c
commit
07c96e4eaa
|
@ -1,5 +1,6 @@
|
||||||
VERSION := 1.0.0
|
VERSION := 1.0.0
|
||||||
TARGET := libiniparser.a
|
TARGET := libiniparser.a
|
||||||
|
MANPAGE := libiniparser.3
|
||||||
OBJS := iniparser.o
|
OBJS := iniparser.o
|
||||||
HEADERS := kst
|
HEADERS := kst
|
||||||
LIBS :=
|
LIBS :=
|
||||||
|
@ -14,25 +15,25 @@ CFLAGS += -Wnested-externs -Winline -Wno-long-long -Wunused-variable -g
|
||||||
CFLAGS += -Wstrict-prototypes -Werror -std=c99 -I. -I/usr/local/include -O0
|
CFLAGS += -Wstrict-prototypes -Werror -std=c99 -I. -I/usr/local/include -O0
|
||||||
CFLAGS += OS_CFLAGS
|
CFLAGS += OS_CFLAGS
|
||||||
|
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f .*.* *.core *.o *.html tags $(TARGET) $(OBJS)
|
-rm -f .*.* *.core *.o *.html tags $(TARGET) $(OBJS)
|
||||||
-rm -rf $(TARGET)-$(VERSION)
|
-rm -rf $(TARGET)-$(VERSION)
|
||||||
-rm -f $(TARGET)-$(VERSION).tgz
|
-rm -f $(TARGET)-$(VERSION).tgz
|
||||||
-rm -f iniparser-test
|
|
||||||
|
|
||||||
$(TARGET): $(OBJS)
|
$(TARGET): $(OBJS)
|
||||||
$(AR) -rcs $@ $(OBJS)
|
$(AR) -rcs $@ $(OBJS)
|
||||||
|
|
||||||
install: $(TARGET)
|
install: $(TARGET)
|
||||||
install -m 0755 $(TARGET) $(PREFIX)/lib/$(TARGET)
|
install -D -m 0755 $(TARGET) $(PREFIX)/lib/$(TARGET)
|
||||||
install -m 0755 -d $(MANDIR)/man1
|
install -m 0755 -d $(MANDIR)/man3
|
||||||
install -m 0444 $(TARGET).3 $(MANDIR)/man3/$(TARGET).3
|
install -m 0444 $(MANPAGE) $(MANDIR)/man3/$(MANPAGE)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
-rm -f $(PREFIX)/lib/$(TARGET)
|
-rm -f $(PREFIX)/lib/$(TARGET)
|
||||||
-rm -f $(MANDIR)/man3/$(TARGET).3
|
-rm -f $(MANDIR)/man3/$(MANPAGE)
|
||||||
|
|
||||||
dist: clean
|
dist: clean
|
||||||
-mkdir $(TARGET)-$(VERSION)
|
-mkdir $(TARGET)-$(VERSION)
|
||||||
|
@ -44,7 +45,7 @@ distclean: clean
|
||||||
-rm -f Makefile
|
-rm -f Makefile
|
||||||
|
|
||||||
htmldoc:
|
htmldoc:
|
||||||
-mandoc -Thtml $(TARGET).1 > $(TARGET).1.html
|
-mandoc -Thtml $(MANPAGE) > $(MANPAGE).html
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
ctags *.[ch]
|
ctags *.[ch]
|
||||||
|
|
|
@ -12,7 +12,7 @@ OPSYS=$(uname -s)
|
||||||
|
|
||||||
echo "Configuring for ${OPSYS}..."
|
echo "Configuring for ${OPSYS}..."
|
||||||
if [ "x${OPSYS}" = "xLinux" ]; then
|
if [ "x${OPSYS}" = "xLinux" ]; then
|
||||||
OS_CFLAGS="-D_BSD_SOURCE -D_POSIX_SOURCE -D_XOPEN_SOURCE"
|
OS_CFLAGS="-D_DEFAULT_SOURCE -D_POSIX_SOURCE -D_XOPEN_SOURCE"
|
||||||
else
|
else
|
||||||
OS_CFLAGS=""
|
OS_CFLAGS=""
|
||||||
fi
|
fi
|
||||||
|
@ -25,7 +25,7 @@ fi
|
||||||
|
|
||||||
if [ -z "${PREFIX}" ]; then
|
if [ -z "${PREFIX}" ]; then
|
||||||
PREFIX="/usr/local"
|
PREFIX="/usr/local"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${PREFIX}" = "/usr" ]; then
|
if [ "${PREFIX}" = "/usr" ]; then
|
||||||
MANDIR="$(PREFIX)/share/man"
|
MANDIR="$(PREFIX)/share/man"
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
foo = bar
|
||||||
|
x = y
|
||||||
|
|
||||||
|
[ server ]
|
||||||
|
name = the-server
|
||||||
|
port = 1234
|
Loading…
Reference in New Issue