Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Beam Positoning Monitor - Software
Commits
f1546b6c
Commit
f1546b6c
authored
Feb 05, 2016
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts/Makefile: add makefile for integration with our build system
parent
075f0c13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
Makefile
scripts/Makefile
+41
-0
No files found.
scripts/Makefile
0 → 100644
View file @
f1546b6c
# Set your cross compile prefix with CROSS_COMPILE variable
CROSS_COMPILE
?=
CMDSEP
=
;
CC
?=
$(CROSS_COMPILE)
gcc
AR
?=
$(CROSS_COMPILE)
ar
LD
?=
$(CROSS_COMPILE)
ld
OBJDUMP
?=
$(CROSS_COMPILE)
objdump
OBJCOPY
?=
$(CROSS_COMPILE)
objcopy
SIZE
?=
$(CROSS_COMPILE)
size
MAKE
?=
make
PREFIX
?=
PWD
=
$(
shell
pwd
)
# OS information
SERVICE_NAME
=
bpm-sw
INIT_SYSTEM
=
$(
shell
./get-init-system.sh
)
SCRIPTS_FULL_NAME
=
$(
shell
cd
$(INIT_SYSTEM)
&&
find
.
-type
f
)
# Strip off a leading ./
SCRIPTS
=
$
(
SCRIPTS_FULL_NAME:./%
=
%
)
.PHONY
:
all clean mrproper install uninstall
all
:
# Makefile rules
install
:
$
(
foreach script,
$(SCRIPTS)
,cp
--preserve
=
mode
$(INIT_SYSTEM)
/
$(script)
${
PREFIX
}
/
$(script)
$(CMDSEP)
)
./enable-service.sh
$(SERVICE_NAME)
uninstall
:
./disable-service.sh
$(SERVICE_NAME)
$
(
foreach script,
$(SCRIPTS)
,rm
-f
${
PREFIX
}
/
$(script)
$(CMDSEP)
)
clean
:
mrproper
:
clean
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