This commit is contained in:
QL 2018-12-28 13:46:16 -05:00
parent 365c817e3c
commit a39a56b5ef
65 changed files with 1208 additions and 1149 deletions

View File

@ -5,7 +5,7 @@
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
DOXYFILE_ENCODING = UTF-8 DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "QP/C" PROJECT_NAME = "QP/C"
PROJECT_NUMBER = "6.3.7" PROJECT_NUMBER = "6.3.8"
PROJECT_BRIEF = PROJECT_BRIEF =
PROJECT_LOGO = images/header_logo_ql.png PROJECT_LOGO = images/header_logo_ql.png
OUTPUT_DIRECTORY = OUTPUT_DIRECTORY =
@ -119,8 +119,8 @@ INPUT = \
exa_apps.dox \ exa_apps.dox \
exa_native.dox \ exa_native.dox \
exa_rtos.dox \ exa_rtos.dox \
exa_qutest.dox \
exa_os.dox \ exa_os.dox \
exa_qutest.dox \
exa_mware.dox \ exa_mware.dox \
ports.dox \ ports.dox \
ports_native.dox \ ports_native.dox \

View File

@ -5,7 +5,7 @@
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
DOXYFILE_ENCODING = UTF-8 DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "QP/C" PROJECT_NAME = "QP/C"
PROJECT_NUMBER = "6.3.7" PROJECT_NUMBER = "6.3.8"
PROJECT_BRIEF = PROJECT_BRIEF =
PROJECT_LOGO = images/header_logo_ql.png PROJECT_LOGO = images/header_logo_ql.png
OUTPUT_DIRECTORY = OUTPUT_DIRECTORY =
@ -119,8 +119,8 @@ INPUT = \
exa_apps.dox \ exa_apps.dox \
exa_native.dox \ exa_native.dox \
exa_rtos.dox \ exa_rtos.dox \
exa_qutest.dox \
exa_os.dox \ exa_os.dox \
exa_qutest.dox \
exa_mware.dox \ exa_mware.dox \
ports.dox \ ports.dox \
ports_native.dox \ ports_native.dox \

View File

@ -5,7 +5,7 @@
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
DOXYFILE_ENCODING = UTF-8 DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "QP/C" PROJECT_NAME = "QP/C"
PROJECT_NUMBER = "6.3.7" PROJECT_NUMBER = "6.3.8"
PROJECT_BRIEF = PROJECT_BRIEF =
PROJECT_LOGO = images/header_logo_ql.png PROJECT_LOGO = images/header_logo_ql.png
OUTPUT_DIRECTORY = OUTPUT_DIRECTORY =
@ -123,8 +123,8 @@ INPUT = \
exa_apps.dox \ exa_apps.dox \
exa_native.dox \ exa_native.dox \
exa_rtos.dox \ exa_rtos.dox \
exa_qutest.dox \
exa_os.dox \ exa_os.dox \
exa_qutest.dox \
exa_mware.dox \ exa_mware.dox \
ports.dox \ ports.dox \
ports_native.dox \ ports_native.dox \

View File

@ -197,7 +197,7 @@ QP/C examples are located in sub-directories of the <span class="img folder">exa
<li><span class="tag">A</span> @subpage exa_native "Native examples" are located in sub-directories named after the CPU architecture, such as <span class="img folder">arm-cm</span> for ARM Cortex-M. Under that directory, the sub-directories <span class="img folder">blinky_ek-tm4c123gxl</span> contain the specific example on the specified board, such as "Blinky" on the EK-TM4C123GXL board here. In the specific example folder, you find sub-folders for the @ref comp_qv "QV", @ref comp_qk "QK" and @ref comp_qxk "QXK" kernels, respectively. <li><span class="tag">A</span> @subpage exa_native "Native examples" are located in sub-directories named after the CPU architecture, such as <span class="img folder">arm-cm</span> for ARM Cortex-M. Under that directory, the sub-directories <span class="img folder">blinky_ek-tm4c123gxl</span> contain the specific example on the specified board, such as "Blinky" on the EK-TM4C123GXL board here. In the specific example folder, you find sub-folders for the @ref comp_qv "QV", @ref comp_qk "QK" and @ref comp_qxk "QXK" kernels, respectively.
</li> </li>
<li><span class="tag">B</span> @subpage exa_rtos "Examples for 3rd-party RTOS"/@subpage exa_os "OS" are located in sub-directories named after the RTOS/OS, such as <span class="img folder">ucos-ii</span> for uCOS-II RTOS. Under that directory, the sub-directories, such as <span class="img folder">arm-cm</span>, contain examples for the specified CPU architecture, such as ARM Cortex-M here. <li><span class="tag">B</span> @subpage exa_rtos "Examples for 3rd-party RTOS"/@ref exa_os "OS" are located in sub-directories named after the RTOS/OS, such as <span class="img folder">ucos-ii</span> for uCOS-II RTOS. Under that directory, the sub-directories, such as <span class="img folder">arm-cm</span>, contain examples for the specified CPU architecture, such as ARM Cortex-M here.
</li> </li>
<li><span class="tag">C</span> @subpage exa_mware "Examples for 3rd-party Middleware" are located in sub-directories named after the middleware, such as <span class="img folder">lwIP</span> for the lwIP TCP/IP stack. Under that directory, the sub-directories, such as <span class="img folder">arm-cm</span>, contain examples for the specified CPU architecture, such as ARM Cortex-M here. <li><span class="tag">C</span> @subpage exa_mware "Examples for 3rd-party Middleware" are located in sub-directories named after the middleware, such as <span class="img folder">lwIP</span> for the lwIP TCP/IP stack. Under that directory, the sub-directories, such as <span class="img folder">arm-cm</span>, contain examples for the specified CPU architecture, such as ARM Cortex-M here.

View File

