Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Network Interface Card
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Network Interface Card
Commits
8549bcd1
Commit
8549bcd1
authored
Apr 04, 2019
by
Miguel Jimenez Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create the main Makefile for software sources.
parent
cf5bd786
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
Makefile
sw/Makefile
+36
-0
No files found.
sw/Makefile
0 → 100644
View file @
8549bcd1
# include parent_common.mk for buildsystem's defines
#use absolute path for REPO_PARENT
REPO_PARENT
=
$(
shell
/bin/pwd
)
/..
-include
$(REPO_PARENT)/parent_common.mk
# export git tree for subdirs
GIT_VERSION
?=
$(
shell
git describe
--dirty
--long
--tags
)
export
GIT_VERSION
# by default use the fmc-bus within the repository
FMC_BUS
?=
fmc-bus
# FMC_BUS_ABS has to be absolut path, due to beeing passed to the Kbuild
FMC_BUS_ABS
?=
$
(
abspath
$(FMC_BUS)
)
export
FMC_BUS_ABS
DIRS
=
$(FMC_BUS_ABS)
kernel
.PHONY
:
all clean modules install modules_install $(DIRS)
all clean modules install modules_install
:
$(DIRS)
clean
:
TARGET = clean
modules
:
TARGET = modules
install
:
TARGET = install
modules_install
:
TARGET = modules_install
$(DIRS)
:
$(MAKE)
-C
$@
$(TARGET)
$(FMC_BUS_ABS)
:
fmc-bus-init_repo
# init submodule if missing
fmc-bus-init_repo
:
@
test
-d
$(FMC_BUS_ABS)
/doc
||
(
echo
"Checking out submodule
$(FMC_BUS_ABS)
"
;
git submodule update
--init
$(FMC_BUS_ABS)
)
kernel
:
$(FMC_BUS_ABS)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment