comparison libnumutil/Makefile @ 11:3d6cfb615d90

add make install hierarchy
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 13 Dec 2023 05:16:12 +0000
parents 159dd90eeafe
children 78319ed870dc
comparison
equal deleted inserted replaced
10:05a94b08c8e1 11:3d6cfb615d90
1 INSTALL_PREFIX= /opt/themwi
2
1 CC= gcc 3 CC= gcc
2 CFLAGS= -O2 -I../build-inc 4 CFLAGS= -O2 -I../build-inc
3 OBJS= digit_groups.o nanp_valid.o numstring.o 5 OBJS= digit_groups.o nanp_valid.o numstring.o
4 LIB= libnumutil.a 6 LIB= libnumutil.a
7 INSTDIR=${INSTALL_PREFIX}/lib
5 8
6 all: ${LIB} 9 all: ${LIB}
7 10
8 ${LIB}: ${OBJS} 11 ${LIB}: ${OBJS}
9 ar rcu $@ ${OBJS} 12 ar rcu $@ ${OBJS}
10 ranlib $@ 13 ranlib $@
11 14
15 install:
16 mkdir -p ${INSTDIR}
17 install -c -m 644 ${LIB} ${INSTDIR}
18
12 clean: 19 clean:
13 rm -f *.[oa] errs 20 rm -f *.[oa] errs