Skip to content

Commit

Permalink
Make the changes for static minicern library for classic configure/make
Browse files Browse the repository at this point in the history
  • Loading branch information
peremato committed Jul 22, 2015
1 parent e890abe commit 638b140
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions misc/minicern/Module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ MINICERNO := $(MINICERNO1) $(MINICERNO2)
MINICERNDEP := $(MINICERNS1:.c=.d)

ifneq ($(PLATFORM),win32)
MINICERNLIB := $(LPATH)/libminicern.$(SOEXT)
MINICERNLIB := $(LPATH)/libminicern.a
else
MINICERNLIB := $(LPATH)/libminicern.lib
LNKFLAGS = -nologo -ignore:4049,4075,4217,4221
Expand All @@ -45,9 +45,10 @@ include/%.h: $(MINICERNDIRI)/%.h

ifneq ($(PLATFORM),win32)
$(MINICERNLIB): $(MINICERNO) $(ORDER_) $(MINICERNLIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libminicern.$(SOEXT) $@ "$(MINICERNO1)" \
"$(MINICERNO2) $(MINICERNLIBEXTRA) $(F77LIBS)"
$(AR) cru $@ $(MINICERNO)
@(if [ $(PLATFORM) = "macosx" ]; then \
ranlib $@; \
fi)
else
$(MINICERNLIB): $(MINICERNO) $(ORDER_) $(MINICERNLIBDEP)
$(LD) -LIB $(LNKFLAGS) -o $@ "$(MINICERNO1) $(MINICERNO2)"
Expand Down

0 comments on commit 638b140

Please sign in to comment.