Skip to content

Commit

Permalink
added static compilation option to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro Martinez committed Sep 29, 2018
1 parent fcd4a44 commit 1539055
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ ifeq ($(MAKECMDGOALS),devel)
FLAGS = -Wall -fcheck=bounds
endif

ifeq ($(MAKECMDGOALS),static)
FLAGS = -O3 -ffast-math -static
endif

###################################################################
# #
# Generally no modifications are required after this. #
Expand All @@ -43,6 +47,7 @@ MODULES = functionpars.o \

all : bindir $(BINARIES)
devel : bindir $(BINARIES)
static: bindir $(BINARIES)

$(BIN)/topolink: Makefile $(MODULES) \
topolink.o \
Expand Down

0 comments on commit 1539055

Please sign in to comment.