Makefile: can now give some CLI parameters.
This commit is contained in:
parent
ec03af7e3b
commit
988307e09e
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user