Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rm Makevars and Makevars.win from skeleton package
- Loading branch information
1 parent
e90318f
commit 4f0c8ad
Showing
6 changed files
with
9 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,2 @@ | ||
# -*- mode: Makefile; tab-width: 8 -*- | ||
# | ||
# Makevars for Rcpp | ||
# | ||
# Copyright (C) 2008 - 2009 Dirk Eddelbuettel <edd@debian.org> | ||
# Copyright (C) 2008, 2013 Simon Urbanek <simon.urbanek@r-project.org> | ||
# Copyright (C) 2009 - 2013 Dirk Eddelbuettel and Romain Francois | ||
|
||
## $(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. | ||
|
||
## uncomment this to enable c++0x features (experimental) | ||
## CLINK_CPPFLAGS=-std=c++0x | ||
|
||
all: $(SHLIB) userLibrary | ||
|
||
## we place it inside the inst/ directory so that it gets installed by the package | ||
USERDIR = ../inst/lib | ||
|
||
USERLIB = libRcpp$(DYLIB_EXT) | ||
USERLIBST = libRcpp.a | ||
|
||
PKG_CPPFLAGS += -I../inst/include/ | ||
|
||
userLibrary: $(USERLIB) $(USERLIBST) | ||
-@if test ! -e $(USERDIR)$(R_ARCH); then mkdir -p $(USERDIR)$(R_ARCH); fi | ||
cp $(USERLIB) $(USERDIR)$(R_ARCH) | ||
cp $(USERLIBST) $(USERDIR)$(R_ARCH) | ||
rm $(USERLIB) $(USERLIBST) | ||
|
||
$(USERLIB): $(OBJECTS) | ||
$(SHLIB_CXXLD) -o $(USERLIB) $(OBJECTS) $(SHLIB_CXXLDFLAGS) $(ALL_LIBS) | ||
@: $${INSTALL_NAME_TOOL=/usr/bin/install_name_tool}; if test -e "$$INSTALL_NAME_TOOL"; then "$$INSTALL_NAME_TOOL" -id '$(R_PACKAGE_DIR)/lib$(R_ARCH)/$(USERLIB)' '$(USERLIB)'; fi | ||
|
||
$(USERLIBST): $(OBJECTS) | ||
$(AR) qc $(USERLIBST) $(OBJECTS) | ||
@if test -n "$(RANLIB)"; then $(RANLIB) $(USERLIBST); fi | ||
|
||
.PHONY: all clean userLibrary | ||
|
||
clean: | ||
rm -f $(OBJECTS) $(SHLIB) $(USERLIB) $(USERLIBST) | ||
PKG_CPPFLAGS = -I../inst/include/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,2 @@ | ||
# Emacs please make this -*- mode: makefile; tab-width: 8 -*- | ||
# | ||
# Makefile.win for Rcpp | ||
# | ||
# Copyright (C) 2008 - 2009 Dirk Eddelbuettel <edd@debian.org> | ||
# Copyright (C) 2010 Dirk Eddelbuettel and Romain Francois | ||
# | ||
# Contributions from an older Makefile.win are | ||
# (C) Dominick Samperi and Uwe Ligges and gratefully acknowledged | ||
# | ||
# Contributions from Brian D Ripley are also gratefully acknowledged | ||
|
||
PKG_CPPFLAGS = -I../inst/include/ | ||
|
||
## we place it inside the inst/ directory so that it gets installed by the package | ||
USERDIR = ../inst/lib$(R_ARCH) | ||
STATICLIB = libRcpp.a | ||
USERLIB = $(USERDIR)/$(STATICLIB) | ||
|
||
## uncomment this to enable c++0x features (experimental) | ||
## CLINK_CPPFLAGS=-std=c++0x | ||
|
||
## the 'package' library contains both Rcpp.{cpp,h} and the RcppExample used to demonstrate the package | ||
## it is loaded via library(Rcpp) but is not used for compiling / linking against | ||
|
||
RM = rm -f | ||
|
||
.PHONY: all clean | ||
|
||
all: userlib $(SHLIB) | ||
|
||
clean: | ||
${RM} $(OBJECTS) $(SHLIB) | ||
|
||
$(USERLIB): $(OBJECTS) | ||
|
||
userlib: $(STATICLIB) | ||
-mkdir -p $(USERDIR) | ||
-mv $(STATICLIB) $(USERLIB) | ||
|
||
$(STATICLIB): $(OBJECTS) | ||
|