Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Miosix Kernel
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
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
Avionics
Software Development
Miosix Kernel
Commits
93b6a572
Commit
93b6a572
authored
9 years ago
by
Alain
Committed by
Federico
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Compiler output beautified
Signed-off-by:
Terraneo Federico
<
fede.tft@miosix.org
>
parent
f19a77e3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+16
-5
16 additions, 5 deletions
Makefile
miosix/Makefile
+18
-5
18 additions, 5 deletions
miosix/Makefile
with
34 additions
and
10 deletions
Makefile
+
16
−
5
View file @
93b6a572
...
...
@@ -8,6 +8,14 @@ KPATH := miosix
CONFPATH
:=
$(
KPATH
)
include
$(CONFPATH)/config/Makefile.inc
ifeq
("$(BUILD_VERBOSE)","1")
Q
:=
@
ECHO
:=
@echo
else
Q
:=
ECHO
:=
@true
endif
##
## List here subdirectories which contains makefiles
##
...
...
@@ -79,17 +87,20 @@ main: main.elf
$(
SZ
)
main.elf
main.elf
:
$(OBJ) all-recursive
@
echo
"linking
"
$(
CXX
)
$(
LFLAGS
)
-o
main.elf
$(
OBJ
)
$(
KPATH
)
/
$(
BOOT_FILE
)
$(
LINK_LIBS
)
$(
ECHO
)
"[LD] main.elf
"
$(
Q
)
$(
CXX
)
$(
LFLAGS
)
-o
main.elf
$(
OBJ
)
$(
KPATH
)
/
$(
BOOT_FILE
)
$(
LINK_LIBS
)
%.o
:
%.s
$(
AS
)
$(
AFLAGS
)
$<
-o
$@
$(
ECHO
)
"[AS]
$<
"
$(
Q
)$(
AS
)
$(
AFLAGS
)
$<
-o
$@
%.o
:
%.c
$(
CC
)
$(
DFLAGS
)
$(
CFLAGS
)
$<
-o
$@
$(
ECHO
)
"[CC]
$<
"
$(
Q
)$(
CC
)
$(
DFLAGS
)
$(
CFLAGS
)
$<
-o
$@
%.o
:
%.cpp
$(
CXX
)
$(
DFLAGS
)
$(
CXXFLAGS
)
$<
-o
$@
$(
ECHO
)
"[CXX]
$<
"
$(
Q
)$(
CXX
)
$(
DFLAGS
)
$(
CXXFLAGS
)
$<
-o
$@
#pull in dependecy info for existing .o files
-include
$(OBJ:.o=.d)
This diff is collapsed.
Click to expand it.
miosix/Makefile
+
18
−
5
View file @
93b6a572
...
...
@@ -6,6 +6,14 @@ MAKEFILE_VERSION := 1.06
## KPATH and CONFPATH are forwarded by the parent Makefile
include
$(CONFPATH)/config/Makefile.inc
ifeq
("$(BUILD_VERBOSE)","1")
Q
:=
ECHO
:=
@true
else
Q
:=
@
ECHO
:=
@echo
endif
## List of all Miosix OS source files that have no special requirements
## and that must be built for each architecture (both .c and .cpp)
## These files will end up in libmiosix.a
...
...
@@ -64,21 +72,26 @@ DFLAGS := -MMD -MP
## The file stage_1_boot.o is compiled separately because
## it must not end up in libmiosix.a
all
:
$(OBJ) $(BOOT_FILE)
perl _tools/check_global_objects.pl
$(
OBJ
)
$(
AR
)
rcs libmiosix.a
$(
OBJ
)
$(
ECHO
)
"[PERL] Checking global objects"
$(
Q
)
perl _tools/check_global_objects.pl
$(
OBJ
)
$(
ECHO
)
"[AR] libmiosix.a"
$(
Q
)$(
AR
)
rcs libmiosix.a
$(
OBJ
)
clean
:
-
rm
-f
$(
OBJ
)
$(
BOOT_FILE
)
libmiosix.a
$(
OBJ:.o
=
.d
)
-
rm
-f
$(
BOOT_FILE:.o
=
.d
)
%.o
:
%.s
$(
AS
)
$(
AFLAGS
)
$<
-o
$@
$(
ECHO
)
"[AS]
$<
"
$(
Q
)$(
AS
)
$(
AFLAGS
)
$<
-o
$@
%.o
:
%.c
$(
CC
)
$(
DFLAGS
)
$(
CFLAGS
)
$<
-o
$@
$(
ECHO
)
"[CC]
$<
"
$(
Q
)$(
CC
)
$(
DFLAGS
)
$(
CFLAGS
)
$<
-o
$@
%.o
:
%.cpp
$(
CXX
)
$(
DFLAGS
)
$(
CXXFLAGS
)
$<
-o
$@
$(
ECHO
)
"[CXX]
$<
"
$(
Q
)$(
CXX
)
$(
DFLAGS
)
$(
CXXFLAGS
)
$<
-o
$@
#pull in dependecy info for existing .o files
-include
$(OBJ:.o=.d)
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