blob: e01a111d3d7ddb9bc43539b5d784f802bbdc9be2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
CC=cc
CFLAGS=-O3
SRC = zpy.c comp.c tokenizer.c fileread.c util.c appendsnprintf.c
OBJ = ${SRC:.c=.o}
all: zpy
.c.o:
${CC} -c ${CFLAGS} $<
zpy: ${OBJ}
${CC} -o $@ ${OBJ}
cd stdlib && 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
|