diff options
author | 2023-02-04 01:40:18 +0100 | |
---|---|---|
committer | 2023-02-04 01:40:18 +0100 | |
commit | f068bb04a92418c97e0da79699cd52ee230566ac (patch) | |
tree | d80103245e93a011168f55233b87198768e67d34 /Makefile | |
parent | 87292d98cf48876a5a3e4ad53f3dd91f51676e5a (diff) | |
download | log-f068bb04a92418c97e0da79699cd52ee230566ac.tar.gz log-f068bb04a92418c97e0da79699cd52ee230566ac.zip |
Add commands and directives to run tests
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -13,7 +13,6 @@ LDFLAGS = ${LIBS} dist: static shared -# ar -rc libaz.a libabc.a libxyz.a static: libs @make OPT='-O2 -pipe -Werror' ${LIBNAME:=.a} rm -f ${OBJ} @@ -29,13 +28,18 @@ ${LIBNAME:=.so}: ${OBJ} ${CC} ${LDFLAGS} -shared ${OBJ} -o $@ ${LIBNAME:=.a}: ${OBJ} - ar rcs $@ ${OBJ} +# ar rcs $@ ${OBJ} + mkdir build + cd build && ar -x ../${LIBSTR_PATH} + ar rcs $@ ${OBJ} build/* + rm -rf build .c.o: ${CC} ${CFLAGS} -c $< -o $@ clean: rm -f ${OBJ} ${LIBNAME}.* *.core + rm -rf build cd test && make clean tests: dist |