forked from Imagelibrary/rtems
Incorporated Ralf Corsepius' idea for new -q flags to properly support
"gmake debug".
This commit is contained in:
@@ -8,10 +8,14 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: start.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: start.o%s} \
|
||||||
|
%{qrtems_debug: start_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: start.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: start.o%s} \
|
||||||
|
%{qrtems_debug: start_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: start.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: start.o%s} \
|
||||||
|
%{qrtems_debug: start_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: start.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: start.o%s} \
|
||||||
|
%{qrtems_debug: start_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: start.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: start.o%s} \
|
||||||
|
%{qrtems_debug: start_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e _start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e _start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: start.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: start.o%s} \
|
||||||
|
%{qrtems_debug: start_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: start332.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: start332.o%s} \
|
||||||
|
%{qrtems_debug: start332_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: start68k.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: start68k.o%s} \
|
||||||
|
%{qrtems_debug: start68k_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: start302.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: start302.o%s} \
|
||||||
|
%{qrtems_debug: start302_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: start360.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: start360.o%s} \
|
||||||
|
%{qrtems_debug: start360_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: start.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: start.o%s} \
|
||||||
|
%{qrtems_debug: start_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: start.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: start.o%s} \
|
||||||
|
%{qrtems_debug: start_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: start.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: start.o%s} \
|
||||||
|
%{qrtems_debug: start_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: start.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: start.o%s} \
|
||||||
|
%{qrtems_debug: start_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -7,11 +7,19 @@
|
|||||||
*cpp:
|
*cpp:
|
||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
|
*link:
|
||||||
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: start.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: start.o%s} \
|
||||||
|
%{qrtems_debug: start_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: start302.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: start302.o%s} \
|
||||||
|
%{qrtems_debug: start302_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: idt_csu.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: idt_csu.o%s} \
|
||||||
|
%{qrtems_debug: idt_csu_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: idt_csu.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: idt_csu.o%s} \
|
||||||
|
%{qrtems_debug: idt_csu_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: ecrti%O%s --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: ecrti%O%s --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: }
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: } \
|
||||||
|
%{qrtems_debug: }}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -u __vectors -u download_entry -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -u __vectors -u download_entry -N -e start}
|
||||||
|
|||||||
@@ -8,10 +8,15 @@
|
|||||||
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
|
||||||
|
|
||||||
*lib:
|
*lib:
|
||||||
%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
|
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
|
||||||
|
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
|
||||||
|
-lc -lgcc --end-group \
|
||||||
|
%{!qnolinkcmds: -T linkcmds%s}}
|
||||||
|
|
||||||
*startfile:
|
*startfile:
|
||||||
%{!qrtems: %(old_startfile)} %{qrtems: startsis.o%s}
|
%{!qrtems: %(old_startfile)} %{qrtems: \
|
||||||
|
%{!qrtems_debug: startsis.o%s} \
|
||||||
|
%{qrtems_debug: startsis_g.o%s}}
|
||||||
|
|
||||||
*link:
|
*link:
|
||||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||||
|
|||||||
@@ -71,6 +71,10 @@ endif
|
|||||||
# debug flag; typically -g
|
# debug flag; typically -g
|
||||||
CFLAGS_DEBUG_V+=-g -Wno-unused
|
CFLAGS_DEBUG_V+=-g -Wno-unused
|
||||||
|
|
||||||
|
ifeq ($(RTEMS_USE_GCC272),no)
|
||||||
|
CFLAGS_DEBUG_V+=-qrtems_debug
|
||||||
|
endif
|
||||||
|
|
||||||
# when debugging, optimize flag: typically empty
|
# when debugging, optimize flag: typically empty
|
||||||
# some compilers do allow optimization with their "-g"
|
# some compilers do allow optimization with their "-g"
|
||||||
#CFLAGS_DEBUG_OPTIMIZE_V=
|
#CFLAGS_DEBUG_OPTIMIZE_V=
|
||||||
|
|||||||
@@ -45,6 +45,13 @@ DEFINES +=
|
|||||||
CPPFLAGS +=
|
CPPFLAGS +=
|
||||||
CFLAGS +=
|
CFLAGS +=
|
||||||
|
|
||||||
|
#
|
||||||
|
# CFLAGS_DEBUG_V are used when the `make debug' target is built.
|
||||||
|
# To link your application with the non-optimized RTEMS routines,
|
||||||
|
# uncomment the following line:
|
||||||
|
# CFLAGS_DEBUG_V += -qrtems_debug
|
||||||
|
#
|
||||||
|
|
||||||
LD_PATHS += xxx-your-EXTRA-library-paths-go-here, if any
|
LD_PATHS += xxx-your-EXTRA-library-paths-go-here, if any
|
||||||
LD_LIBS += xxx-your-libraries-go-here eg: -lvx
|
LD_LIBS += xxx-your-libraries-go-here eg: -lvx
|
||||||
LDFLAGS +=
|
LDFLAGS +=
|
||||||
|
|||||||
@@ -71,6 +71,10 @@ endif
|
|||||||
# debug flag; typically -g
|
# debug flag; typically -g
|
||||||
CFLAGS_DEBUG_V+=-g -Wno-unused
|
CFLAGS_DEBUG_V+=-g -Wno-unused
|
||||||
|
|
||||||
|
ifeq ($(RTEMS_USE_GCC272),no)
|
||||||
|
CFLAGS_DEBUG_V+=-qrtems_debug
|
||||||
|
endif
|
||||||
|
|
||||||
# when debugging, optimize flag: typically empty
|
# when debugging, optimize flag: typically empty
|
||||||
# some compilers do allow optimization with their "-g"
|
# some compilers do allow optimization with their "-g"
|
||||||
#CFLAGS_DEBUG_OPTIMIZE_V=
|
#CFLAGS_DEBUG_OPTIMIZE_V=
|
||||||
|
|||||||
Reference in New Issue
Block a user