Makefile: can now give some CLI parameters.

This commit is contained in:
Philippe Pittoli 2024-12-22 00:46:34 +01:00
parent ec03af7e3b
commit 988307e09e

View File

@ -1,9 +1,9 @@
# Directory to store compiled binaries. # Directory to store compiled binaries.
BINDIR ?= /tmp/bin/ BINDIR ?= /tmp/bin/
CC=clang CC ?= clang
CFLAGS=-c -Wall -g CFLAGS ?= -c -Wall -g
LDFLAGS= LDFLAGS ?=
CFILES=$(wildcard *.c) CFILES=$(wildcard *.c)
EXEC=$(patsubst %.c,$(BINDIR)%,$(CFILES)) EXEC=$(patsubst %.c,$(BINDIR)%,$(CFILES))