annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
3d6cfb615d90 add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
1 INSTALL_PREFIX= /opt/themwi
3d6cfb615d90 add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
2
0
159dd90eeafe beginning, libnumutil compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 CC= gcc
159dd90eeafe beginning, libnumutil compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 CFLAGS= -O2 -I../build-inc
159dd90eeafe beginning, libnumutil compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 OBJS= digit_groups.o nanp_valid.o numstring.o
159dd90eeafe beginning, libnumutil compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 LIB= libnumutil.a
11
3d6cfb615d90 add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
7 INSTDIR=${INSTALL_PREFIX}/lib
0
159dd90eeafe beginning, libnumutil compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
159dd90eeafe beginning, libnumutil compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 all: ${LIB}
159dd90eeafe beginning, libnumutil compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
159dd90eeafe beginning, libnumutil compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 ${LIB}: ${OBJS}
159dd90eeafe beginning, libnumutil compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 ar rcu $@ ${OBJS}
159dd90eeafe beginning, libnumutil compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 ranlib $@
159dd90eeafe beginning, libnumutil compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14
11
3d6cfb615d90 add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
15 install:
3d6cfb615d90 add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
16 mkdir -p ${INSTDIR}
3d6cfb615d90 add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
17 install -c -m 644 ${LIB} ${INSTDIR}
3d6cfb615d90 add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
18
0
159dd90eeafe beginning, libnumutil compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 clean:
159dd90eeafe beginning, libnumutil compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 rm -f *.[oa] errs