Created
April 29, 2020 09:53
-
-
Save quocle108/92613b5a1b90405314a04f44b1ec7add to your computer and use it in GitHub Desktop.
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
| # Specify the source files, target files, the build directories, | |
| # and the install directory | |
| EXECDIR = phone | |
| STATICDIR = staticlib | |
| DYNAMICDIR = dynamiclib | |
| LIBS = $(STATICLIB) $(DYNAMICLIB) | |
| # All the targets in this makefile are phony | |
| .PHONY: all hardware software phone | |
| # Default target | |
| all: phone | |
| # The targets hardware, software, and phone represent | |
| # directories; the command script invokes make in each directory | |
| # cmd is the command of sub-directory, this should be input from CMD | |
| hardware: $(STATICDIR) | |
| $(MAKE) --directory=$^ $(cmd) | |
| software: $(DYNAMICDIR) | |
| $(MAKE) --directory=$^ $(cmd) | |
| phone: | |
| $(MAKE) --directory=$@ $(cmd) | |
| # This rule indicates that the default target of the makefile | |
| # in directory phone depends on the default targets of | |
| # the makefiles in the directories hardware and software | |
| .PHONY: phone | |
| phone: hardware software |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment