From 68baa2efd72cb150dd6138d7b208b2621bcfc431 Mon Sep 17 00:00:00 2001 From: thing 1 Date: Thu, 5 Dec 2024 12:04:08 +0000 Subject: made a load of stuff --- comp/lucas-standen-NEA/code2/stdlib/Makefile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 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 c69992c..7d70f73 100644 --- a/comp/lucas-standen-NEA/code2/stdlib/Makefile +++ b/comp/lucas-standen-NEA/code2/stdlib/Makefile @@ -4,20 +4,21 @@ CFLAGS=-O3 SRC = zpylib.c OBJ = ${SRC:.c=.o} -all: zpy -.c.o: - ${CC} -c ${CFLAGS} $< +all: + ${CC} -c ${SRC} -o ${OBJ} ${CFLAGS} cd String && make install: all - cp zpy /usr/local/bin/zpy - cd stdlib && make install - cd zpypkg && make install + mkdir -p /usr/local/share/zpylib + cp zpylib.o /usr/local/share/zpylib/ + + mkdir -p /usr/local/share/zpylib/include + cp zpylib.h /usr/local/share/zpylib/include/ + cd String && make install clean: - rm -rf zpy*.o - cd stdlib && make clean - cd examples && make clean + rm -rf *.o + cd String && make clean uninstall: - rm /usr/local/bin/zpy + rm -rf /usr/local/share/zpylib .PHONY: all clean install uninstall -- cgit v1.2.3