Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
a6547ee9
Commit
a6547ee9
authored
9 years ago
by
Kaspar Schleiser
Browse files
Options
Downloads
Patches
Plain Diff
pkg: oonf_api: adapt to use pkg.mk
parent
5586d8f1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pkg/oonf_api/Makefile
+5
-26
5 additions, 26 deletions
pkg/oonf_api/Makefile
pkg/oonf_api/Makefile.include
+1
-1
1 addition, 1 deletion
pkg/oonf_api/Makefile.include
with
6 additions
and
27 deletions
pkg/oonf_api/Makefile
+
5
−
26
View file @
a6547ee9
PKG_NAME
=
oonf_api
PKG_URL
=
https://github.com/OLSR/OONF.git
PKG_VERSION
=
v0.3.0
PKG_DIR
=
$(
CURDIR
)
/
$(
PKG_NAME
)
ifneq
($(RIOTBASE),)
INCLUDES
+=
-I
$(
RIOTBASE
)
/sys/include
-I
$(
RIOTBASE
)
/sys/net/include
\
-I
$(
RIOTBASE
)
/sys/posix/include
endif
MODULE
:=
$(
shell
basename
$(
CURDIR
)
)
MODULE
:=
$(
PKG_NAME
)
.PHONY
:
all
clean patch reset
.PHONY
:
all
all
:
patch
"
$(
MAKE
)
"
-C
$(
PKG_DIR
)
all
:
download
"
$(
MAKE
)
"
-C
$(
PKG_
BUILD
DIR
)
"
$(
MAKE
)
"
$(
BINDIR
)$(
MODULE
)
.a
patch
:
$(PKG_DIR)/Makefile
$(PKG_DIR)/Makefile
:
$(PKG_DIR)/.git/config
cd
"
$(
PKG_DIR
)
"
&&
git am
--ignore-whitespace
"
$(
CURDIR
)
"
/
*
.patch
$(PKG_DIR)/.git/config
:
test
-d
"
$(
PKG_DIR
)
"
||
$(
GITCACHE
)
clone
"
$(
PKG_URL
)
"
"
$(
PKG_VERSION
)
"
"
$(
PKG_DIR
)
"
clean
::
@
echo
"Cleaning up oonf_api package..."
@
cd
"
$(
PKG_DIR
)
"
2> /dev/null
>
/dev/null
&&
\
git clean
-x
-f
&&
\
git am
--abort
&&
\
git reset
--hard
"
$(
PKG_VERSION
)
"
&&
\
$(
MAKE
)
patch
||
true
distclean
::
rm
-rf
$(
PKG_DIR
)
$(BINDIR)$(MODULE).a
:
$(BINDIR)oonf_*.a
mkdir
-p
$(
BINDIR
)$(
MODULE
);
cd
$(
BINDIR
)$(
MODULE
);
for
var
in
$?
;
do
ar
-x
$$
var
;
done
;
ar
-r
-c
-s
$(
BINDIR
)$(
MODULE
)
.a
*
.o
Makefile.include
:
@
true
include
$(RIOTBASE)/pkg/pkg.mk
This diff is collapsed.
Click to expand it.
pkg/oonf_api/Makefile.include
+
1
−
1
View file @
a6547ee9
INCLUDES
+=
-I
$(
RIOTPKG
)
/oonf_api
/oonf_api/src-api
INCLUDES
+=
-I
$(
BINDIR
)
/pkg
/oonf_api/src-api
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment