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

Added header file dependencies to Makefile #67

Conversation

petterreinholdtsen
Copy link
Contributor

@petterreinholdtsen petterreinholdtsen commented Feb 23, 2022

Change lifted from #59 by Petter Reinholdtsen.

Make sure to recompile *everything* if a header file has been modified
to prevent random crashes due to struct misalignment

Change lifted from davidrmiller#59 by Petter Reinholdtsen.
petterreinholdtsen added a commit to petterreinholdtsen/biosim4 that referenced this pull request Feb 23, 2022
Build binary using all source files src/*.cpp, and let them depend on all
src/*.h, and only build either release or debug builds, not both.

This include the fixes from pull requests davidrmiller#67 and davidrmiller#68, and provide a fix
for issue davidrmiller#65.
@petterreinholdtsen
Copy link
Contributor Author

Better to use the fix in #70. Closing.

@petterreinholdtsen petterreinholdtsen deleted the make-header-deps branch February 23, 2022 14:50
petterreinholdtsen added a commit to petterreinholdtsen/biosim4 that referenced this pull request Feb 23, 2022
Build binary using all source files src/*.cpp, and let them depend on all
src/*.h, and only build either release or debug builds, not both.

This include the fixes from pull requests davidrmiller#67 and davidrmiller#68.
Fixes davidrmiller#65.
davidrmiller added a commit that referenced this pull request Jul 30, 2022
* Rewrote Makefile to a simpler and hand made edition

Build binary using all source files src/*.cpp, and let them depend on all
src/*.h, and only build either release or debug builds, not both.

This include the fixes from pull requests #67 and #68.
Fixes #65.

* Simplify Makefile

* Tweak CXXFLAGS and OBJ_DIR

* Create obj dirs as needed

* Change obj dir for previous Makefile compatibility

Co-authored-by: Petter Reinholdtsen <[email protected]>
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.

1 participant