Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds an OS X Makefile #4

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Adds an OS X Makefile #4

wants to merge 6 commits into from

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