@ -1,4 +1,4 @@
/*! @page exa_mware Third-Party Middleware /*! @page exa_mware Examples for Third-Party Middleware
- @subpage exa_lwip - @subpage exa_lwip
- @subpage exa_emwin - @subpage exa_emwin

View File

@ -144,16 +144,36 @@ Demonstrated features:
/*##########################################################################*/ /*##########################################################################*/
/*! @page exa_threadx ThreadX /*! @page exa_threadx ThreadX
@htmlonly
<script src="preview.js" type="text/javascript"></script>
@endhtmlonly
The QP/C examples for ThreadX (Express Logic) are as follows: The QP/C examples for ThreadX (Express Logic) are as follows:
- @subpage threadx_dpp_stm32f429-discovery <a class="preview board" href="bd_STM32F4-Discovery.jpg" title="STM32F4-Discovery">STM32F4-Discovery</a><br>(IAR EWARM toolset) - @subpage threadx_dpp_ek-tm4c123gxl (Cortex-M4F) <a class="preview board" href="bd_EK-TM4C123GXL.jpg" title="EK-TM4C123GXL"></a><br>(IAR EWARM toolchain)
- @subpage threadx_dpp_stm32f429-discovery <a class="preview board" href="bd_STM32F4-Discovery.jpg" title="STM32F4-Discovery"></a><br>(IAR EWARM toolchain)
@note @note
You can hover the mouse cursor over the <span class="board"></span>&nbsp;&nbsp; icon in the list below to see the picture of the board. You can hover the mouse cursor over the <span class="board"></span>&nbsp;&nbsp; icon in the list below to see the picture of the board.
@next{exa_ti-rtos examples} @next{exa_ti-rtos examples}
*/ */
/*##########################################################################*/
/*! @page threadx_dpp_ek-tm4c123gxl DPP on EK-TM4C123GXL
@image html bd_EK-TM4C123GXL.jpg EK-TM4C123GXL board
@ref dpp "DPP example" for ThreadX on Texas Instruments TivaC123GXL MCU (Cortex-M4F) with the following toolchain:
- IAR-ARM
Demonstrated features:
- Multiple Active Objects
- QP/Spy output over the virtual COM port (Spy build configuration)
- QP/Spy input over the virtual COM port (bi-directional Spy) (Spy build configuration)
@next{threadx_dpp_stm32f429-discovery examples}
*/
/*##########################################################################*/ /*##########################################################################*/
/*! @page threadx_dpp_stm32f429-discovery DPP on STM32F4-Discovery /*! @page threadx_dpp_stm32f429-discovery DPP on STM32F4-Discovery
@ -163,10 +183,6 @@ The @ref dpp "DPP example" for ThreadX on STM32F4-Discovery board is located dir
The sub-directory <span class="img folder">iar</span> contains the workspace and project file that you can open in IAR EWARM IDE. The sub-directory <span class="img folder">iar</span> contains the workspace and project file that you can open in IAR EWARM IDE.
@attention
Due to the limitations of the ThreadX library for Windows, the DPP example can only instantiate one `Philo[0]` active object.
After you load the DPP example into the STM32F4-Discovery board, the application should start blinking the 4 on-board LEDs. You can press the User button (blue) to PAUSE the philosophers for as long as the button is depressed. The philosophers resume dining when you release the User button. (In the PAUSED state the Table active object stops granting permissions to eat, so eventually all philosophers end in the "hungry" state.) After you load the DPP example into the STM32F4-Discovery board, the application should start blinking the 4 on-board LEDs. You can press the User button (blue) to PAUSE the philosophers for as long as the button is depressed. The philosophers resume dining when you release the User button. (In the PAUSED state the Table active object stops granting permissions to eat, so eventually all philosophers end in the "hungry" state.)

View File

@ -1,6 +1,14 @@
/** /**
@page history Revision History @page history Revision History
@section qpc_6_3_8 Version 6.3.8, 2018-12-31
The main purpose of this release is the update the `Makefiles` that use the [GNU-ARM Embedded Toolchain](https://developer.arm.com/open-source/gnu-toolchain/gnu-rm) to match the recent update in [QTools for Windows 6.3.8](https://sourceforge.net/projects/qpc/files/QTools/). Specifically, all `Makefiles` in the `examples` directory have been updated to use the GNU-ARM toolchain located in `qtools\gnu_arm-none-eabi` and use the tools prefix **arm-none-eabi-**.
@note
The `Makefiles` that use the GNU-ARM included in this release require [QTools for Windows version 6.3.8 or newer](https://sourceforge.net/projects/qpc/files/QTools/) and will **NOT** work with the older QTools collection.
------------------------------------------------------------------------------
@section qpc_6_3_7 Version 6.3.7, 2018-11-20 @section qpc_6_3_7 Version 6.3.7, 2018-11-20
The main goal of this release is to provide Python test scripts that match the newly re-designed Python support for the [QUTest unit testing harness](https://www.state-machine.com/qtools/qutest.html) (see QTools **6.3.7**). Specifically, the Python tests scripts (*.py files) in the `qpc/examples/qutest` directory) have been all upgraded to the new syntax and format. Also, all the makefiles in that directory have been modified to execute Python test scripts by default, and Tcl test scripts only when the argument `SCRIPTS=tcl` is specified. The main goal of this release is to provide Python test scripts that match the newly re-designed Python support for the [QUTest unit testing harness](https://www.state-machine.com/qtools/qutest.html) (see QTools **6.3.7**). Specifically, the Python tests scripts (*.py files) in the `qpc/examples/qutest` directory) have been all upgraded to the new syntax and format. Also, all the makefiles in that directory have been modified to execute Python test scripts by default, and Tcl test scripts only when the argument `SCRIPTS=tcl` is specified.

View File

@ -130,7 +130,7 @@ Training and consulting services are also available from Quantum Leaps. Please r
@image html logo_ql_TM.jpg @image html logo_ql_TM.jpg
Copyright &copy; 2002-2018 Quantum Leaps, LLC. All Rights Reserved.@n Copyright &copy; 2005-2019 Quantum Leaps, LLC. All Rights Reserved.@n
@next{gs} @next{gs}
*/ */

View File

@ -1,8 +1,8 @@
@echo off @echo off
:: ========================================================================== :: ==========================================================================
:: Product: QP/C script for generating Doxygen documentation :: Product: QP/C script for generating Doxygen documentation
:: Last Updated for Version: 6.3.7 :: Last Updated for Version: 6.3.8
:: Date of the Last Update: 2018-11-18 :: Date of the Last Update: 2018-12-27
:: ::
:: Q u a n t u m L e a P s :: Q u a n t u m L e a P s
:: ------------------------ :: ------------------------
@ -38,7 +38,7 @@ echo usage:
echo make echo make
echo make -CHM echo make -CHM
set VERSION=6.3.7 set VERSION=6.3.8
:: Generate Resource Standard Metrics for QP/C ............................... :: Generate Resource Standard Metrics for QP/C ...............................
set DOXHOME="C:\tools\doxygen\bin" set DOXHOME="C:\tools\doxygen\bin"

View File

