Skip to content

Commit

Permalink
align Makevars
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed Jul 18, 2023
1 parent 34d012d commit d5cf75b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.DS_Store
.vscode/*
*.o
*.a
src/*.a
src/*.o
src/*.so
Expand All @@ -30,3 +31,5 @@ inst/doc
windows/
tests/testthat/_snaps
tests/testthat/testfiles
src/cryptography/*.a
src/cryptography/msoc/*.o
22 changes: 11 additions & 11 deletions src/Makevars.in
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
PKG_CPPFLAGS = @cflags@ -I. -I../inst/include/pugixml -Icryptography -Icryptography/msoc/include
PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"` @libs@
PKG_LIBS = -Lcryptography -lmsoc @libs@

OBJECTS = cryptography/msoc/msocdll.o \
helper_functions.o \
load_workbook.o \
msoc.o \
pugi.o \
strings_xml.o \
styles_xml.o \
write_file.o \
RcppExports.o
LIBMSOC = cryptography/msoc/msocdll.o

STATLIB = cryptography/libmsoc.a

all: clean

all: $(SHLIB)
$(SHLIB): $(STATLIB)

$(STATLIB): $(LIBMSOC)
$(AR) rcs cryptography/libmsoc.a $(LIBMSOC)

clean:
rm -f $(OBJECTS) $(SHLIB)
rm -f $(OBJECTS) $(SHLIB) $(STATLIB) $(LIBMSOC)
4 changes: 2 additions & 2 deletions src/Makevars.win
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
VERSION=1.1.1k
PKG_CPPFLAGS= -I../windows/openssl-$(VERSION)/include -I. -I../inst/include/pugixml -Icryptography -Icryptography/msoc/include
PKG_LIBS = -L. -lmsoc -L../windows/openssl-$(VERSION)/lib${R_ARCH}${CRT} -lssl -lcrypto -lws2_32 -lcrypt32
PKG_LIBS = -Lcryptography -lmsoc -L../windows/openssl-$(VERSION)/lib${R_ARCH}${CRT} -lssl -lcrypto -lws2_32 -lcrypt32

LIBMSOC = cryptography/msoc/msocdll.o

STATLIB = libmsoc.a
STATLIB = cryptography/libmsoc.a

all: clean winlibs

Expand Down

0 comments on commit d5cf75b

Please sign in to comment.