Makefile (750B)
1 # See LICENSE file for copyright and license details. 2 3 VERSION = post-2.0.2 4 5 PREFIX = /usr/local 6 MANPREFIX = ${PREFIX}/share/man 7 8 CPPFLAGS = -DVERSION=\"${VERSION}\" 9 CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ 10 -Wno-unused-parameter -O3 ${CPPFLAGS} 11 DBGFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ 12 -Wno-unused-parameter -Wno-unused-function -g3 \ 13 -fsanitize=address -fsanitize=undefined -${CPPFLAGS} 14 15 CC = cc 16 17 all: nissy 18 19 nissy: clean 20 ${CC} ${CFLAGS} -o nissy src/*.c 21 22 nissy.exe: 23 x86_64-w64-mingw32-gcc ${CFLAGS} -static -o nissy.exe src/*.c 24 25 debug: 26 ${CC} ${DBGFLAGS} -o nissy src/*.c 27 28 test: 29 ${CC} ${DBGFLAGS} -DTEST -o test src/*.c tests/*.c 30 31 clean: 32 rm -rf nissy nissy.exe 33 34 .PHONY: all debug test clean