From 2e1ccff01cf89539b621ac786898229307847f4b Mon Sep 17 00:00:00 2001 From: thing 1 Date: Thu, 14 Nov 2024 08:11:18 +0000 Subject: made too many changes to note --- comp/lucas-standen-NEA/code2/stdlib/Makefile | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'comp/lucas-standen-NEA/code2/stdlib/Makefile') diff --git a/comp/lucas-standen-NEA/code2/stdlib/Makefile b/comp/lucas-standen-NEA/code2/stdlib/Makefile index 9d4bfd6..c69992c 100644 --- a/comp/lucas-standen-NEA/code2/stdlib/Makefile +++ b/comp/lucas-standen-NEA/code2/stdlib/Makefile @@ -1,17 +1,23 @@ CC=cc CFLAGS=-O3 -stdlib: - cd String && make - ${CC} zpylib.c -c -o zpylib.o ${CFLAGS} +SRC = zpylib.c +OBJ = ${SRC:.c=.o} -clean: - rm -rf *.o - cd String && make clean +all: zpy -install: - cp *.o /usr/local/share/zpylib/ - cp *.h /usr/local/share/zpylib/include/ - cp String/String.o /usr/local/share/zpylib - cp String/String.h /usr/local/share/zpylib/include +.c.o: + ${CC} -c ${CFLAGS} $< + cd String && make +install: all + cp zpy /usr/local/bin/zpy + cd stdlib && make install + cd zpypkg && make install +clean: + rm -rf zpy*.o + cd stdlib && make clean + cd examples && make clean +uninstall: + rm /usr/local/bin/zpy +.PHONY: all clean install uninstall -- cgit v1.2.3