Skip to content

Conversation

@jlaura
Copy link

@jlaura jlaura commented Jul 6, 2017

This PR adds an OS X Makefile.

I have done this in order to support builds of the CSM via conda-forge on OS X, Linux, and Windows. This is a widely used python package management environment that supports linking Python with C (C++) languages.

I have tested this on OS X 10.12.1 by building the shared library and accessing via our CyCSM Wrapper.

$(LD) $(COPTS) $(LDOPTS) $^ $(LIBS) -o $@
@echo $(LIBRARY)
@echo $@
$(LD) $(COPTS) $(LDOPTS) $^ $(LIBS) -o $(LIBRARY)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think these changes are necessary. $@ should be the same as $(LIBRARY)

COPTS=-fPIC -O2 -m64 -Wall
LDOPTS=-shared -Wl,-soname,$(LIBRARY)
#CXXFLAGS=-std=c++11
COPTS=-fPIC -O2 -m64 -Wall -std=c++11 -c
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There shouldn't be anything in this library that requires C++11 support

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c++11 is now required by MSP, and some new features we are looking to add (supporting multiple correlation functions) want to utilized std::shared_ptr, so this will be necessary going forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants