numtools

perform numerical operations on vectors and matrices in unix pipes
git clone git://src.adamsgaard.dk/numtools # fast
git clone https://src.adamsgaard.dk/numtools.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit f5300d87504c05843deb19e06fda765e5b61c9b0
parent 76779d98f45ccb5273322738fe7debe7dca1385e
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri, 22 Sep 2023 11:16:56 +0200

Makefile: fix linker argument order

Diffstat:
MMakefile | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -42,7 +42,7 @@ LIB = ${COMPATOBJ} LIBS = -lm _CFLAGS = ${CFLAGS} ${INCS} -DVERSION=\"${VERSION}\" -_LDFLAGS = ${LDFLAGS} ${LIBS} +_LDFLAGS = ${LDFLAGS} _CPPFLAGS = ${CPPFLAGS} -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_BSD_SOURCE MAN1 = ${BIN:=.1} ${SCRIPTS:=.1} @@ -69,7 +69,7 @@ sum: sum.o transpose: transpose.o ${BIN}: ${LIB} ${OBJ} - ${CC} ${_LDFLAGS} -o $@ ${@:=.o} ${OBJ} + ${CC} ${_LDFLAGS} -o $@ ${@:=.o} ${OBJ} ${LIBS} .c.o: ${CC} ${_CFLAGS} ${_CPPFLAGS} -o $@ -c $<