From 6178dfbbd612d15a46c7d2a439b2252d6d0a87ba Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 2 Mar 2016 12:34:51 +0100 Subject: Added Makefile support for "make STATIC=1" --- icepll/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'icepll/Makefile') diff --git a/icepll/Makefile b/icepll/Makefile index b47de3e..e0badf6 100644 --- a/icepll/Makefile +++ b/icepll/Makefile @@ -2,6 +2,10 @@ include ../config.mk LDLIBS = -lm -lstdc++ CXXFLAGS = -MD -O0 -ggdb -Wall -std=c++11 -I/usr/local/include +ifeq ($(STATIC),1) +LDFLAGS += -static +endif + all: icepll$(EXE) icepll$(EXE): icepll.o -- cgit v1.2.3