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

Support for making libraries #22

Open
ghost opened this issue Feb 6, 2020 · 1 comment
Open

Support for making libraries #22

ghost opened this issue Feb 6, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 6, 2020

Hello,

I use your GenercMakefiles in every of my projects as I find them very convenient and easier to use than other Make alternative.

Is it possible to add the option to build .a libraries instead of executables?

Best regards.

@mbcrawfo
Copy link
Owner

mbcrawfo commented Feb 9, 2020

Hi @marespiaut, glad you have found this to be useful!

I don't have a good setup to test this at the moment, but I believe it should be a fairly simple change to make the file build libraries. Be sure you've set BIN_NAME to library-name.a, then edit line 209 to be $(CMD_PREFIX)ar rcs $@ $^. There a few other things you may want to clean up, for example the symlink created here is pretty pointless with a library.

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

1 participant