[Rinside-commits] r160 - pkg/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Jun 15 17:52:55 CEST 2010


Author: romain
Date: 2010-06-15 17:52:55 +0200 (Tue, 15 Jun 2010)
New Revision: 160

Added:
   pkg/src/Makevars.win
Log:
first pass at a Makevars.win

Added: pkg/src/Makevars.win
===================================================================
--- pkg/src/Makevars.win	                        (rev 0)
+++ pkg/src/Makevars.win	2010-06-15 15:52:55 UTC (rev 160)
@@ -0,0 +1,41 @@
+## Copyright (C) 2010 Dirk Eddelbuettel and Romain Francois
+##
+## This file is part of RInside.
+##
+## RInside is free software: you can redistribute it and/or modify it
+## under the terms of the GNU General Public License as published by
+## the Free Software Foundation, either version 2 of the License, or
+## (at your option) any later version.
+##
+## RInside is distributed in the hope that it will be useful, but
+## WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with RInside.  If not, see <http://www.gnu.org/licenses/>.
+
+USERLIB=libRInside$(DYLIB_EXT)
+USERLIBST=libRInside.a
+USERDIR=../inst/lib
+
+PKG_CPPFLAGS += -I../inst/include/
+PKG_LIBS = $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "Rcpp:::LdFlags()")
+
+all:	$(SHLIB) userLibrary
+
+userLibrary: $(USERLIB) $(USERLIBST)
+	- at 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)
+
+$(USERLIBST): $(OBJECTS)
+	
+.PHONY: all clean userLibrary
+
+clean:
+	rm -f $(OBJECTS) $(SHLIB) $(USERLIB) $(USERLIBST)
+



More information about the Rinside-commits mailing list