From a2779a1997a17aed51e46b61492a00f621583dde Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Sun, 24 Dec 2023 06:07:26 +1300 Subject: [PATCH] drop the shared library --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index ef5d274..cbd203d 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,12 @@ OBJS = csto.o callisto.o lcl.o lenviron.o lextra.o lfs.o ljson.o\ lpath.o lprocess.o util.o LIBS = liblua.a cjson.a -all: csto libcallisto.so +all: csto libcallisto.a csto: ${LIBS} ${OBJS} ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS} ${LDFLAGS} -libcallisto.so: ${LIBS} ${OBJS} - ${CC} -shared ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} ${LIBS} +libcallisto.a: ${LIBS} ${OBJS} + ar cr $@ ${OBJS} liblua.a .SUFFIXES: .o @@ -36,7 +36,7 @@ liblua.a: external/luasrc/*.c mv -f external/luasrc/liblua.a . clean: - rm -f csto libcallisto.so ${OBJS} ${LIBS} + rm -f csto libcallisto.a ${OBJS} ${LIBS} rm -fr include doc/*.html doc/modules clean-all: clean ${MAKE} -s -Cexternal/luasrc clean @@ -52,6 +52,6 @@ install: cp -f external/luasrc/{lua.h,lualib.h,lauxlib.h,luaconf.h} include/callisto cp -f csto "${DESTDIR}${PREFIX}"/bin cp -fR include/callisto "${DESTDIR}${PREFIX}"/include - cp -f libcallisto.so "${DESTDIR}${PREFIX}"/lib + cp -f libcallisto.a "${DESTDIR}${PREFIX}"/lib .PHONY: all clean clean-all doc install