aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiretza <xiretza@xiretza.xyz>2021-03-12 22:53:09 +0100
committertgingold <tgingold@users.noreply.github.com>2021-03-13 08:19:21 +0100
commitdb40ae63b93c4b033376b663d6224a2da208900d (patch)
tree9d6b2a2de3cc040289395774fe7ee88fa1df958a
parentcf68e8c830db7ca7399d7589639040ecaafd8efd (diff)
downloadghdl-yosys-plugin-db40ae63b93c4b033376b663d6224a2da208900d.tar.gz
ghdl-yosys-plugin-db40ae63b93c4b033376b663d6224a2da208900d.tar.bz2
ghdl-yosys-plugin-db40ae63b93c4b033376b663d6224a2da208900d.zip
Makefile: use CFLAGS/LDFLAGS from environment
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d24104b..a384ecf 100644
--- a/Makefile
+++ b/Makefile
@@ -6,8 +6,7 @@ GHDL=ghdl
YOSYS_CONFIG=yosys-config
SOEXT=so
-LDFLAGS=
-CFLAGS=-O
+CFLAGS ?= -O
LIBGHDL_LIB:=$(shell $(GHDL) --libghdl-library-path)
LIBGHDL_INC:=$(shell $(GHDL) --libghdl-include-dir)