Skip to content

Commit

Permalink
Merge pull request #14 from thirdwing/master
Browse files Browse the repository at this point in the history
built on 32bit WinXP
  • Loading branch information
sneumann committed Jan 5, 2015
2 parents 08a3a38 + f3ff0b5 commit c2d3d05
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Expand Up @@ -18,7 +18,7 @@ Description: mzR provides a unified API to the common file formats and
License: Artistic-2.0
LazyLoad: yes
Depends: Rcpp (>= 0.10.1), methods, utils
Imports: Biobase
Imports: Biobase, zlibbioc
Suggests: msdata (>= 0.3.5), RUnit, mzID, BiocStyle, knitr, BiocGenerics
VignetteBuilder: knitr
LinkingTo: Rcpp, zlibbioc
Expand Down
2 changes: 1 addition & 1 deletion NAMESPACE
@@ -1,7 +1,7 @@
useDynLib(mzR)

import(methods)

import(zlibbioc)
importClassesFrom(Biobase, "Versioned")
importFrom(Biobase, validMsg)
##importFrom(Rcpp, "loadRcppModules")
Expand Down
12 changes: 12 additions & 0 deletions src/Makevars.win
Expand Up @@ -106,8 +106,20 @@ PKG_CFLAGS=-D_LARGEFILE_SOURCE -I./win/$(R_ARCH) -D_MSC_VER -fgnu89-inline

PKG_LIBS = $(shell $(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()" ) $(PWIZ_LDFLAGS) -L./win/$(R_ARCH) -lws2_32 -lnetcdf

ZLIB_CFLAGS =$(shell echo 'zlibbioc::pkgconfig("PKG_CFLAGS")'|\
"${R_HOME}/bin/R" --vanilla --slave)

PKG_LIBS+=$(shell echo 'zlibbioc::pkgconfig("PKG_LIBS_shared")' |\
"${R_HOME}/bin/R" --vanilla --slave)

all: clean $(SHLIB)

%.o: %.c
$(CC) $(ZLIB_CFLAGS) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c $< -o $@

%.o: %.cpp
$(CXX) $(ZLIB_CFLAGS) $(ALL_CPPFLAGS) -c $< -o $@

clean:
rm -f $(OBJECTS)

Expand Down

0 comments on commit c2d3d05

Please sign in to comment.