Hotpot-proto/makefile

26 lines
550 B
Makefile
Raw Normal View History

2022-07-06 22:07:48 -04:00
# hotpot - simple literrature manager
# bucket version
VERSION = 1.0.0
# btk
BTK = btk
BTKFILES = ${BTK}/btk.c ${BTK}/btk-window.c ${BTK}/btk-cell.c ${BTK}/btk-text.c ${BTK}/btk-log.c
# external libraries
LIBS = -lxcb -lcairo
# flags
CPPFLAGS = -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\"
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os
# compiler and linker
CC = cc
hotpot:
${CC} -o hotpot main.c ${BTKFILES} ${CPPFLAGS} ${CFLAGS} ${LIBS}
hello:
${CC} -o hello hello.c ${BTKFILES} ${CPPFLAGS} ${CFLAGS} ${LIBS}