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
7bff96c4
Commit
7bff96c4
authored
9 years ago
by
Kaspar Schleiser
Browse files
Options
Downloads
Patches
Plain Diff
pkg: relic: adapt to use pkg.mk
parent
4266453f
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/relic/Makefile
+16
-27
16 additions, 27 deletions
pkg/relic/Makefile
pkg/relic/Makefile.include
+1
-1
1 addition, 1 deletion
pkg/relic/Makefile.include
with
17 additions
and
28 deletions
pkg/relic/Makefile
+
16
−
27
View file @
7bff96c4
RELIC_URL
=
http://github.com/relic-toolkit/relic.git
RELIC_BRANCH
=
cdcfaeef101d18c3231c3b46359c519dd72682e8
PKG_NAME
=
relic
PKG_URL
=
$(
RELIC_URL
)
PKG_VERSION
=
$(
RELIC_BRANCH
)
PKG_DIR
=
$(
CURDIR
)
/
$(
PKG_NAME
)
PKG_URL
=
http://github.com/relic-toolkit/relic.git
PKG_VERSION
=
cdcfaeef101d18c3231c3b46359c519dd72682e8
ifneq
($(RIOTBASE),)
INCLUDES
+=
-I
$(
RIOTBASE
)
/sys/include
-I
$(
RIOTBASE
)
/sys/net/include
\
-I
$(
RIOTBASE
)
/sys/posix/include
-I
$(
RIOTBASE
)
/sys/posix/pnet/include
endif
.PHONY
:
all clean reset
all
:
$(PKG_DIR)/Makefile
"
$(
MAKE
)
"
-C
$(
PKG_DIR
)
&&
\
cp
$(
PKG_DIR
)
/lib/librelic_s.a
$(
BINDIR
)$(
PKG_NAME
)
.a
.PHONY
:
all
$(PKG_DIR)/comp-options.cmake
:
$(PKG_DIR)/.git/config
cd
"
$(
PKG_DIR
)
"
&&
perl ../generate-cmake-xcompile.perl
>
comp-options.cmake
all
:
$(PKG_BUILDDIR)/Makefile
"
$(
MAKE
)
"
-C
$(
PKG_BUILDDIR
)
&&
\
cp
$(
PKG_BUILDDIR
)
/lib/librelic_s.a
$(
BINDIR
)$(
PKG_NAME
)
.a
$(PKG_DIR)/Makefile
:
$(PKG_DIR)/comp-options.cmake
cd
"
$(
PKG_DIR
)
"
&&
COMP
=
"
$(
filter-out -Werror=old-style-definition -Werror=strict-prototypes,
$(
CFLAGS
)
)
"
cmake
-DCMAKE_TOOLCHAIN_FILE
=
comp-options.cmake
-DCHECK
=
off
-DTESTS
=
0
-DBENCH
=
0
-DSHLIB
=
off
-Wno-dev
$(
RELIC_CONFIG_FLAGS
)
.
$(PKG_DIR)/.git/config
:
test
-d
"
$(
PKG_DIR
)
"
||
$(
GITCACHE
)
clone
"
$(
PKG_URL
)
"
"
$(
PKG_VERSION
)
"
"
$(
PKG_DIR
)
"
cd
"
$(
PKG_DIR
)
"
&&
git am
--ignore-whitespace
$(
CURDIR
)
/
*
.patch
./fix-util_print_wo_args.sh .
./fix-old-style-definitions.sh .
$(PKG_BUILDDIR)/comp-options.cmake
:
fix_source
cd
"
$(
PKG_BUILDDIR
)
"
&&
perl
$(
PKG_DIR
)
/generate-cmake-xcompile.perl
>
comp-options.cmake
clean
::
@
echo
"Cleaning up relic package..."
rm
-rf
"
$(
PKG_DIR
)
"
$(PKG_BUILDDIR)/Makefile
:
$(PKG_BUILDDIR)/comp-options.cmake
cd
"
$(
PKG_BUILDDIR
)
"
&&
COMP
=
"
$(
filter-out -Werror=old-style-definition -Werror=strict-prototypes,
$(
CFLAGS
)
)
"
cmake
-DCMAKE_TOOLCHAIN_FILE
=
comp-options.cmake
-DCHECK
=
off
-DTESTS
=
0
-DBENCH
=
0
-DSHLIB
=
off
-Wno-dev
$(
RELIC_CONFIG_FLAGS
)
.
distclean
::
rm
-rf
"
$(
PKG_DIR
)
"
fix_source
:
download
./fix-util_print_wo_args.sh
$(
PKG_BUILDDIR
)
./fix-old-style-definitions.sh
$(
PKG_BUILDDIR
)
Makefile.include
:
@
true
clean
::
@
rm
-rf
$(
BINDIR
)$(
PKG_NAME
)
.a
include
$(RIOTBASE)/pkg/pkg.mk
This diff is collapsed.
Click to expand it.
pkg/relic/Makefile.include
+
1
−
1
View file @
7bff96c4
INCLUDES
+=
-I
$(
RIOTPKG
)
/relic
/relic/include
INCLUDES
+=
-I
$(
BINDIR
)
/pkg
/relic/include
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