commit ef5752ede43362b32af394bbbf820250c2b3029e
Author: Raniconduh <clagv.randomgames@gmail.com>
Date: Mon Dec 06 15:54:34 2021 +0000
diff --git a/Makefile b/Makefile
index eb64d91..4762741 100644
--- a/Makefile
+++ b/Makefile
@@ -26 +27 @@ SOURCES ?= src/*.c
INCLUDEDIR ?= include
DEST ?= cscroll
+CC ?= cc
CFLAGS ?= -Wall -Wextra -pedantic $(shell pkg-config --cflags ncurses)
LIBS ?= $(shell pkg-config --libs ncurses) -ltinfo
@@ -1010 +1110 @@ PREFIX ?= /usr/local
all: cscroll
cscroll: $(SOURCES)
- cc -I$(INCLUDEDIR) -o $(DEST) $(SOURCES) $(CFLAGS) $(LIBS)
+ $(CC) -I$(INCLUDEDIR) -o $(DEST) $(SOURCES) $(CFLAGS) $(LIBS)
debug: $(SOURCES)
- cc -I$(INCLUDEDIR) -DDEBUG -o $(DEST) $(SOURCES) $(CFLAGS) $(LIBS) -g
+ $(CC) -I$(INCLUDEDIR) -DDEBUG -o $(DEST) $(SOURCES) $(CFLAGS) $(LIBS) -g
install: all
install -D $(DEST) $(DESTDIR)$(PREFIX)/bin/$(DEST)