config.mk (501B)
1 # See LICENSE file for copyright and license details. 2 # chip8 version 3 VERSION = 0.1 4 5 # paths 6 PREFIX = /usr/local 7 MANPREFIX = ${PREFIX}/share/man 8 # OpenBSD 9 #MANPREFIX = ${PREFIX}/man 10 11 # includes and libs 12 INCS = -Iinclude -I${PREFIX}/include 13 LIBS = -Llib -L${PREFIX}/lib -lSDL2 14 15 # flags 16 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L \ 17 -D_XOPEN_SOURCE=700 -DVERSION=\"${VERSION}\" 18 CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} 19 LDFLAGS = ${LIBS} 20 21 # compiler 22 CC = cc