comparison libtwamr/Makefile @ 351:97c699f40ab3

libtwamr: generate namespace.h from namespace.list
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 05 May 2024 20:34:55 +0000
parents 29769a9b89d3
children e4ce7972737f
comparison
equal deleted inserted replaced
350:9b05bbc23b8a 351:97c699f40ab3
6 d1035pf.o d2_11pf.o d2_9pf.o d3_14pf.o d4_17pf.o d8_31pf.o d_gain_c.o \ 6 d1035pf.o d2_11pf.o d2_9pf.o d3_14pf.o d4_17pf.o d8_31pf.o d_gain_c.o \
7 d_gain_p.o d_plsf.o d_plsf_3.o d_plsf_5.o gains_tab.o gc_pred.o \ 7 d_gain_p.o d_plsf.o d_plsf_3.o d_plsf_5.o gains_tab.o gc_pred.o \
8 gmed_n.o graytab.o inv_sqrt.o log2.o lsp_lsf.o oper_32b.o pow2.o \ 8 gmed_n.o graytab.o inv_sqrt.o log2.o lsp_lsf.o oper_32b.o pow2.o \
9 prmno.o q_plsf3_tab.o q_plsf5_tab.o reorder.o s10_8pf.o set_sign.o \ 9 prmno.o q_plsf3_tab.o q_plsf5_tab.o reorder.o s10_8pf.o set_sign.o \
10 sqrt_l.o tls_flags.o window.o 10 sqrt_l.o tls_flags.o window.o
11 HDRS= namespace.h
11 LIB= libtwamr.a 12 LIB= libtwamr.a
12 13
13 INSTALL_PREFIX= /usr/local 14 INSTALL_PREFIX= /usr/local
14 15
15 all: ${LIB} 16 all: ${LIB}
17
18 namespace.h: namespace.awk namespace.list
19 awk -f namespace.awk namespace.list > $@
16 20
17 ${OBJS}: ${HDRS} 21 ${OBJS}: ${HDRS}
18 22
19 ${LIB}: ${OBJS} 23 ${LIB}: ${OBJS}
20 ar rcu $@ ${OBJS} 24 ar rcu $@ ${OBJS}
25 # install -c -m 444 tw_amr.h ${INSTALL_PREFIX}/include 29 # install -c -m 444 tw_amr.h ${INSTALL_PREFIX}/include
26 # mkdir -p ${INSTALL_PREFIX}/lib 30 # mkdir -p ${INSTALL_PREFIX}/lib
27 # install -c -m 444 ${LIB} ${INSTALL_PREFIX}/lib 31 # install -c -m 444 ${LIB} ${INSTALL_PREFIX}/lib
28 32
29 clean: 33 clean:
30 rm -f *.[oa] errs 34 rm -f *.[oa] namespace.h errs