diff libtwamr/Makefile @ 252:57b4053559ff

libtwamr: beginning of project
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 05 Apr 2024 01:02:23 +0000
parents libgsmefr/Makefile@0494279ae379
children 54f6bc41ed10
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libtwamr/Makefile	Fri Apr 05 01:02:23 2024 +0000
@@ -0,0 +1,24 @@
+CC=	gcc
+CFLAGS=	-O2
+OBJS=	basicop2.o tls_flags.o
+HDRS=	basic_op.h cnst.h int_defs.h namespace.h tw_amr.h typedef.h
+LIB=	libtwamr.a
+
+INSTALL_PREFIX=	/usr/local
+
+all:	${LIB}
+
+${OBJS}:	${HDRS}
+
+${LIB}:	${OBJS}
+	ar rcu $@ ${OBJS}
+	ranlib $@
+
+install:
+	mkdir -p ${INSTALL_PREFIX}/include
+	install -c -m 444 tw_amr.h ${INSTALL_PREFIX}/include
+	mkdir -p ${INSTALL_PREFIX}/lib
+	install -c -m 444 ${LIB} ${INSTALL_PREFIX}/lib
+
+clean:
+	rm -f *.[oa] errs