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

Makefile bugs #21

Open
shane-mckinney opened this issue Jun 13, 2019 · 5 comments
Open

Makefile bugs #21

shane-mckinney opened this issue Jun 13, 2019 · 5 comments
Assignees

Comments

@shane-mckinney
Copy link
Collaborator

Debug option compiles .o's in -O2 mode

It would be preferable to be able to compile into a build/ dir

@daniellivingston
Copy link
Member

Should we only have the executable put into build/, or should *.o files go there as well? I don't think there are any other build artifacts.

@daniellivingston
Copy link
Member

daniellivingston commented Jun 13, 2019

Note that if we just want the binary only in build/, then something like this could be done:

$ pwd
/somedir/FEHM/
$ mkdir build/
$ cd src && make all EXE=../build/xfehm_v3.3.1

@shane-mckinney
Copy link
Collaborator Author

shane-mckinney commented Jun 13, 2019 via email

@daniellivingston
Copy link
Member

daniellivingston commented Jun 13, 2019

i think its nice for git tracking because you can untrack all of the build related files easier

The .gitignore file is configured to not track build artifacts:

*.o
*.mod
debug/*
build/*
src/dated.f
*.pyc
*DS_Store

But yeah, valid point. @millerta , thoughts on building the binary and build artifacts into build/ instead of src/?

daniellivingston added a commit that referenced this issue Jun 13, 2019
@daniellivingston
Copy link
Member

@shane-mckinney The make debug problem is fixed as of 6fa7057. Take a pull and see if this is what you're after.

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

No branches or pull requests

2 participants