0 SHELL = /bin/sh
1
2 PREFIX = /usr/local
3 CFLAGS = -ansi -Wall -Wextra -std=c89 -pedantic -O2 -D_POSIX_C_SOURCE=200809L
4 CC = cc
5 LIBS = -s -lm
6
7 build: src/*
8 ${CC} ${CFLAGS} src/main.c src/file.c src/strlcpy.c \
9 src/view.c src/client.c src/termbox.c \
10 ${INCLUDES} ${LIBSPATH} \
11 -o mz ${LIBS}
12
13 install:
14 cp mz ${PREFIX}/bin/
15 chmod 755 ${PREFIX}/bin/mz
16
17 uninstall:
18 rm ${PREFIX}/bin/mz
19
20 clean:
21 rm -f mz
22