FreeCalypso > hg > themwi-nanp
diff libnumdb/Makefile @ 11:3d6cfb615d90
add make install hierarchy
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 13 Dec 2023 05:16:12 +0000 |
parents | 6534965175dd |
children | 78319ed870dc |
line wrap: on
line diff
--- a/libnumdb/Makefile Wed Dec 13 03:56:16 2023 +0000 +++ b/libnumdb/Makefile Wed Dec 13 05:16:12 2023 +0000 @@ -1,7 +1,10 @@ +INSTALL_PREFIX= /opt/themwi + CC= gcc CFLAGS= -O2 -I../build-inc OBJS= check_nanp.o check_short.o readbin.o refresh.o LIB= libnumdb.a +INSTDIR=${INSTALL_PREFIX}/lib all: ${LIB} @@ -9,5 +12,9 @@ ar rcu $@ ${OBJS} ranlib $@ +install: + mkdir -p ${INSTDIR} + install -c -m 644 ${LIB} ${INSTDIR} + clean: rm -f *.[oa] errs