From e6a327bd19eff4244ee4a9670cbc3342ef472260 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Tue, 9 Aug 2022 15:12:30 +0200 Subject: Initial commit --- config.mk | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 config.mk (limited to 'config.mk') diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..d2835c6 --- /dev/null +++ b/config.mk @@ -0,0 +1,30 @@ +PROG = qureje + +# Remove libraries you don't want in compilation +PSQL=1 + +# Library selections +GTK = gtk4 + +.ifdef PSQL + DIRECTIVES += -DPSQL + PG_LIBDIR != pg_config --libdir + PG_LIB != pg_config --libs + PG_LIB += -L${PG_LIBDIR} -lpq + LIBS += ${PG_LIB} +.endif + +CC = cc +LINKER = ${CC} + +WARNS = -Wall -pedantic -Wextra +STD = -std=c89 -ansi + +CFLAGS != pkg-config --cflags ${GTK} +CFLAGS += ${DIRECTIVES} ${WARNS} ${STD} + +LFLAGS != pkg-config --libs ${GTK} +LFLAGS += ${LIBS} + +SRC != find * -name "*.c" +OBJ = ${SRC:.c=.o} \ No newline at end of file -- cgit v1.2.3