@ -1,7 +1,7 @@
/** @page metrics Code Metrics /** @page metrics Code Metrics
@code @code
Standard Code Metrics for QP/C 6.3.7 Standard Code Metrics for QP/C 6.3.8
Resource Standard Metrics (TM) for C, C++, C# and Java Resource Standard Metrics (TM) for C, C++, C# and Java
Version 7.75 - mSquaredTechnologies.com Version 7.75 - mSquaredTechnologies.com
@ -9,7 +9,7 @@
License Type: Windows Single User License License Type: Windows Single User License
Licensed To : Quantum Leaps, LLC Licensed To : Quantum Leaps, LLC
License No. : WS2975 License Date: Dec 15, 2013 License No. : WS2975 License Date: Dec 15, 2013
Build Date : Sep 2 2009 Run Date: Dec 05, 2018 Build Date : Sep 2 2009 Run Date: Dec 28, 2018
(C)1996-2009 M Squared Technologies LLC (C)1996-2009 M Squared Technologies LLC
________________________________________________________________________ ________________________________________________________________________

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for Blinky on EMF32-SLSTK3401A, QK kernel, GNU-ARM # Product: Makefile for QP/C on EMF32-SLSTK3401A, QK kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -151,10 +151,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -162,11 +162,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -191,11 +192,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -207,11 +208,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -221,19 +222,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -265,7 +266,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -278,10 +279,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for Blinky on EMF32-SLSTK3401A, QV kernel, GNU-ARM # Product: Makefile for QP/C on EMF32-SLSTK3401A, QV kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -151,10 +151,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -162,11 +162,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -191,11 +192,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -207,11 +208,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -221,19 +222,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -265,7 +266,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -278,10 +279,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Blinky on EK-TM4C123GXL, QK, GNU-ARM gnutoolchains.com/arm-eabi # Product: Makefile for QP/C on EK-TM4C123GXL, QK kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -148,10 +148,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -159,11 +159,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -188,11 +189,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -204,11 +205,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -218,19 +219,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -262,7 +263,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -275,10 +276,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for Blinky on EK-TM4C123GXL, QV kernel, GNU-ARM # Product: Makefile for QP/C on EK-TM4C123GXL, QV kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -148,10 +148,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -159,11 +159,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -188,11 +189,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -204,11 +205,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -218,19 +219,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -262,7 +263,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -275,10 +276,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on EMF32-SLSTK3401A, QK kernel, GNU-ARM # Product: Makefile for QP/C on EMF32-SLSTK3401A, QK kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -153,10 +153,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -164,11 +164,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -180,7 +181,7 @@ MKDIR := mkdir
RM := rm RM := rm
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# build options for various configurations for ARM Cortex-M4F # build options for various configurations for ARM Cortex-M
# #
# combine all the soruces... # combine all the soruces...
@ -193,11 +194,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -209,11 +210,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -223,19 +224,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -267,7 +268,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -280,10 +281,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on EMF32-SLSTK3401A, QV kernel, GNU-ARM # Product: Makefile for QP/C on EMF32-SLSTK3401A, QV kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -153,10 +153,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -164,11 +164,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -180,7 +181,7 @@ MKDIR := mkdir
RM := rm RM := rm
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# build options for various configurations for ARM Cortex-M4F # build options for various configurations for ARM Cortex-M
# #
# combine all the soruces... # combine all the soruces...
@ -193,11 +194,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -209,11 +210,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -223,19 +224,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -267,7 +268,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -280,10 +281,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on EMF32-SLSTK3401A, QXK kernel, GNU-ARM # Product: Makefile for QP/C on EMF32-SLSTK3401A, QXK kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -157,10 +157,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -168,11 +168,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -184,7 +185,7 @@ MKDIR := mkdir
RM := rm RM := rm
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# build options for various configurations for ARM Cortex-M4F # build options for various configurations for ARM Cortex-M
# #
# combine all the soruces... # combine all the soruces...
@ -197,11 +198,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -213,11 +214,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -227,19 +228,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -271,7 +272,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -284,10 +285,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on EK-TM4C123GXL, QK kernel, GNU-ARM # Product: Makefile for QP/C on EK-TM4C123GXL, QK kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -149,10 +149,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -160,11 +160,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -176,7 +177,7 @@ MKDIR := mkdir
RM := rm RM := rm
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# build options for various configurations for ARM Cortex-M4F # build options for various configurations for ARM Cortex-M
# #
# combine all the soruces... # combine all the soruces...
@ -230,8 +231,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -263,7 +264,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on EK-TM4C123GXL, QK kernel, GNU-ARM # Product: Makefile for QP/C on EK-TM4C123GXL, QK kernel, GNU-ARM
# Last Updated for Version: 6.3.2 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-06-22 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -149,10 +149,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -160,11 +160,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -176,7 +177,7 @@ MKDIR := mkdir
RM := rm RM := rm
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# build options for various configurations for ARM Cortex-M4F # build options for various configurations for ARM Cortex-M
# #
# combine all the soruces... # combine all the soruces...
@ -190,13 +191,12 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fstack-protector-all \ -ffunction-sections -fdata-sections \
-O2 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fstack-protector-all \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-fno-rtti -fno-exceptions \ -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
-O2 $(INCLUDES) $(DEFINES) -DNDEBUG
else ifeq (spy, $(CONF)) # Spy configuration ................................ else ifeq (spy, $(CONF)) # Spy configuration ................................
@ -207,12 +207,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fstack-protector-all \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fstack-protector-all \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
else # default Debug configuration .......................................... else # default Debug configuration ..........................................
@ -222,19 +221,18 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fstack-protector-all \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fstack-protector-all \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib -fstack-protector-all \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -266,7 +264,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on EK-TM4C123GXL, QV kernel, GNU-ARM # Product: Makefile for QP/C on EK-TM4C123GXL, QV kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -149,10 +149,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -160,11 +160,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -176,7 +177,7 @@ MKDIR := mkdir
RM := rm RM := rm
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# build options for various configurations for ARM Cortex-M4F # build options for various configurations for ARM Cortex-M
# #
# combine all the soruces... # combine all the soruces...
@ -230,8 +231,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -263,7 +264,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on EK-TM4C123GXL, QXK kernel, GNU-ARM # Product: Makefile for QP/C on EK-TM4C123GXL, QXK kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -153,10 +153,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -164,11 +164,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -180,7 +181,7 @@ MKDIR := mkdir
RM := rm RM := rm
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# build options for various configurations for ARM Cortex-M4F # build options for various configurations for ARM Cortex-M
# #
# combine all the soruces... # combine all the soruces...
@ -234,8 +235,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on mbed-LPC1768, QK kernel, GNU-ARM # Product: Makefile for QP/C on mbed-LPC1768, QK kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -149,10 +149,10 @@ FLOAT_ABI :=
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -160,11 +160,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -176,7 +177,7 @@ MKDIR := mkdir
RM := rm RM := rm
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# build options for various configurations for ARM Cortex-M4F # build options for various configurations for ARM Cortex-M
# #
# combine all the soruces... # combine all the soruces...
@ -189,11 +190,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -205,11 +206,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -219,19 +220,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -263,7 +264,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -276,10 +277,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on mbed-LPC1768, QV kernel, GNU-ARM # Product: Makefile for QP/C on mbed-LPC1768, QV kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -149,10 +149,10 @@ FLOAT_ABI :=
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -160,11 +160,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -176,7 +177,7 @@ MKDIR := mkdir
RM := rm RM := rm
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# build options for various configurations for ARM Cortex-M4F # build options for various configurations for ARM Cortex-M
# #
# combine all the soruces... # combine all the soruces...
@ -189,11 +190,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -205,11 +206,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -219,19 +220,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -263,7 +264,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -276,10 +277,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on NUCLEO-H743ZI, QK kernel, GNU-ARM # Product: Makefile for QP/C on NUCLEO-H743ZI, QK kernel, GNU-ARM
# Last Updated for Version: 6.1.1 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-16 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -163,10 +163,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -174,11 +174,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -190,7 +191,7 @@ MKDIR := mkdir
RM := rm RM := rm
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# build options for various configurations for ARM Cortex-M4F # build options for various configurations for ARM Cortex-M
# #
# combine all the soruces... # combine all the soruces...
@ -244,10 +245,11 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS))) C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS)))
CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS))) CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS)))

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on NUCLEO-H743ZI, QV kernel, GNU-ARM # Product: Makefile for QP/C on NUCLEO-H743ZI, QV kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -162,10 +162,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -173,11 +173,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -189,7 +190,7 @@ MKDIR := mkdir
RM := rm RM := rm
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# build options for various configurations for ARM Cortex-M4F # build options for various configurations for ARM Cortex-M
# #
# combine all the soruces... # combine all the soruces...
@ -243,10 +244,11 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS))) C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS)))
CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS))) CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS)))

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on NUCLEO-H743ZI, QXK kernel, GNU-ARM # Product: Makefile for QP/C on NUCLEO-H743ZI, QXK kernel, GNU-ARM
# Last Updated for Version: 6.1.1 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-16 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -167,10 +167,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -178,11 +178,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -194,7 +195,7 @@ MKDIR := mkdir
RM := rm RM := rm
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# build options for various configurations for ARM Cortex-M4F # build options for various configurations for ARM Cortex-M
# #
# combine all the soruces... # combine all the soruces...
@ -248,10 +249,11 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS))) C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS)))
CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS))) CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS)))

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on NUCLEO-L053R8, QK kernel, GNU-ARM # Product: Makefile for QP/C on NUCLEO-L053R8, QK kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -149,10 +149,10 @@ FLOAT_ABI :=
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -160,11 +160,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -176,7 +177,7 @@ MKDIR := mkdir
RM := rm RM := rm
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# build options for various configurations for ARM Cortex-M4F # build options for various configurations for ARM Cortex-M
# #
# combine all the soruces... # combine all the soruces...
@ -189,11 +190,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O2 $(INCLUDES) $(DEFINES) -DNDEBUG -O2 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O2 $(INCLUDES) $(DEFINES) -DNDEBUG -O2 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -205,11 +206,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O2 $(INCLUDES) $(DEFINES) -DQ_SPY -O2 $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O2 $(INCLUDES) $(DEFINES) -DQ_SPY -O2 $(INCLUDES) $(DEFINES) -DQ_SPY
@ -219,19 +220,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O2 $(INCLUDES) $(DEFINES) -O2 $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O2 $(INCLUDES) $(DEFINES) -O2 $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -263,7 +264,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -276,10 +277,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on NUCLEO-L053R8, QK kernel, GNU-ARM # Product: Makefile for QP/C on NUCLEO-L053R8, QK kernel, GNU-ARM
# Last Updated for Version: 6.3.3 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-06-22 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -149,10 +149,10 @@ FLOAT_ABI :=
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -160,11 +160,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -189,11 +190,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fstack-protector-all \ -ffunction-sections -fdata-sections -fstack-protector-all \
-O2 $(INCLUDES) $(DEFINES) -DNDEBUG -O2 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fstack-protector-all \ -ffunction-sections -fdata-sections -fstack-protector-all \
-fno-rtti -fno-exceptions \ -fno-rtti -fno-exceptions \
-O2 $(INCLUDES) $(DEFINES) -DNDEBUG -O2 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -206,11 +207,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fstack-protector-all \ -ffunction-sections -fdata-sections -fstack-protector-all \
-O2 $(INCLUDES) $(DEFINES) -DQ_SPY -O2 $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fstack-protector-all \ -ffunction-sections -fdata-sections -fstack-protector-all \
-fno-rtti -fno-exceptions \ -fno-rtti -fno-exceptions \
-O2 $(INCLUDES) $(DEFINES) -DQ_SPY -O2 $(INCLUDES) $(DEFINES) -DQ_SPY
@ -221,11 +222,11 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fstack-protector-all \ -ffunction-sections -fdata-sections -fstack-protector-all \
-O2 $(INCLUDES) $(DEFINES) -O2 $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fstack-protector-all \ -ffunction-sections -fdata-sections -fstack-protector-all \
-fno-rtti -fno-exceptions \ -fno-rtti -fno-exceptions \
-O2 $(INCLUDES) $(DEFINES) -O2 $(INCLUDES) $(DEFINES)
@ -233,8 +234,8 @@ CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib -fstack-protector-all \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -266,7 +267,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -279,10 +280,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on NUCLEO-L053R8, QV kernel, GNU-ARM # Product: Makefile for QP/C on NUCLEO-L053R8, QV kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -149,10 +149,10 @@ FLOAT_ABI :=
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -160,11 +160,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -176,7 +177,7 @@ MKDIR := mkdir
RM := rm RM := rm
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# build options for various configurations for ARM Cortex-M4F # build options for various configurations for ARM Cortex-M
# #
# combine all the soruces... # combine all the soruces...
@ -189,11 +190,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O2 $(INCLUDES) $(DEFINES) -DNDEBUG -O2 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O2 $(INCLUDES) $(DEFINES) -DNDEBUG -O2 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -205,11 +206,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O2 $(INCLUDES) $(DEFINES) -DQ_SPY -O2 $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O2 $(INCLUDES) $(DEFINES) -DQ_SPY -O2 $(INCLUDES) $(DEFINES) -DQ_SPY
@ -219,19 +220,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O2 $(INCLUDES) $(DEFINES) -O2 $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O2 $(INCLUDES) $(DEFINES) -O2 $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -263,7 +264,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -276,10 +277,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for QP/C, DPP on NUCLEO-L053R8, QXK kernel, GNU-ARM # Product: Makefile for QP/C, DPP on NUCLEO-L053R8, QXK kernel, GNU-ARM
# Last Updated for Version: 6.1.1 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-16 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -153,10 +153,10 @@ FLOAT_ABI :=
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -164,11 +164,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -180,7 +181,7 @@ MKDIR := mkdir
RM := rm RM := rm
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# build options for various configurations for ARM Cortex-M4F # build options for various configurations for ARM Cortex-M
# #
# combine all the soruces... # combine all the soruces...
@ -193,11 +194,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O2 $(INCLUDES) $(DEFINES) -DNDEBUG -O2 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O2 $(INCLUDES) $(DEFINES) -DNDEBUG -O2 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -209,11 +210,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O2 $(INCLUDES) $(DEFINES) -DQ_SPY -O2 $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O2 $(INCLUDES) $(DEFINES) -DQ_SPY -O2 $(INCLUDES) $(DEFINES) -DQ_SPY
@ -223,19 +224,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O2 $(INCLUDES) $(DEFINES) -O2 $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O2 $(INCLUDES) $(DEFINES) -O2 $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -267,7 +268,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -280,10 +281,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -193,11 +193,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CFLAGS = $(ARM_CPU) $(ARM_TARGET) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_TARGET) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-fuse-baremetal-sysroot -fshort-enums -fno-common \ -fuse-baremetal-sysroot -fshort-enums -fno-common \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O2 $(INCLUDES) $(DEFINES) -O2 $(INCLUDES) $(DEFINES)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on NUCLEO-L152RE, QK kernel, GNU-ARM # Product: Makefile for QP/C on NUCLEO-L152RE, QK kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -149,10 +149,10 @@ FLOAT_ABI :=
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -160,11 +160,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -176,7 +177,7 @@ MKDIR := mkdir
RM := rm RM := rm
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# build options for various configurations for ARM Cortex-M4F # build options for various configurations for ARM Cortex-M
# #
# combine all the soruces... # combine all the soruces...
@ -189,11 +190,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -205,11 +206,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -219,19 +220,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -263,7 +264,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -276,10 +277,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on NUCLEO-L152RE, QV kernel, GNU-ARM # Product: Makefile for QP/C on NUCLEO-L152RE, QV kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -149,10 +149,10 @@ FLOAT_ABI :=
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -160,11 +160,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -189,11 +190,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -205,11 +206,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -219,19 +220,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -263,7 +264,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -276,10 +277,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: DPP on STM32F4-Discovery, QK, GNU-ARM gnutoolchains.com/arm-eabi # Product: Makefile for QP/C on STM32F4-Discovery, QK kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -154,10 +154,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -165,11 +165,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -194,11 +195,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -210,11 +211,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -224,19 +225,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -268,7 +269,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -281,10 +282,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: DPP on STM32F4-Discovery, QV, GNU-ARM gnutoolchains.com/arm-eabi # Product: Makefile for QP/C on STM32F4-Discovery, QV kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -154,10 +154,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -165,11 +165,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -194,11 +195,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -210,11 +211,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -224,19 +225,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -268,7 +269,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -281,10 +282,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: DPP on STM32F4-Discovery, QXK, GNU-ARM gnutoolchains.com/arm-eabi # Product: Makefile for QP/C on STM32F4-Discovery, QXK kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -158,10 +158,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -169,11 +169,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -198,11 +199,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -214,11 +215,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -228,19 +229,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -272,7 +273,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -285,10 +286,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on STM32F746G-Discovery, QK kernel, GNU-ARM # Product: Makefile for QP/C on STM32F746G-Discovery, QK kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -162,10 +162,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -173,11 +173,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -243,10 +244,11 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS))) C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS)))
CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS))) CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS)))

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on STM32F746G-Discovery, QK kernel, GNU-ARM # Product: Makefile for QP/C on STM32F746G-Discovery, QV kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -162,10 +162,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -173,11 +173,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -243,10 +244,11 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS))) C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS)))
CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS))) CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS)))

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on STM32F746G-Discovery, QXK kernel, GNU-ARM # Product: Makefile for QP/C on STM32F746G-Discovery, QXK kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -166,10 +166,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -177,11 +177,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -247,10 +248,11 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS))) C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS)))
CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS))) CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS)))

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for Game on EMF32-SLSTK3401A, QK kernel, GNU-ARM # Product: Makefile for QP/C on EMF32-SLSTK3401A, QK kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -163,10 +163,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -174,11 +174,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -203,11 +204,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -219,11 +220,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -233,19 +234,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -277,7 +278,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -290,10 +291,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for Game on EMF32-SLSTK3401A, QV kernel, GNU-ARM # Product: Makefile for QP/C on EMF32-SLSTK3401A, QV kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -163,10 +163,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -174,11 +174,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -203,11 +204,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -219,11 +220,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -233,19 +234,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -277,7 +278,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -290,10 +291,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on EK-TM4C123GXL, FreeRTOS kernel, GNU-ARM # Product: Makefile for QP/C on EK-TM4C123GXL, FreeRTOS kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -158,10 +158,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -169,11 +169,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -189,8 +190,8 @@ RM := rm
# #
# combine all the soruces... # combine all the soruces...
C_SRCS += $(QP_SRCS) C_SRCS += $(QP_SRCS) $(RTOS_SRCS)
C_SRCS += $(RTOS_SRCS) ASM_SRCS += $(QP_ASMS)
ifeq (rel, $(CONF)) # Release configuration .................................. ifeq (rel, $(CONF)) # Release configuration ..................................
@ -239,10 +240,11 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS))) C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS)))
CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS))) CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS)))
@ -271,7 +273,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on NUCLEO-H743ZI, FreeRTOS, GNU-ARM # Product: Makefile for QP/C on NUCLEO-H743ZI, FreeRTOS, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -171,10 +171,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -182,11 +182,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -202,8 +203,8 @@ RM := rm
# #
# combine all the soruces... # combine all the soruces...
C_SRCS += $(QP_SRCS) C_SRCS += $(QP_SRCS) $(RTOS_SRCS)
C_SRCS += $(RTOS_SRCS) ASM_SRCS += $(QP_ASMS)
ifeq (rel, $(CONF)) # Release configuration .................................. ifeq (rel, $(CONF)) # Release configuration ..................................
@ -252,10 +253,11 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS))) C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS)))
CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS))) CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS)))

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on STM32F746G-Discovery, QK kernel, GNU-ARM # Product: Makefile for QP/C on STM32F746G-Discovery, QK kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -171,10 +171,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -182,11 +182,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -202,8 +203,8 @@ RM := rm
# #
# combine all the soruces... # combine all the soruces...
C_SRCS += $(QP_SRCS) C_SRCS += $(QP_SRCS) $(RTOS_SRCS)
C_SRCS += $(RTOS_SRCS) ASM_SRCS += $(QP_ASMS)
ifeq (rel, $(CONF)) # Release configuration .................................. ifeq (rel, $(CONF)) # Release configuration ..................................
@ -252,10 +253,11 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS))) C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS)))
CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS))) CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS)))

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for lwIP on EK-LM3S6965, QK kernel, GNU-ARM # Product: Makefile for lwIP on EK-LM3S6965, QK kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -162,10 +162,10 @@ FLOAT_ABI :=
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -173,11 +173,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -202,11 +203,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -218,11 +219,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -232,19 +233,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -276,7 +277,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -289,10 +290,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for lwIP on EK-LM3S6965, QV kernel, GNU-ARM # Product: Makefile for lwIP on EK-LM3S6965, QV kernel, GNU-ARM
# Last Updated for Version: 6.1.0 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-02-07 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/Qtools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -162,10 +162,10 @@ FLOAT_ABI :=
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -173,11 +173,12 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
@ -202,11 +203,11 @@ BIN_DIR := rel
ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
CPPFLAGS = $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG -O1 $(INCLUDES) $(DEFINES) -DNDEBUG
@ -218,11 +219,11 @@ C_SRCS += $(QS_SRCS)
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -O $(INCLUDES) $(DEFINES) -DQ_SPY
@ -232,19 +233,19 @@ BIN_DIR := dbg
ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU) ASFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
CFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections \ -ffunction-sections -fdata-sections \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
CPPFLAGS = -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \ -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
-O $(INCLUDES) $(DEFINES) -O $(INCLUDES) $(DEFINES)
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
@ -276,7 +277,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c
@ -289,10 +290,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
# include dependency files only if our goal depends on their existence # include dependency files only if our goal depends on their existence
ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),clean)

View File

@ -1,7 +1,7 @@
############################################################################## ##############################################################################
# Product: Makefile for EMF32, QUTEST, GNU-ARM # Product: Makefile for QP/C on EMF32, QUTEST, GNU-ARM
# Last updated for version 6.3.7 # Last Updated for Version: 6.3.8
# Last updated on 2018-11-12 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# ------------------------ # ------------------------
@ -157,10 +157,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -168,11 +168,11 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# FLASH tool (NOTE: Requires the JLINK utility) # FLASH tool (NOTE: Requires the JLINK utility)
@ -187,8 +187,8 @@ FLASH := $(TARGET_DIR)\flash.bat
# basic utilities (included in QTools for Windows), see: # basic utilities (included in QTools for Windows), see:
# http://sourceforge.net/projects/qpc/files/Qtools # http://sourceforge.net/projects/qpc/files/Qtools
MKDIR := mkdir MKDIR := mkdir
RM := rm RM := rm
ifeq ($(SCRIPT),tcl) ifeq ($(SCRIPT),tcl)
QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl
@ -217,8 +217,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST -O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
@ -264,7 +264,7 @@ $(TARGET_BIN) : $(TARGET_ELF)
$(FLASH) $@ $(FLASH) $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
flash : flash :
@ -284,10 +284,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
.PHONY : clean show .PHONY : clean show

View File

@ -1,7 +1,7 @@
############################################################################## ##############################################################################
# Product: Makefile for TM4C123, QUTEST, GNU-ARM # Product: Makefile for QP/C on TM4C123, QUTEST, GNU-ARM
# Last updated for version 6.3.7 # Last Updated for Version: 6.3.8
# Last updated on 2018-11-12 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# ------------------------ # ------------------------
@ -43,7 +43,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -153,10 +153,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -164,11 +164,11 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# NOTE: The following symbol LMFLASH assumes that LMFlash.exe can # NOTE: The following symbol LMFLASH assumes that LMFlash.exe can
@ -179,15 +179,14 @@ ifeq ($(LMFLASH),)
FLASH := LMFlash.exe -q ek-tm4c123gxl FLASH := LMFlash.exe -q ek-tm4c123gxl
endif endif
############################################################################## ##############################################################################
# Typically you should not need to change anything below this line # Typically you should not need to change anything below this line
# basic utilities (included in QTools for Windows), see: # basic utilities (included in QTools for Windows), see:
# http://sourceforge.net/projects/qpc/files/Qtools # http://sourceforge.net/projects/qpc/files/Qtools
MKDIR := mkdir MKDIR := mkdir
RM := rm RM := rm
ifeq ($(SCRIPT),tcl) ifeq ($(SCRIPT),tcl)
QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl
@ -216,8 +215,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST -O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
@ -263,7 +262,7 @@ $(TARGET_BIN) : $(TARGET_ELF)
$(FLASH) $@ $(FLASH) $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
flash : flash :
@ -283,10 +282,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
.PHONY : clean show .PHONY : clean show

View File

@ -1,7 +1,7 @@
############################################################################## ##############################################################################
# Product: Makefile for EMF32, QUTEST, GNU-ARM # Product: Makefile for QP/C on EMF32, QUTEST, GNU-ARM
# Last updated for version 6.3.7 # Last Updated for Version: 6.3.8
# Last updated on 2018-11-12 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# ------------------------ # ------------------------
@ -159,10 +159,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -170,11 +170,11 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# FLASH tool (NOTE: Requires the JLINK utility) # FLASH tool (NOTE: Requires the JLINK utility)
@ -189,8 +189,8 @@ FLASH := $(TARGET_DIR)\flash.bat
# basic utilities (included in QTools for Windows), see: # basic utilities (included in QTools for Windows), see:
# http://sourceforge.net/projects/qpc/files/Qtools # http://sourceforge.net/projects/qpc/files/Qtools
MKDIR := mkdir MKDIR := mkdir
RM := rm RM := rm
ifeq ($(SCRIPT),tcl) ifeq ($(SCRIPT),tcl)
QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl
@ -219,8 +219,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST -O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
@ -266,7 +266,7 @@ $(TARGET_BIN) : $(TARGET_ELF)
$(FLASH) $@ $(FLASH) $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
flash : flash :
@ -286,10 +286,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
.PHONY : clean show .PHONY : clean show

View File

@ -1,7 +1,7 @@
############################################################################## ##############################################################################
# Product: Makefile for TM4C123, QUTEST, GNU-ARM # Product: Makefile for QP/C on TM4C123, QUTEST, GNU-ARM
# Last updated for version 6.3.7 # Last Updated for Version: 6.3.8
# Last updated on 2018-11-12 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# ------------------------ # ------------------------
@ -43,7 +43,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -155,10 +155,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -166,11 +166,11 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# NOTE: The following symbol LMFLASH assumes that LMFlash.exe can # NOTE: The following symbol LMFLASH assumes that LMFlash.exe can
@ -181,15 +181,14 @@ ifeq ($(LMFLASH),)
FLASH := LMFlash.exe -q ek-tm4c123gxl FLASH := LMFlash.exe -q ek-tm4c123gxl
endif endif
############################################################################## ##############################################################################
# Typically you should not need to change anything below this line # Typically you should not need to change anything below this line
# basic utilities (included in QTools for Windows), see: # basic utilities (included in QTools for Windows), see:
# http://sourceforge.net/projects/qpc/files/Qtools # http://sourceforge.net/projects/qpc/files/Qtools
MKDIR := mkdir MKDIR := mkdir
RM := rm RM := rm
ifeq ($(SCRIPT),tcl) ifeq ($(SCRIPT),tcl)
QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl
@ -218,8 +217,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST -O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
@ -265,7 +264,7 @@ $(TARGET_BIN) : $(TARGET_ELF)
$(FLASH) $@ $(FLASH) $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
flash : flash :
@ -285,10 +284,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
.PHONY : clean show .PHONY : clean show

View File

@ -1,7 +1,7 @@
############################################################################## ##############################################################################
# Product: Makefile for TM4C123, QUTEST, GNU-ARM # Product: Makefile for QP/C on TM4C123, QUTEST, GNU-ARM
# Last updated for version 6.3.7 # Last Updated for Version: 6.3.8
# Last updated on 2018-11-12 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# ------------------------ # ------------------------
@ -43,7 +43,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -152,10 +152,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -163,11 +163,11 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# NOTE: The following symbol LMFLASH assumes that LMFlash.exe can # NOTE: The following symbol LMFLASH assumes that LMFlash.exe can
@ -178,15 +178,14 @@ ifeq ($(LMFLASH),)
FLASH := LMFlash.exe -q ek-tm4c123gxl FLASH := LMFlash.exe -q ek-tm4c123gxl
endif endif
############################################################################## ##############################################################################
# Typically you should not need to change anything below this line # Typically you should not need to change anything below this line
# basic utilities (included in QTools for Windows), see: # basic utilities (included in QTools for Windows), see:
# http://sourceforge.net/projects/qpc/files/Qtools # http://sourceforge.net/projects/qpc/files/Qtools
MKDIR := mkdir MKDIR := mkdir
RM := rm RM := rm
ifeq ($(SCRIPT),tcl) ifeq ($(SCRIPT),tcl)
QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl
@ -215,8 +214,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST -O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
@ -262,7 +261,7 @@ $(TARGET_BIN) : $(TARGET_ELF)
$(FLASH) $@ $(FLASH) $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
flash : flash :
@ -282,10 +281,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
.PHONY : clean show .PHONY : clean show

View File

@ -1,7 +1,7 @@
############################################################################## ##############################################################################
# Product: Makefile for EMF32, QUTEST, GNU-ARM # Product: Makefile for QP/C on EMF32, QUTEST, GNU-ARM
# Last updated for version 6.3.7 # Last Updated for Version: 6.3.8
# Last updated on 2018-11-12 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# ------------------------ # ------------------------
@ -156,10 +156,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -167,11 +167,11 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# FLASH tool (NOTE: Requires the JLINK utility) # FLASH tool (NOTE: Requires the JLINK utility)
@ -186,8 +186,8 @@ FLASH := $(TARGET_DIR)\flash.bat
# basic utilities (included in QTools for Windows), see: # basic utilities (included in QTools for Windows), see:
# http://sourceforge.net/projects/qpc/files/Qtools # http://sourceforge.net/projects/qpc/files/Qtools
MKDIR := mkdir MKDIR := mkdir
RM := rm RM := rm
ifeq ($(SCRIPT),tcl) ifeq ($(SCRIPT),tcl)
QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl
@ -216,8 +216,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST -O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
@ -263,7 +263,7 @@ $(TARGET_BIN) : $(TARGET_ELF)
$(FLASH) $@ $(FLASH) $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
flash : flash :
@ -283,10 +283,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
.PHONY : clean show .PHONY : clean show

View File

@ -1,7 +1,7 @@
############################################################################## ##############################################################################
# Product: Makefile for TM4C123, QUTEST, GNU-ARM # Product: Makefile for QP/C on TM4C123, QUTEST, GNU-ARM
# Last updated for version 6.3.7 # Last Updated for Version: 6.3.8
# Last updated on 2018-11-12 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# ------------------------ # ------------------------
@ -43,7 +43,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -152,10 +152,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -163,11 +163,11 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# NOTE: The following symbol LMFLASH assumes that LMFlash.exe can # NOTE: The following symbol LMFLASH assumes that LMFlash.exe can
@ -178,15 +178,14 @@ ifeq ($(LMFLASH),)
FLASH := LMFlash.exe -q ek-tm4c123gxl FLASH := LMFlash.exe -q ek-tm4c123gxl
endif endif
############################################################################## ##############################################################################
# Typically you should not need to change anything below this line # Typically you should not need to change anything below this line
# basic utilities (included in QTools for Windows), see: # basic utilities (included in QTools for Windows), see:
# http://sourceforge.net/projects/qpc/files/Qtools # http://sourceforge.net/projects/qpc/files/Qtools
MKDIR := mkdir MKDIR := mkdir
RM := rm RM := rm
ifeq ($(SCRIPT),tcl) ifeq ($(SCRIPT),tcl)
QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl
@ -215,8 +214,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST -O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
@ -262,7 +261,7 @@ $(TARGET_BIN) : $(TARGET_ELF)
$(FLASH) $@ $(FLASH) $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
flash : flash :
@ -282,10 +281,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
.PHONY : clean show .PHONY : clean show

View File

@ -1,7 +1,7 @@
############################################################################## ##############################################################################
# Product: Makefile for EMF32, QUTEST, GNU-ARM # Product: Makefile for QP/C on EMF32, QUTEST, GNU-ARM
# Last updated for version 6.3.7 # Last Updated for Version: 6.3.8
# Last updated on 2018-11-12 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# ------------------------ # ------------------------
@ -156,10 +156,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -167,11 +167,11 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# FLASH tool (NOTE: Requires the JLINK utility) # FLASH tool (NOTE: Requires the JLINK utility)
@ -186,8 +186,8 @@ FLASH := $(TARGET_DIR)\flash.bat
# basic utilities (included in QTools for Windows), see: # basic utilities (included in QTools for Windows), see:
# http://sourceforge.net/projects/qpc/files/Qtools # http://sourceforge.net/projects/qpc/files/Qtools
MKDIR := mkdir MKDIR := mkdir
RM := rm RM := rm
ifeq ($(SCRIPT),tcl) ifeq ($(SCRIPT),tcl)
QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl
@ -216,8 +216,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST -O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
@ -263,7 +263,7 @@ $(TARGET_BIN) : $(TARGET_ELF)
$(FLASH) $@ $(FLASH) $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
flash : flash :
@ -283,10 +283,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
.PHONY : clean show .PHONY : clean show

View File

@ -1,7 +1,7 @@
############################################################################## ##############################################################################
# Product: Makefile for TM4C123, QUTEST, GNU-ARM # Product: Makefile for QP/C on TM4C123, QUTEST, GNU-ARM
# Last updated for version 6.3.7 # Last Updated for Version: 6.3.8
# Last updated on 2018-11-12 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# ------------------------ # ------------------------
@ -43,7 +43,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -152,10 +152,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -163,11 +163,11 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# NOTE: The following symbol LMFLASH assumes that LMFlash.exe can # NOTE: The following symbol LMFLASH assumes that LMFlash.exe can
@ -178,15 +178,14 @@ ifeq ($(LMFLASH),)
FLASH := LMFlash.exe -q ek-tm4c123gxl FLASH := LMFlash.exe -q ek-tm4c123gxl
endif endif
############################################################################## ##############################################################################
# Typically you should not need to change anything below this line # Typically you should not need to change anything below this line
# basic utilities (included in QTools for Windows), see: # basic utilities (included in QTools for Windows), see:
# http://sourceforge.net/projects/qpc/files/Qtools # http://sourceforge.net/projects/qpc/files/Qtools
MKDIR := mkdir MKDIR := mkdir
RM := rm RM := rm
ifeq ($(SCRIPT),tcl) ifeq ($(SCRIPT),tcl)
QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl
@ -215,8 +214,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST -O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
@ -262,7 +261,7 @@ $(TARGET_BIN) : $(TARGET_ELF)
$(FLASH) $@ $(FLASH) $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
flash : flash :
@ -282,10 +281,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
.PHONY : clean show .PHONY : clean show

View File

@ -1,7 +1,7 @@
############################################################################## ##############################################################################
# Product: Makefile for EMF32, QUTEST, GNU-ARM # Product: Makefile for QP/C on EMF32, QUTEST, GNU-ARM
# Last updated for version 6.3.7 # Last Updated for Version: 6.3.8
# Last updated on 2018-11-12 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# ------------------------ # ------------------------
@ -155,10 +155,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -166,11 +166,11 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# FLASH tool (NOTE: Requires the JLINK utility) # FLASH tool (NOTE: Requires the JLINK utility)
@ -185,8 +185,8 @@ FLASH := $(TARGET_DIR)\flash.bat
# basic utilities (included in QTools for Windows), see: # basic utilities (included in QTools for Windows), see:
# http://sourceforge.net/projects/qpc/files/Qtools # http://sourceforge.net/projects/qpc/files/Qtools
MKDIR := mkdir MKDIR := mkdir
RM := rm RM := rm
ifeq ($(SCRIPT),tcl) ifeq ($(SCRIPT),tcl)
QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl
@ -215,8 +215,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST -O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
@ -262,7 +262,7 @@ $(TARGET_BIN) : $(TARGET_ELF)
$(FLASH) $@ $(FLASH) $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
flash : flash :
@ -282,10 +282,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
.PHONY : clean show .PHONY : clean show

View File

@ -1,7 +1,7 @@
############################################################################## ##############################################################################
# Product: Makefile for TM4C123, QUTEST, GNU-ARM # Product: Makefile for QP/C on TM4C123, QUTEST, GNU-ARM
# Last updated for version 6.3.7 # Last Updated for Version: 6.3.8
# Last updated on 2018-11-12 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# ------------------------ # ------------------------
@ -43,7 +43,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -151,10 +151,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -162,11 +162,11 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# NOTE: The following symbol LMFLASH assumes that LMFlash.exe can # NOTE: The following symbol LMFLASH assumes that LMFlash.exe can
@ -177,15 +177,14 @@ ifeq ($(LMFLASH),)
FLASH := LMFlash.exe -q ek-tm4c123gxl FLASH := LMFlash.exe -q ek-tm4c123gxl
endif endif
############################################################################## ##############################################################################
# Typically you should not need to change anything below this line # Typically you should not need to change anything below this line
# basic utilities (included in QTools for Windows), see: # basic utilities (included in QTools for Windows), see:
# http://sourceforge.net/projects/qpc/files/Qtools # http://sourceforge.net/projects/qpc/files/Qtools
MKDIR := mkdir MKDIR := mkdir
RM := rm RM := rm
ifeq ($(SCRIPT),tcl) ifeq ($(SCRIPT),tcl)
QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl
@ -214,8 +213,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST -O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
@ -261,7 +260,7 @@ $(TARGET_BIN) : $(TARGET_ELF)
$(FLASH) $@ $(FLASH) $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
flash : flash :
@ -281,10 +280,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
.PHONY : clean show .PHONY : clean show

View File

@ -1,7 +1,7 @@
############################################################################## ##############################################################################
# Product: Makefile for EMF32, QUTEST, GNU-ARM # Product: Makefile for QP/C on EMF32, QUTEST, GNU-ARM
# Last updated for version 6.3.7 # Last Updated for Version: 6.3.8
# Last updated on 2018-11-12 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# ------------------------ # ------------------------
@ -156,10 +156,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -167,11 +167,11 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# FLASH tool (NOTE: Requires the JLINK utility) # FLASH tool (NOTE: Requires the JLINK utility)
@ -186,8 +186,8 @@ FLASH := $(TARGET_DIR)\flash.bat
# basic utilities (included in QTools for Windows), see: # basic utilities (included in QTools for Windows), see:
# http://sourceforge.net/projects/qpc/files/Qtools # http://sourceforge.net/projects/qpc/files/Qtools
MKDIR := mkdir MKDIR := mkdir
RM := rm RM := rm
ifeq ($(SCRIPT),tcl) ifeq ($(SCRIPT),tcl)
QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl
@ -216,8 +216,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST -O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
@ -263,7 +263,7 @@ $(TARGET_BIN) : $(TARGET_ELF)
$(FLASH) $@ $(FLASH) $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
flash : flash :
@ -283,10 +283,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
.PHONY : clean show .PHONY : clean show

View File

@ -1,7 +1,7 @@
############################################################################## ##############################################################################
# Product: Makefile for TM4C123, QUTEST, GNU-ARM # Product: Makefile for QP/C on TM4C123, QUTEST, GNU-ARM
# Last updated for version 6.3.7 # Last Updated for Version: 6.3.8
# Last updated on 2018-11-12 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# ------------------------ # ------------------------
@ -43,7 +43,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -152,10 +152,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -163,11 +163,11 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# NOTE: The following symbol LMFLASH assumes that LMFlash.exe can # NOTE: The following symbol LMFLASH assumes that LMFlash.exe can
@ -178,15 +178,14 @@ ifeq ($(LMFLASH),)
FLASH := LMFlash.exe -q ek-tm4c123gxl FLASH := LMFlash.exe -q ek-tm4c123gxl
endif endif
############################################################################## ##############################################################################
# Typically you should not need to change anything below this line # Typically you should not need to change anything below this line
# basic utilities (included in QTools for Windows), see: # basic utilities (included in QTools for Windows), see:
# http://sourceforge.net/projects/qpc/files/Qtools # http://sourceforge.net/projects/qpc/files/Qtools
MKDIR := mkdir MKDIR := mkdir
RM := rm RM := rm
ifeq ($(SCRIPT),tcl) ifeq ($(SCRIPT),tcl)
QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl
@ -215,8 +214,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST -O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
@ -262,7 +261,7 @@ $(TARGET_BIN) : $(TARGET_ELF)
$(FLASH) $@ $(FLASH) $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
flash : flash :
@ -282,10 +281,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
.PHONY : clean show .PHONY : clean show

View File

@ -1,7 +1,7 @@
############################################################################## ##############################################################################
# Product: Makefile for EMF32, QUTEST, GNU-ARM # Product: Makefile for QP/C on EMF32, QUTEST, GNU-ARM
# Last updated for version 6.3.7 # Last Updated for Version: 6.3.8
# Last updated on 2018-11-12 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# ------------------------ # ------------------------
@ -157,10 +157,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -168,11 +168,11 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# FLASH tool (NOTE: Requires the JLINK utility) # FLASH tool (NOTE: Requires the JLINK utility)
@ -187,8 +187,8 @@ FLASH := $(TARGET_DIR)\flash.bat
# basic utilities (included in QTools for Windows), see: # basic utilities (included in QTools for Windows), see:
# http://sourceforge.net/projects/qpc/files/Qtools # http://sourceforge.net/projects/qpc/files/Qtools
MKDIR := mkdir MKDIR := mkdir
RM := rm RM := rm
ifeq ($(SCRIPT),tcl) ifeq ($(SCRIPT),tcl)
QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl
@ -217,8 +217,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST -O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
@ -264,7 +264,7 @@ $(TARGET_BIN) : $(TARGET_ELF)
$(FLASH) $@ $(FLASH) $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
flash : flash :
@ -284,10 +284,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
.PHONY : clean show .PHONY : clean show

View File

@ -1,7 +1,7 @@
############################################################################## ##############################################################################
# Product: Makefile for TM4C123, QUTEST, GNU-ARM # Product: Makefile for QP/C on TM4C123, QUTEST, GNU-ARM
# Last updated for version 6.3.7 # Last Updated for Version: 6.3.8
# Last updated on 2018-11-12 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# ------------------------ # ------------------------
@ -43,7 +43,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -153,10 +153,10 @@ FLOAT_ABI := -mfloat-abi=softfp
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -164,11 +164,11 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# NOTE: The following symbol LMFLASH assumes that LMFlash.exe can # NOTE: The following symbol LMFLASH assumes that LMFlash.exe can
@ -179,15 +179,14 @@ ifeq ($(LMFLASH),)
FLASH := LMFlash.exe -q ek-tm4c123gxl FLASH := LMFlash.exe -q ek-tm4c123gxl
endif endif
############################################################################## ##############################################################################
# Typically you should not need to change anything below this line # Typically you should not need to change anything below this line
# basic utilities (included in QTools for Windows), see: # basic utilities (included in QTools for Windows), see:
# http://sourceforge.net/projects/qpc/files/Qtools # http://sourceforge.net/projects/qpc/files/Qtools
MKDIR := mkdir MKDIR := mkdir
RM := rm RM := rm
ifeq ($(SCRIPT),tcl) ifeq ($(SCRIPT),tcl)
QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl QUTEST := tclsh $(QTOOLS)/qspy/tcl/qutest.tcl
@ -216,8 +215,8 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
-O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST -O $(INCLUDES) $(DEFINES) -DQ_SPY -DQ_UTEST
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
@ -263,7 +262,7 @@ $(TARGET_BIN) : $(TARGET_ELF)
$(FLASH) $@ $(FLASH) $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
flash : flash :
@ -283,10 +282,10 @@ $(BIN_DIR)/%.o : %.s
$(AS) $(ASFLAGS) $< -o $@ $(AS) $(ASFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.c $(BIN_DIR)/%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $< -o $@
$(BIN_DIR)/%.o : %.cpp $(BIN_DIR)/%.o : %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@ $(CPP) $(CPPFLAGS) $< -o $@
.PHONY : clean show .PHONY : clean show

View File

@ -1,11 +1,11 @@
############################################################################## ##############################################################################
# Product: Makefile for DPP on EK-TM4C123GXL, uC/OS-II kernel, GNU-ARM # Product: Makefile for QP/C on EK-TM4C123GXL, uC/OS-II kernel, GNU-ARM
# Last Updated for Version: 6.3.1 # Last Updated for Version: 6.3.8
# Date of the Last Update: 2018-05-31 # Date of the Last Update: 2018-12-26
# #
# Q u a n t u m L e a P s # Q u a n t u m L e a P s
# --------------------------- # ------------------------
# innovating embedded systems # Modern Embedded Software
# #
# Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved. # Copyright (C) 2005-2018 Quantum Leaps, LLC. All rights reserved.
# #
@ -45,7 +45,7 @@
# NOTE: # NOTE:
# To use this Makefile on Windows, you will need the GNU make utility, which # To use this Makefile on Windows, you will need the GNU make utility, which
# is included in the Qtools collection for Windows, see: # is included in the Qtools collection for Windows, see:
# http://sourceforge.net/projects/qpc/files/QTools/ # https://sourceforge.net/projects/qpc/files/QTools/
# #
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -161,10 +161,10 @@ ASM_FPU := -defsym=__FPU_PRESENT=1
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# GNU-ARM toolset (NOTE: You need to adjust to your machine) # GNU-ARM toolset (NOTE: You need to adjust to your machine)
# see http://gnutoolchains.com/arm-eabi/ # see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
# #
ifeq ($(GNU_ARM),) ifeq ($(GNU_ARM),)
GNU_ARM := $(QTOOLS)/gnu_arm-eabi GNU_ARM := $(QTOOLS)/gnu_arm-none-eabi
endif endif
# make sure that the GNU-ARM toolset exists... # make sure that the GNU-ARM toolset exists...
@ -172,17 +172,18 @@ ifeq ("$(wildcard $(GNU_ARM))","")
$(error GNU_ARM toolset not found. Please adjust the Makefile) $(error GNU_ARM toolset not found. Please adjust the Makefile)
endif endif
CC := $(GNU_ARM)/bin/arm-eabi-gcc CC := $(GNU_ARM)/bin/arm-none-eabi-gcc
CPP := $(GNU_ARM)/bin/arm-eabi-g++ CPP := $(GNU_ARM)/bin/arm-none-eabi-g++
AS := $(GNU_ARM)/bin/arm-eabi-as AS := $(GNU_ARM)/bin/arm-none-eabi-as
LINK := $(GNU_ARM)/bin/arm-eabi-gcc LINK := $(GNU_ARM)/bin/arm-none-eabi-g++
BIN := $(GNU_ARM)/bin/arm-eabi-objcopy BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
############################################################################## ##############################################################################
# Typically, you should not need to change anything below this line # Typically, you should not need to change anything below this line
# basic utilities (included in Qtools for Windows), see: # basic utilities (included in Qtools for Windows), see:
# http://sourceforge.net/projects/qpc/files/QTools # http://sourceforge.net/projects/qpc/files/Qtools
MKDIR := mkdir MKDIR := mkdir
RM := rm RM := rm
@ -242,10 +243,11 @@ CPPFLAGS = -c -g $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
endif # ...................................................................... endif # ......................................................................
LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) \ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
-mthumb -nostdlib \ -specs=nosys.specs \
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS) -Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS))) ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS))) C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS)))
CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS))) CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS)))
@ -274,7 +276,7 @@ $(TARGET_BIN): $(TARGET_ELF)
$(BIN) -O binary $< $@ $(BIN) -O binary $< $@
$(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT) $(TARGET_ELF) : $(ASM_OBJS_EXT) $(C_OBJS_EXT) $(CPP_OBJS_EXT)
$(CC) $(CFLAGS) -c $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o $(CC) $(CFLAGS) $(QPC)/include/qstamp.c -o $(BIN_DIR)/qstamp.o
$(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS) $(LINK) $(LINKFLAGS) -o $@ $^ $(BIN_DIR)/qstamp.o $(LIBS)
$(BIN_DIR)/%.d : %.c $(BIN_DIR)/%.d : %.c

View File

@ -4,8 +4,8 @@
* @ingroup qep * @ingroup qep
* @cond * @cond
****************************************************************************** ******************************************************************************
* Last updated for version 6.3.7 * Last updated for version 6.3.8
* Last updated on 2018-11-09 * Last updated on 2018-12-27
* *
* Q u a n t u m L e a P s * Q u a n t u m L e a P s
* ------------------------ * ------------------------
@ -45,16 +45,16 @@
* major version number, Y is a 1-digit minor version number, and Z is * major version number, Y is a 1-digit minor version number, and Z is
* a 1-digit release number. * a 1-digit release number.
*/ */
#define QP_VERSION 637U #define QP_VERSION 638U
/*! The current QP version number string of the form X.Y.Z, where X is /*! The current QP version number string of the form X.Y.Z, where X is
* a 1-digit major version number, Y is a 1-digit minor version number, * a 1-digit major version number, Y is a 1-digit minor version number,
* and Z is a 1-digit release number. * and Z is a 1-digit release number.
*/ */
#define QP_VERSION_STR "6.3.7" #define QP_VERSION_STR "6.3.8"
/*! Tamperproof current QP release (6.3.7) and date (2018-11-09) */ /*! Tamperproof current QP release (6.3.8) and date (2018-12-31) */
#define QP_RELEASE 0x940CF332U #define QP_RELEASE 0x93FA5591U
/****************************************************************************/ /****************************************************************************/

View File

@ -1,2 +0,0 @@
QP/C 6.3.7
2018-11-09

2
version-6.3.8 Normal file
View File

@ -0,0 +1,2 @@
QP/C 6.3.8
2018-12-26