Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (33 sloc) 1.72 KB
# -*- mode: Makefile; tab-width: 8 -*-
# Makevars for RcppClassic
# Copyright (C) 2008 - 2009 Dirk Eddelbuettel <>
# Copyright (C) 2008 Simon Urbanek <>
# Copyright (C) 2009 - 2010 Dirk Eddelbuettel and Romain Francois
# Copyright (C) 2015 - 2017 Dirk Eddelbuettel <>
## $(SHLIB) is the usual default target that is built automatically from all source
## files in this directory. userLibrary is an additional target for the second library
## that will be installed in ../inst/lib$(R_ARCH) and which users can link against.
all: $(SHLIB) userLibrary
## we place it inside the inst/ directory so that it gets installed by the package
USERDIR = ../inst/lib
USERLIB = libRcppClassic$(DYLIB_EXT)
USERLIBST = libRcppClassic.a
PKG_CPPFLAGS = -I../inst/include/
userLibrary: $(USERLIB) $(USERLIBST)
-@if test ! -e $(USERDIR)$(R_ARCH); then mkdir -p $(USERDIR)$(R_ARCH); fi
@if test -e "/usr/bin/install_name_tool"; then /usr/bin/install_name_tool -id $(R_PACKAGE_DIR)/lib$(R_ARCH)/$(USERLIB) $(USERLIB); fi
@if test -e "/usr/bin/strip" & test -e "/bin/uname" & [[ `uname` == "Linux" ]]; then /usr/bin/strip --strip-unneeded $(USERLIB); fi
$(AR) qc $(USERLIBST) $^
@if test -n "$(RANLIB)"; then $(RANLIB) $(USERLIBST); fi
@if test -e "/usr/bin/strip" & test -e "/bin/uname" & [[ `uname` == "Linux" ]]; then /usr/bin/strip --strip-unneeded $(USERLIBST); fi
.PHONY: all clean userLibrary
You can’t perform that action at this time.