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

Generate Makefiles #13

Closed
felixSchl opened this issue Sep 3, 2018 · 3 comments
Closed

Generate Makefiles #13

felixSchl opened this issue Sep 3, 2018 · 3 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@felixSchl
Copy link
Collaborator

When compiling a project, also generate a Makefile that essentially replaces this part:

https://github.com/felixSchl/purescript-c/blob/master/Makefile#L28-L35

with something dynamic.

@felixSchl
Copy link
Collaborator Author

Something like this might suffice, but the problem here are the relative paths to the purescript runtime's (and its' dependencies) object and header files.

@felixSchl
Copy link
Collaborator Author

I am thinking producing a shared object for the runtime plus self-contained header-file might be the best option. This would mean making some of the structs opaque and removing the imports of 3rd party libraries currently included in "purescript.h"?

@felixSchl
Copy link
Collaborator Author

This is sorted and can be seen in action in the examples. It assumes a source distribution of purec. Downstream tools would set the path to the checkout via PUREC_DIR and include mk/target.mk which provides a macro for generating target rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant