summaryrefslogtreecommitdiff
path: root/comp/lucas-standen-NEA/code2/stdlib/Makefile
diff options
context:
space:
mode:
authorthing 1 <thing1@seacrossedlovers.xyz>2024-12-05 12:04:08 +0000
committerthing 1 <thing1@seacrossedlovers.xyz>2024-12-05 12:04:08 +0000
commit68baa2efd72cb150dd6138d7b208b2621bcfc431 (patch)
treefefde42e9df77384f9fa11adfa3efd3af73869d8 /comp/lucas-standen-NEA/code2/stdlib/Makefile
parent27e2e13679f57eb2bd139175216b1d5989e8dc6a (diff)
made a load of stuff
Diffstat (limited to 'comp/lucas-standen-NEA/code2/stdlib/Makefile')
-rw-r--r--comp/lucas-standen-NEA/code2/stdlib/Makefile21
1 files changed, 11 insertions, 10 deletions
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