Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RTEMS-build-workflows
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thanassis Tsiodras
RTEMS-build-workflows
Commits
224c30b4
Commit
224c30b4
authored
Apr 07, 2016
by
Thanassis Tsiodras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No reason for separation of sources in FPU/NONFPU ones
parent
e493c6bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
36 deletions
+17
-36
OAR/Makefile
OAR/Makefile
+17
-36
No files found.
OAR/Makefile
View file @
224c30b4
...
...
@@ -28,28 +28,29 @@ CROSS_PREFIX=sparc-rtems4.11
#endif
# The directories containing the source files, separated by ':'
#
# DEAR USER, YOU MUST EDIT THIS
VPATH
=
src
# Your source files: regardless of where they reside in the source tree,
# VPATH will locate them...
NONFPU_SRC
=
\
#
# DEAR USER, YOU MUST EDIT THIS
SRC
=
\
init.c
\
task1.c
\
task2.c
# Code that must be compiled with native FPU enabled (when FPU=1 is passed)
FPU_SRC
=
\
task1.c
SUFFIX
=
$(CFG)
.
$(FPU_SUFFIX)
.
$(LEON)
# Build a Dependency list and an Object list, by replacing the .c
# extension to .d for dependency files, and .o for object files.
NONFPU_DEP
=
$(
patsubst
%.c, deps.
$(SUFFIX)
/NONFPU_%.d,
${NONFPU_SRC}
)
FPU_DEP
=
$(
patsubst
%.c, deps.
$(SUFFIX)
/FPU_%.d,
${FPU_SRC}
)
NONFPU_OBJ
=
$(
patsubst
%.c, objs.
$(SUFFIX)
/NONFPU_%.o,
${NONFPU_SRC}
)
FPU_OBJ
=
$(
patsubst
%.c, objs.
$(SUFFIX)
/FPU_%.o,
${FPU_SRC}
)
DEP
=
$(
patsubst
%.c, deps.
$(SUFFIX)
/%.d,
${SRC}
)
OBJ
=
$(
patsubst
%.c, objs.
$(SUFFIX)
/%.o,
${SRC}
)
# Your final binary
#
# DEAR USER, YOU MUST EDIT THIS
TARGET
=
fputest
# What compiler to use for generating dependencies:
...
...
@@ -74,12 +75,9 @@ else
CFLAGS
+=
${COMMON}
-g
-O2
${INCLUDEFLAGS}
endif
# Should we generate native FPU instructions for the FPU_SRC?
ifeq
($(FPU),1)
CFLAGS_FPU
:=
${CFLAGS}
else
# Should we generate native FPU instructions for the SRC or not?
ifeq
($(FPU),0)
CFLAGS
+=
-msoft-float
CFLAGS_FPU
:=
${CFLAGS}
LDFLAGS
+=
-msoft-float
endif
...
...
@@ -108,7 +106,7 @@ endif
endif
bin.$(SUFFIX)/${TARGET}
:
${
NONFPU_OBJ} ${FPU_
OBJ} | inform
bin.$(SUFFIX)/${TARGET}
:
${OBJ} | inform
@
mkdir
-p
$(
dir
$@
)
ifeq
($(V),1)
$(CC)
-g
-o
$@
$^
${LDFLAGS}
...
...
@@ -122,7 +120,7 @@ ifeq ($(CFG),release)
endif
@
echo
Built with RTEMS at
${RTEMS_LIB}
for
${LEON}
.
objs.$(SUFFIX)/
NONFPU_
%.o
:
%.c
objs.$(SUFFIX)/%.o
:
%.c
@
mkdir
-p
$(
dir
$@
)
ifeq
($(V),1)
$(CC)
-c
$(CFLAGS)
-o
$@
$<
...
...
@@ -131,27 +129,11 @@ else
@
$(CC)
-c
$(CFLAGS)
-o
$@
$<
endif
objs.$(SUFFIX)/FPU_%.o
:
%.c
@
mkdir
-p
$(
dir
$@
)
ifeq
($(V),1)
$(CC)
-c
$(CFLAGS_FPU)
-o
$@
$<
else
@
echo
[
CC]
$@
@
$(CC)
-c
$(CFLAGS_FPU)
-o
$@
$<
endif
deps.$(SUFFIX)/NONFPU_%.d
:
%.c
@
mkdir
-p
$(
dir
$@
)
@
echo
Generating dependencies
for
$<
@
set
-e
;
$(CDEP)
-MM
-MP
$(INCLUDEFLAGS)
$<
>
$@
.
$$$$
;
\
sed
's,\($*\)\.o[ :]*,objs.
$(CFG)
\/NONFPU_\1.o $@ : ,g'
<
$@
.
$$$$
>
$@
;
\
rm
-f
$@
.
$$$$
deps.$(SUFFIX)/FPU_%.d
:
%.c
deps.$(SUFFIX)/%.d
:
%.c
@
mkdir
-p
$(
dir
$@
)
@
echo
Generating dependencies
for
$<
@
set
-e
;
$(CDEP)
-MM
-MP
$(INCLUDEFLAGS)
$<
>
$@
.
$$$$
;
\
sed
's,\($*\)\.o[ :]*,objs.
$(CFG)
\/
NONFPU_
\1.o $@ : ,g'
<
$@
.
$$$$
>
$@
;
\
sed
's,\($*\)\.o[ :]*,objs.
$(CFG)
\/\1.o $@ : ,g'
<
$@
.
$$$$
>
$@
;
\
rm
-f
$@
.
$$$$
clean
:
...
...
@@ -161,6 +143,5 @@ clean:
# which are auto-generated. Don't fail if they are missing
# (-include), since they will be missing in the first invocation!
ifneq
($(MAKECMDGOALS),clean)
-include
${NONFPU_DEP}
-include
${FPU_DEP}
-include
${DEP}
endif
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