summaryrefslogtreecommitdiff
path: root/comp/lucas-standen-NEA/code2/stdlib/Makefile
diff options
context:
space:
mode:
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