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