diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-09-03 23:03:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-03 23:03:28 +0200 |
commit | 55b7810abe3e15446e9c18b41a68a424b1698e7e (patch) | |
tree | 826c55e07e6902f3269248289d4cd4caae401333 | |
parent | 8354bc6086f11002cc58497f91f43200a09c13a9 (diff) | |
parent | b87a750f4b7f06c31bbb6ab70c62104f1cc67f5a (diff) | |
download | icestorm-55b7810abe3e15446e9c18b41a68a424b1698e7e.tar.gz icestorm-55b7810abe3e15446e9c18b41a68a424b1698e7e.tar.bz2 icestorm-55b7810abe3e15446e9c18b41a68a424b1698e7e.zip |
Merge pull request #99 from marcusmueller/modularize_config
modularized standard Makefile config
-rw-r--r-- | config.mk | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -1,11 +1,19 @@ +PREFIX ?= /usr/local + CXX ?= clang++ CC ?= clang -LDLIBS = -lm -lstdc++ -CFLAGS += -MD -O0 -ggdb -Wall -std=c99 -I/usr/local/include -CXXFLAGS += -MD -O0 -ggdb -Wall -std=c++11 -I/usr/local/include PKG_CONFIG ?= pkg-config + +C_STD ?= c99 +CXX_STD ?= c++11 +OPT_LEVEL ?= 0 +WARN_LEVEL ?= all + +LDLIBS = -lm -lstdc++ +CFLAGS += -MD -O$(OPT_LEVEL) -ggdb -W$(WARN_LEVEL) -std=$(C_STD) -I$(PREFIX)/include +CXXFLAGS += -MD -O$(OPT_LEVEL) -ggdb -W$(WARN_LEVEL) -std=$(CXX_STD) -I$(PREFIX)/include + DESTDIR ?= -PREFIX ?= /usr/local CHIPDB_SUBDIR ?= icebox ifeq ($(MXE),1) |