-
Notifications
You must be signed in to change notification settings - Fork 23
CA-407107: makefile fixes to honour LDFLAGS #23
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
Draft
edwintorok
wants to merge
5
commits into
xenserver:master
Choose a base branch
from
edwintorok:private/edvint/build
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
5ba1ff9
CA-407107: drop release mode, it is unused
edwintorok 33447f5
CA-407107: Use -Og
edwintorok 68a55d4
CA-407107: honor LDFLAGS from rpmbuild
edwintorok 9df8775
CA-407107: Use -Og
edwintorok e0d8153
CA-407107: make rules parallel-build-safe and enable parallel builds
edwintorok File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,6 @@ include/mtcerrno.h | |
scripts/generr | ||
scripts/generr.o | ||
scripts/ha_errnorc | ||
stubs/cfread | ||
*.o | ||
*.a |
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
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -2,63 +2,37 @@ | |||||||||||||||||||||
# Top-level Makefile | ||||||||||||||||||||||
# | ||||||||||||||||||||||
# This makefile installs the debug version (compiled without NDEBUG). | ||||||||||||||||||||||
# To install release version, do "make release-install" or | ||||||||||||||||||||||
# modify this makefile to do release install by default. See #here below. | ||||||||||||||||||||||
# | ||||||||||||||||||||||
|
||||||||||||||||||||||
.PHONY: build clean debug release | ||||||||||||||||||||||
.PHONY: build clean debug | ||||||||||||||||||||||
|
||||||||||||||||||||||
all: debug release | ||||||||||||||||||||||
all: debug | ||||||||||||||||||||||
|
||||||||||||||||||||||
debug: | ||||||||||||||||||||||
@mkdir -p debug | ||||||||||||||||||||||
@cd include; make DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd lib; make DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd daemon; make DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd commands; make DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd scripts; make DEFMAKE=default-debug.mk | ||||||||||||||||||||||
$(MAKE) -C include DEFMAKE=default-debug.mk | ||||||||||||||||||||||
$(MAKE) -C lib DEFMAKE=default-debug.mk | ||||||||||||||||||||||
$(MAKE) -C daemon DEFMAKE=default-debug.mk | ||||||||||||||||||||||
$(MAKE) -C commands DEFMAKE=default-debug.mk | ||||||||||||||||||||||
$(MAKE) -C scripts DEFMAKE=default-debug.mk | ||||||||||||||||||||||
|
||||||||||||||||||||||
release: | ||||||||||||||||||||||
@mkdir -p release | ||||||||||||||||||||||
@cd include; make DEFMAKE=default-release.mk | ||||||||||||||||||||||
@cd lib; make DEFMAKE=default-release.mk | ||||||||||||||||||||||
@cd daemon; make DEFMAKE=default-release.mk | ||||||||||||||||||||||
@cd commands; make DEFMAKE=default-release.mk | ||||||||||||||||||||||
@cd scripts; make DEFMAKE=default-release.mk | ||||||||||||||||||||||
|
||||||||||||||||||||||
clean: debug-clean release-clean | ||||||||||||||||||||||
clean: debug-clean | ||||||||||||||||||||||
|
||||||||||||||||||||||
debug-clean: | ||||||||||||||||||||||
@cd include; make clean DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd lib; make clean DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd daemon; make clean DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd commands; make clean DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd scripts; make clean DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd include; $(MAKE) clean DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd lib; $(MAKE) clean DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd daemon; $(MAKE) clean DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd commands; $(MAKE) clean DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd scripts; $(MAKE) clean DEFMAKE=default-debug.mk | ||||||||||||||||||||||
-rmdir debug | ||||||||||||||||||||||
|
||||||||||||||||||||||
release-clean: | ||||||||||||||||||||||
@cd include; make clean DEFMAKE=default-release.mk | ||||||||||||||||||||||
@cd lib; make clean DEFMAKE=default-release.mk | ||||||||||||||||||||||
@cd daemon; make clean DEFMAKE=default-release.mk | ||||||||||||||||||||||
@cd commands; make clean DEFMAKE=default-release.mk | ||||||||||||||||||||||
@cd scripts; make clean DEFMAKE=default-release.mk | ||||||||||||||||||||||
-rmdir release | ||||||||||||||||||||||
|
||||||||||||||||||||||
#here | ||||||||||||||||||||||
install: debug-install | ||||||||||||||||||||||
|
||||||||||||||||||||||
debug-install: | ||||||||||||||||||||||
@mkdir -p debug | ||||||||||||||||||||||
@cd include; make install DESTDIR=$(DESTDIR) DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd lib; make install DESTDIR=$(DESTDIR) DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd daemon; make install DESTDIR=$(DESTDIR) DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd commands; make install DESTDIR=$(DESTDIR) DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd scripts; make install DESTDIR=$(DESTDIR) DEFMAKE=default-debug.mk | ||||||||||||||||||||||
|
||||||||||||||||||||||
release-install: | ||||||||||||||||||||||
@mkdir -p release | ||||||||||||||||||||||
@cd include; make install DESTDIR=$(DESTDIR) DEFMAKE=default-release.mk | ||||||||||||||||||||||
@cd lib; make install DESTDIR=$(DESTDIR) DEFMAKE=default-release.mk | ||||||||||||||||||||||
@cd daemon; make install DESTDIR=$(DESTDIR) DEFMAKE=default-release.mk | ||||||||||||||||||||||
@cd commands; make install DESTDIR=$(DESTDIR) DEFMAKE=default-release.mk | ||||||||||||||||||||||
@cd scripts; make install DESTDIR=$(DESTDIR) DEFMAKE=default-release.mk | ||||||||||||||||||||||
@cd include; $(MAKE) install DESTDIR=$(DESTDIR) DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd lib; $(MAKE) install DESTDIR=$(DESTDIR) DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd daemon; $(MAKE) install DESTDIR=$(DESTDIR) DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd commands; $(MAKE) install DESTDIR=$(DESTDIR) DEFMAKE=default-debug.mk | ||||||||||||||||||||||
@cd scripts; $(MAKE) install DESTDIR=$(DESTDIR) DEFMAKE=default-debug.mk | ||||||||||||||||||||||
Comment on lines
+34
to
+38
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.