diff options
author | 2023-02-04 00:53:16 +0100 | |
---|---|---|
committer | 2023-02-04 00:53:16 +0100 | |
commit | 4d68868deb710ac3983e6c7559ccdec869023258 (patch) | |
tree | 3edb3b4d5bae77f870426e3324a40cf0fb28f3f1 | |
parent | 1bf2e1be8078758c07303a18047fd5e05f3e5b45 (diff) | |
download | log-4d68868deb710ac3983e6c7559ccdec869023258.tar.gz log-4d68868deb710ac3983e6c7559ccdec869023258.zip |
Add static and shared targets
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -11,10 +11,15 @@ LIBNAME = liblog CFLAGS = -Wall -ansi --std=c89 -pedantic ${OPT} -I${LIBINC} LDFLAGS = ${LIBS} - dist: @make OPT='-O2 -pipe -Werror' all +static: clean libs + @make OPT='-O2 -pipe -Werror' ${LIBNAME:=.a} + +shared: clean libs + @make OPT='-O2 -pipe -Werror -fPIC' ${LIBNAME:=.so} + debug: @make OPT=-g all |