Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
Mock Turtle
Commits
d9225017
Commit
d9225017
authored
May 07, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:tools: add variable for tools destination and generic PREFIX
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
9bc39a0f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
mockturtle-tools.spec
distribution/mockturtle-tools.spec
+1
-1
Makefile
software/tools/Makefile
+6
-5
No files found.
distribution/mockturtle-tools.spec
View file @
d9225017
...
@@ -28,7 +28,7 @@ make -C software/lib EXTRACFLAGS="$RPM_OPT_FLAGS"
...
@@ -28,7 +28,7 @@ make -C software/lib EXTRACFLAGS="$RPM_OPT_FLAGS"
make -C software/tools EXTRACFLAGS="$RPM_OPT_FLAGS"
make -C software/tools EXTRACFLAGS="$RPM_OPT_FLAGS"
%install
%install
make -C software/tools
DESTDIR=%{buildroot}/usr/
install
make -C software/tools
BINDESTDIR=%{buildroot}/%{_bindir}
install
%files
%files
%license LICENSES/GPL-3.0-or-later.txt
%license LICENSES/GPL-3.0-or-later.txt
...
...
software/tools/Makefile
View file @
d9225017
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
REPO_PARENT
?=
../..
REPO_PARENT
?=
../..
-include
$(REPO_PARENT)/parent_common.mk
-include
$(REPO_PARENT)/parent_common.mk
DESTDIR
?=
/usr/local
PREFIX
?=
/usr/local
BINDESTDIR
?=
$(PREFIX)
/bin
TRTL
?=
../..
TRTL
?=
../..
TRTL_SW
=
$(TRTL)
/software
TRTL_SW
=
$(TRTL)
/software
...
@@ -33,12 +34,12 @@ PROGS += mockturtle-gdbserver
...
@@ -33,12 +34,12 @@ PROGS += mockturtle-gdbserver
all
:
$(PROGS)
all
:
$(PROGS)
install
:
install
:
install
-d
$(
DESTDIR)
/bin
install
-d
$(
BINDESTDIR)
install
-D
$(PROGS)
$(
DESTDIR)
/bin
install
-D
$(PROGS)
$(
BINDESTDIR)
uninstall
:
uninstall
:
rm
-f
$
(
addprefix
$(
DESTDIR)
/bin
/,
$(PROGS)
)
rm
-f
$
(
addprefix
$(
BINDESTDIR)
/,
$(PROGS)
)
rmdir
--ignore-fail-on-non-empty
$(
DESTDIR)
/bin
rmdir
--ignore-fail-on-non-empty
$(
BINDESTDIR)
%
:
%.c $(TRTL_SW)/lib/libmockturtle.a
%
:
%.c $(TRTL_SW)/lib/libmockturtle.a
$(CC)
$(CFLAGS)
$(LDFLAGS)
$^
-o
$@
$(LDLIBS)
$(CC)
$(CFLAGS)
$(LDFLAGS)
$^
-o
$@
$(LDLIBS)
...
...
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