summaryrefslogtreecommitdiff
path: root/comp/lucas-standen-NEA/code2/stdlib/Makefile
diff options
context:
space:
mode:
authorthing 1 <thing1@seacrossedlovers.xyz>2024-11-14 08:11:18 +0000
committerthing 1 <thing1@seacrossedlovers.xyz>2024-11-14 08:11:18 +0000
commit2e1ccff01cf89539b621ac786898229307847f4b (patch)
tree88f91a94a58e6452288ed3145de51cb73c9f249b /comp/lucas-standen-NEA/code2/stdlib/Makefile
parentbca6aeb86a3ca5d33cf1f33a81fcce2220d97a5a (diff)
made too many changes to note
Diffstat (limited to 'comp/lucas-standen-NEA/code2/stdlib/Makefile')
-rw-r--r--comp/lucas-standen-NEA/code2/stdlib/Makefile28
1 files changed, 17 insertions, 11 deletions
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