Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b2eccd3443
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (26 sloc) 1.081 kb
## ${R_HOME}/share/make/winshlib.mk
all: $(SHLIB)
BASE = $(shell basename $(SHLIB) .dll)
## do it with explicit rules as packages might add dependencies to this target
## (attempts to do this GNUishly failed for parallel makes,
## but we do want the link targets echoed)
$(SHLIB): $(OBJECTS)
@if test "z$(OBJECTS)" != "z"; then \
if test -e "$(BASE)-win.def"; then \
echo $(SHLIB_LD) -shared $(DLLFLAGS) -o $@ $(BASE)-win.def $(OBJECTS) $(ALL_LIBS); \
$(SHLIB_LD) -shared $(DLLFLAGS) -o $@ $(BASE)-win.def $(OBJECTS) $(ALL_LIBS); \
else \
echo EXPORTS > tmp.def; \
$(NM) $^ | $(SED) -n $(SYMPAT) >> tmp.def; \
echo $(SHLIB_LD) -shared $(DLLFLAGS) -o $@ tmp.def $(OBJECTS) $(ALL_LIBS); \
$(SHLIB_LD) -shared $(DLLFLAGS) -o $@ tmp.def $(OBJECTS) $(ALL_LIBS); \
$(RM) tmp.def; \
fi \
fi
.PHONY: all shlib-clean
shlib-clean:
@rm -f $(OBJECTS) symbols.rds
## FIXME: why not Rscript?
symbols.rds: $(OBJECTS)
@$(ECHO) "tools:::.shlib_objects_symbol_tables()" | \
$(R_HOME)/bin$(R_ARCH)/Rterm.exe --vanilla --slave --args $(OBJECTS)
Jump to Line
Something went wrong with that request. Please try again.