Skip to content

Commit f85cf7c

Browse files
authored
Merge pull request #75 from GLVis/makefile-tweak
Update makefile [makefile-tweak]
2 parents 8d08e0d + cf6df8e commit f85cf7c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

makefile

+8-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,14 @@ GLVIS_CONFIG_MK ?=
4949
PREFIX ?= ./bin
5050
INSTALL ?= /usr/bin/install
5151

52-
# Archiver
53-
AR ?= ar
54-
ARFLAGS ?= cruv
52+
# Archiver: AR and ARFLAGS are defined by default, RANLIB is not.
53+
# The default value of AR is 'ar' and we do not want to change that.
54+
# The default value of ARFLAGS is 'rv', however, we want to set a different
55+
# default, so we modify ARFLAGS, unless it was already changed on the command
56+
# line or in the configuration file $(GLVIS_CONFIG_MK).
57+
ifeq ($(origin ARFLAGS),default)
58+
ARFLAGS = cruv
59+
endif
5560
RANLIB ?= ranlib
5661

5762
# Use the MFEM build directory

0 commit comments

Comments
 (0)