Open
Conversation
- Full library file name in ${solib}.
- Target-specific LDFLAGS in ${$@-LDFLAGS}.
- Sources in ${$@-objs}.
- Added ${libdir}, and rules: install-static and install-shared.
- Two-tiered variables so the user can override without affecting
mandatory flags. E.g. CFLAGS -> CFLAGS-y
- Merge all and default - No .o should be a dependency of a phony target - Simplify sco - Mark phony targets - Split clean target - MIMEH*: Split properly into phony and real target, add cleaning
This way, changing a configuration variable is persistent; no need to specify them every time. The .config file is included twice so that only user-specified variables get updated. This is compatible with GNU make 4.4+ and NetBSD make and derivatives. Also added a distclean target to clean the .config file.
The use-solib variable controls which one is used: - use-solib=y => dynamically linked libripmime - use-solib=n (default) => traditional build Added RPATH to support installing to non-standard directories, and -fPIC so the code is relocatable. I see no need to preserve building against the .o files directly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This intends to align the buildsystem with more standard practices and enable better ergonomics for packaging.