migrate to initial.d over dini
initial.d is my very own INI parser, see <https://git.sr.ht/~jeremy/initial>
This commit is contained in:
parent
de9e18f06e
commit
2e93c891fd
10 changed files with 509 additions and 1642 deletions
23
configure
vendored
23
configure
vendored
|
@ -7,9 +7,8 @@ set -e
|
|||
import=import
|
||||
|
||||
mkf=Makefile
|
||||
cflags='-I'"$import"
|
||||
objs='esv.o esvapi.o'
|
||||
srcs='esv.d esvapi.d'
|
||||
objs='esv.o esvapi.o initial.o'
|
||||
srcs='esv.d esvapi.d initial.d'
|
||||
makefile='
|
||||
IMPORT = '"$import"'
|
||||
PREFIX = /usr/local
|
||||
|
@ -17,9 +16,7 @@ MANPREFIX = ${PREFIX}/man
|
|||
|
||||
DC = ${_DC}
|
||||
CFLAGS = ${_CFLAGS}
|
||||
OBJS = ${_OBJS} ini.a
|
||||
INIOBJS = ${IMPORT}/dini/package.o ${IMPORT}/dini/parser.o \\
|
||||
${IMPORT}/dini/reader.o ${IMPORT}/dini/utils.o
|
||||
OBJS = ${_OBJS}
|
||||
|
||||
all: esv
|
||||
|
||||
|
@ -31,13 +28,6 @@ esv: ${OBJS}
|
|||
.d.o:
|
||||
${DC} ${CFLAGS} -c $<
|
||||
|
||||
ini.a: ${IMPORT}/dini/{package,parser,reader,utils}.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:
|
||||
rm -f esv ${OBJS} ${INIOBJS}
|
||||
|
||||
|
@ -152,9 +142,6 @@ done
|
|||
|
||||
# creating the makefile
|
||||
|
||||
u_cflags="$cflags"
|
||||
unset cflags
|
||||
|
||||
gen_DC
|
||||
gen_CFLAGS
|
||||
gen_LDFLAGS
|
||||
|
@ -167,7 +154,7 @@ _CFLAGS = %s
|
|||
_LDFLAGS = %s
|
||||
' \
|
||||
"$dc" \
|
||||
"$cflags $u_cflags" \
|
||||
"$cflags" \
|
||||
"$ldflags" \
|
||||
>>"$mkf"
|
||||
## generate obj list
|
||||
|
@ -185,7 +172,7 @@ printf "$makefile" >>"$mkf"
|
|||
printf '\n# begin generated dependencies\n' >>"$mkf"
|
||||
i=1
|
||||
for obj in $objs; do
|
||||
"$dc" $u_cflags -O0 -o- -makedeps \
|
||||
"$dc" -O0 -o- -makedeps \
|
||||
"$(printf "$srcs" | awk '{print $'"$i"'}')" >>"$mkf"
|
||||
i="$(($i + 1))"
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue