Fix build on OpenBSD
This commit is contained in:
parent
775dc924a5
commit
35a880ae26
1 changed files with 11 additions and 5 deletions
16
configure
vendored
16
configure
vendored
|
@ -7,7 +7,7 @@ set -e
|
||||||
import=import
|
import=import
|
||||||
|
|
||||||
mkf=Makefile
|
mkf=Makefile
|
||||||
cflags='-I'"$import"' -boundscheck=on'
|
cflags='-I'"$import"
|
||||||
objs='esv.o esvapi.o'
|
objs='esv.o esvapi.o'
|
||||||
srcs='esv.d esvapi.d'
|
srcs='esv.d esvapi.d'
|
||||||
makefile='
|
makefile='
|
||||||
|
@ -17,7 +17,9 @@ MANPREFIX = ${PREFIX}/man
|
||||||
|
|
||||||
DC = ${_DC}
|
DC = ${_DC}
|
||||||
CFLAGS = ${_CFLAGS}
|
CFLAGS = ${_CFLAGS}
|
||||||
OBJS = ${_OBJS} ini.o
|
OBJS = ${_OBJS} ini.a
|
||||||
|
INIOBJS = ${IMPORT}/dini/package.o ${IMPORT}/dini/parser.o \\
|
||||||
|
${IMPORT}/dini/reader.o ${IMPORT}/dini/utils.o
|
||||||
|
|
||||||
all: esv
|
all: esv
|
||||||
|
|
||||||
|
@ -29,11 +31,15 @@ esv: ${OBJS}
|
||||||
.d.o:
|
.d.o:
|
||||||
${DC} ${CFLAGS} -c $<
|
${DC} ${CFLAGS} -c $<
|
||||||
|
|
||||||
ini.o: ${IMPORT}/dini/*.d
|
ini.a: ${IMPORT}/dini/{package,parser,reader,utils}.d
|
||||||
${DC} ${CFLAGS} -of=ini.o -c ${IMPORT}/dini/*.d
|
${DC} ${CFLAGS} -of=${IMPORT}/dini/package.o -c ${IMPORT}/dini/package.d
|
||||||
|
${DC} ${CFLAGS} -of=${IMPORT}/dini/parser.o -c ${IMPORT}/dini/parser.d
|
||||||
|
${DC} ${CFLAGS} -of=${IMPORT}/dini/reader.o -c ${IMPORT}/dini/reader.d
|
||||||
|
${DC} ${CFLAGS} -of=${IMPORT}/dini/utils.o -c ${IMPORT}/dini/utils.d
|
||||||
|
ar -cr $@ ${INIOBJS}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f esv ${OBJS}
|
rm -f esv ${OBJS} ${INIOBJS}
|
||||||
|
|
||||||
install: esv
|
install: esv
|
||||||
install -m755 esv ${DESTDIR}${PREFIX}/bin/esv
|
install -m755 esv ${DESTDIR}${PREFIX}/bin/esv
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue