Thumbnail

rani/cscroll.git

Clone URL: https://git.buni.party/rani/cscroll.git

commit d25f7a9445fc84de1a69af37ab75a930417ef9b1 Author: rani <clagv.randomgames@gmail.com> Date: Thu Jan 12 20:45:48 2023 +0000 Add CFLAGS to link stage diff --git a/Makefile b/Makefile index 3ba5fa3..c56d8f3 100644 --- a/Makefile +++ b/Makefile @@ -127 +127 @@ CC ?= cc  all: ${BIN}    ${BIN}: ${OBJ} - ${CC} ${LDFLAGS} ${OBJ} -o $@ + ${CC} ${CFLAGS} ${OBJ} -o $@ ${LDFLAGS}    %.o:   ${CC} -c ${CFLAGS} $< diff --git a/config.mk b/config.mk index eee5652..5e885b5 100644 --- a/config.mk +++ b/config.mk @@ -17 +17 @@  PREFIX = /usr/local    ICONS = 1 -CFLAGS = -Iinclude -Wall -Wextra -pedantic -DICONS=${ICONS} +CFLAGS += -Iinclude -Wall -Wextra -pedantic -DICONS=${ICONS}    NCURSES = ncurses`pkg-config --exists ncursesw && echo w`  TINFO = `[ "$$(uname)" = Darwin ] && echo -ltinfo`