comparison libtwamr/Makefile @ 460:cb1d1ea7f2c5

new build system: accept more directory options
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 10 May 2024 23:04:44 +0000
parents 19f1aa01ea10
children fa0652115168
comparison
equal deleted inserted replaced
459:b094bc07051a 460:cb1d1ea7f2c5
37 syn_filt.h ton_stab.h tw_amr.h typedef.h vad.h vad1.h vad2.h weight_a.h\ 37 syn_filt.h ton_stab.h tw_amr.h typedef.h vad.h vad1.h vad2.h weight_a.h\
38 window.h 38 window.h
39 LIB= libtwamr.a 39 LIB= libtwamr.a
40 40
41 include ../config.defs 41 include ../config.defs
42 INSTALL_PREFIX=${DESTDIR}${PREFIX}
43 42
44 all: ${LIB} 43 all: ${LIB}
45 44
46 namespace.h: namespace.awk namespace.list 45 namespace.h: namespace.awk namespace.list
47 awk -f namespace.awk namespace.list > $@ 46 awk -f namespace.awk namespace.list > $@
51 ${LIB}: ${OBJS} 50 ${LIB}: ${OBJS}
52 ar rcu $@ ${OBJS} 51 ar rcu $@ ${OBJS}
53 ranlib $@ 52 ranlib $@
54 53
55 install: 54 install:
56 mkdir -p ${INSTALL_PREFIX}/include 55 mkdir -p ${DESTDIR}${includedir}
57 install -c -m 444 tw_amr.h ${INSTALL_PREFIX}/include 56 install -c -m 444 tw_amr.h ${DESTDIR}${includedir}
58 mkdir -p ${INSTALL_PREFIX}/lib 57 mkdir -p ${DESTDIR}${libdir}
59 install -c -m 444 ${LIB} ${INSTALL_PREFIX}/lib 58 install -c -m 444 ${LIB} ${DESTDIR}${libdir}
60 59
61 clean: 60 clean:
62 rm -f *.[oa] namespace.h errs 61 rm -f *.[oa] namespace.h errs