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: improve compatibility with BSD make. #31

Merged
merged 1 commit into from
Dec 1, 2013
Merged

Makefile: improve compatibility with BSD make. #31

merged 1 commit into from
Dec 1, 2013

Conversation

tcort
Copy link
Contributor

@tcort tcort commented Dec 1, 2013

The Makefile contained a couple instances of GNU make specific
syntax. This caused a build error when using BSD make. This
was reported in Issue 29 #29

BSD make wasn't setting $^ in the mon target, so the object files
weren't being listed in the compile command. This is fixed by
replacing $^ with $(OBJ).

BSD make was outputting the object files to the current directory
instead of the src and deps directories as expected due to the
way the generic .c to .o rules were written. This patch rewrites
that rule so that BSD make outputs the object files to the proper
sub-directory.

Tested on NetBSD and Linux with GNU make 3.82 and BSD make 20110606.

The Makefile contained a couple instances of GNU make specific
syntax. This caused a build error when using BSD make. This
was reported in Issue 29 #29

BSD make wasn't setting $^ in the mon target, so the object files
weren't being listed in the compile command. This is fixed by
replacing $^ with $(OBJ).

BSD make was outputting the object files to the current directory
instead of the src and deps directories as expected due to the
way the generic .c to .o rules were written. This patch rewrites
that rule so that BSD make outputs the object files to the proper
sub-directory.

Tested on NetBSD and Linux with GNU make 3.82 and BSD make 20110606.
tj added a commit that referenced this pull request Dec 1, 2013
Makefile: improve compatibility with BSD make.
@tj tj merged commit d8774d3 into tj:master Dec 1, 2013
@tj
Copy link
Owner

tj commented Dec 1, 2013

thanks!

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.

2 participants