-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating makefiles to improve run/check process
- Loading branch information
1 parent
8f980e6
commit 21ce87d
Showing
10 changed files
with
80 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
SUBDIRS = src example test | ||
|
||
COPRCC := $(shell command -v coprcc 2> /dev/null) | ||
ifndef COPRCC | ||
$(warning Building libshmem_esdk.a without COPRTHR-2 SDK!) | ||
SUBDIRS = src | ||
endif | ||
|
||
.PHONY: all $(SUBDIRS) check run clean distclean | ||
|
||
all: $(SUBDIRS) | ||
|
||
src: | ||
ifndef COPRCC | ||
$(MAKE) -C src -f Makefile.esdk | ||
else | ||
$(MAKE) -C src | ||
endif | ||
|
||
# dependencies on libshmem | ||
example: src | ||
test: src | ||
|
||
check: src | ||
$(MAKE) -C test check; | ||
|
||
run: all | ||
for d in $(SUBDIRS); do \ | ||
$(MAKE) -C $$d run; \ | ||
done | ||
|
||
clean: | ||
for d in $(SUBDIRS); do \ | ||
$(MAKE) -C $$d clean; \ | ||
done | ||
|
||
distclean: | ||
for d in $(SUBDIRS); do \ | ||
$(MAKE) -C $$d distclean; \ | ||
done |
This file contains 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 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 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 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 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 |
---|---|---|
|
@@ -17,6 +17,9 @@ TARGETS = main.x $(KERNEL) | |
|
||
all: $(TARGETS) | ||
|
||
run: main.x | ||
./$< | ||
|
||
.PHONY: clean distclean | ||
|
||
.SUFFIXES: | ||
|
This file contains 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 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 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 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