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" --- icetime/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'icetime/Makefile') diff --git a/icetime/Makefile b/icetime/Makefile index 6355f06..c56002b 100644 --- a/icetime/Makefile +++ b/icetime/Makefile @@ -2,6 +2,10 @@ include ../config.mk LDLIBS = -lm -lstdc++ CXXFLAGS = -MD -O0 -ggdb -Wall -std=c++11 -I/usr/local/include -DPREFIX='"$(PREFIX)"' +ifeq ($(STATIC),1) +LDFLAGS += -static +endif + all: icetime$(EXE) icetime$(EXE): icetime.o -- cgit v1.2.3