Skip to content

Commit

Permalink
makevars.in change to remove gnu make extension
Browse files Browse the repository at this point in the history
  • Loading branch information
adalisan committed Aug 5, 2017
1 parent bc26ab4 commit fac36a9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: RGraphM
Type: Package
Title: Graph Matching Library for R
Version: 0.1.7
Author: Sancar Adali, Mikhail Zaslavskiy
Author: Mikhail Zaslavskiy, Sancar Adali
Maintainer: Sancar Adali <[email protected]>
Description: This is a wrapper package for the graph matching library 'graphm'. The original 'graphm' C/C++ library can be found in <http://cbio.mines-paristech.fr/graphm/> . Latest version ( 0.52 ) of this library is slightly modified to fit 'Rcpp' usage and included in the source package. The development version of the package is also available at <https://github.com/adalisan/RGraphM> .
License: GPL-2
Expand Down
20 changes: 8 additions & 12 deletions src/Makevars.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,32 @@
# combine with standard arguments for R
RCPPGSL_LDFLAGS = `$(R_HOME)/bin/Rscript -e "RcppGSL:::LdFlags()"`
#RCPPGSL_CFLAGS
PKG_CPPFLAGS = @CFLAGS@ $(GSL_CFLAGS) -I$(LIB_GSL)/include -I../inst/include -I../inst
#-Wno-unused-but-set-variable -Wno-long-long -Wno-sign-compare -Wno-deprecated
#-pedantic
PKG_CPPFLAGS = @CFLAGS@ $(GSL_CFLAGS) -I$(LIB_GSL)/include -I../inst/include -I../inst
#-Wno-unused-but-set-variable -Wno-long-long -Wno-sign-compare -Wno-deprecated
#-pedantic
#-pthread -O2 -g

#PKG_CPPFLAGS = -I. -I../inst/include
## Use the R_HOME indirection to support installations of multiple R version
#PKG_LIBS = `"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" \
# -e "RcppGSL:::LdFlags()`

GRAPHM_OBJ = algorithm_ca.o algorithm_ext.o algorithm_fsol.o algorithm_iden.o algorithm_lp.o algorithm_path.o algorithm_qcv.o algorithm_rand.o algorithm_rank.o algorithm_umeyama.o algorithm_unif.o algorithm.o experiment.o graph.o hungarian.o rpc.o
GRAPHM_OBJ_REL = $(addprefix ./graphm/,$(GRAPHM_OBJ) )

GRAPHM_OBJ_REL = ./graphm/algorithm_ca.o ./graphm/algorithm_ext.o ./graphm/algorithm_fsol.o ./graphm/algorithm_iden.o ./graphm/algorithm_lp.o ./graphm/algorithm.o ./graphm/algorithm_path.o ./graphm/algorithm_qcv.o ./graphm/algorithm_rand.o ./graphm/algorithm_rank.o ./graphm/algorithm_umeyama.o ./graphm/algorithm_unif.o ./graphm/experiment.o ./graphm/graph.o ./graphm/hungarian.o ./graphm/rpc.o
#PKG_LIBS = $(LDFLAGS) -L../inst -lgraphm -L$(LIB_GSL)/lib/x64 -lgsl -lgslcblas $(RCPPGSL_LDFLAGS) $(GSL_LIBS)
PKG_LIBS = $(LDFLAGS) -L$(LIB_GSL)/lib/x64 -lgsl -lgslcblas $(RCPPGSL_LDFLAGS) $(GSL_LIBS)

SHVER= 1
CXX = @CXX@
CXX = @CC@

SOURCES= graphmatch_rcpp.cpp RcppExports.cpp
OBJECTS= $(SOURCES:.cpp=.o) RGraphM_init.o $(GRAPHM_OBJ_REL)


.PHONY: all $(GRAPHM_OBJ_REL)
all: $(GRAPHM_OBJ_REL) $(SHLIB)
all: $(GRAPHM_OBJ_REL) $(SHLIB)
$(SHLIB): $(GRAPHM_OBJ_REL) $(OBJECTS) graphm
./graphmatch_rcpp.o: ./RcppExports.o ./RGraphM_init.o graphm $(GRAPHM_OBJ_REL)
./RcppExports.o: $(GRAPHM_OBJ_REL) graphm
./RGraphM_init.o: $(GRAPHM_OBJ_REL) graphm
graphm: $(GRAPHM_OBJ_REL)
cd graphm && $(MAKE)
cd graphm && make

clean: cleana cleanb

Expand Down

0 comments on commit fac36a9

Please sign in to comment.