Created
September 26, 2014 13:08
-
-
Save TheLastMutt/566542b0b867d3881726 to your computer and use it in GitHub Desktop.
Makefiles for bradwii-x4-gcc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# Automatically-generated file. Do not edit! | |
################################################################################ | |
# Add inputs and outputs from these tool invocations to the build variables | |
C_SRCS += \ | |
../lib-Mini51/Device/Nuvoton/Mini51Series/Source/system_Mini51Series.c | |
OBJS += \ | |
./lib-Mini51/Device/Nuvoton/Mini51Series/Source/system_Mini51Series.o | |
C_DEPS += \ | |
./lib-Mini51/Device/Nuvoton/Mini51Series/Source/system_Mini51Series.d | |
# Each subdirectory must supply rules for building sources it contributes | |
lib-Mini51/Device/Nuvoton/Mini51Series/Source/%.o: ../lib-Mini51/Device/Nuvoton/Mini51Series/Source/%.c | |
@echo 'Building file: $<' | |
@echo 'Invoking: Cross ARM C Compiler' | |
arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -Os -ffunction-sections -fno-common -fno-builtin -Wall -g -DX4_BUILD -I"/path/to/bradwii-x4-gcc/lib-Mini51/hal" -I"/path/to/bradwii-x4-gcc/src" -I"/path/to/bradwii-x4-gcc/lib-Mini51/Device/Nuvoton/Mini51Series/Include" -I"/path/to/bradwii-x4-gcc/lib-Mini51/CMSIS/Include" -I"/path/to/bradwii-x4-gcc/lib-Mini51/StdDriver/inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -c -o "$@" "$<" | |
@echo 'Finished building: $<' | |
@echo ' ' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# Automatically-generated file. Do not edit! | |
################################################################################ | |
# Add inputs and outputs from these tool invocations to the build variables | |
C_SRCS += \ | |
../lib-Mini51/hal/drv_gpio.c \ | |
../lib-Mini51/hal/drv_hal.c \ | |
../lib-Mini51/hal/drv_pwm.c \ | |
../lib-Mini51/hal/lib_adc.c \ | |
../lib-Mini51/hal/lib_digitalio.c \ | |
../lib-Mini51/hal/lib_fp.c \ | |
../lib-Mini51/hal/lib_i2c.c \ | |
../lib-Mini51/hal/lib_soft_3_wire_spi.c \ | |
../lib-Mini51/hal/lib_timers.c | |
OBJS += \ | |
./lib-Mini51/hal/drv_gpio.o \ | |
./lib-Mini51/hal/drv_hal.o \ | |
./lib-Mini51/hal/drv_pwm.o \ | |
./lib-Mini51/hal/lib_adc.o \ | |
./lib-Mini51/hal/lib_digitalio.o \ | |
./lib-Mini51/hal/lib_fp.o \ | |
./lib-Mini51/hal/lib_i2c.o \ | |
./lib-Mini51/hal/lib_soft_3_wire_spi.o \ | |
./lib-Mini51/hal/lib_timers.o | |
C_DEPS += \ | |
./lib-Mini51/hal/drv_gpio.d \ | |
./lib-Mini51/hal/drv_hal.d \ | |
./lib-Mini51/hal/drv_pwm.d \ | |
./lib-Mini51/hal/lib_adc.d \ | |
./lib-Mini51/hal/lib_digitalio.d \ | |
./lib-Mini51/hal/lib_fp.d \ | |
./lib-Mini51/hal/lib_i2c.d \ | |
./lib-Mini51/hal/lib_soft_3_wire_spi.d \ | |
./lib-Mini51/hal/lib_timers.d | |
# Each subdirectory must supply rules for building sources it contributes | |
lib-Mini51/hal/%.o: ../lib-Mini51/hal/%.c | |
@echo 'Building file: $<' | |
@echo 'Invoking: Cross ARM C Compiler' | |
arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -Os -ffunction-sections -fno-common -fno-builtin -Wall -g -DX4_BUILD -I"/path/to/bradwii-x4-gcc/lib-Mini51/hal" -I"/path/to/bradwii-x4-gcc/src" -I"/path/to/bradwii-x4-gcc/lib-Mini51/Device/Nuvoton/Mini51Series/Include" -I"/path/to/bradwii-x4-gcc/lib-Mini51/CMSIS/Include" -I"/path/to/bradwii-x4-gcc/lib-Mini51/StdDriver/inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -c -o "$@" "$<" | |
@echo 'Finished building: $<' | |
@echo ' ' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# Automatically-generated file. Do not edit! | |
################################################################################ | |
# Add inputs and outputs from these tool invocations to the build variables | |
C_SRCS += \ | |
../lib-Mini51/StdDriver/src/adc.c \ | |
../lib-Mini51/StdDriver/src/clk.c \ | |
../lib-Mini51/StdDriver/src/fmc.c \ | |
../lib-Mini51/StdDriver/src/gpio.c \ | |
../lib-Mini51/StdDriver/src/i2c.c \ | |
../lib-Mini51/StdDriver/src/pwm.c \ | |
../lib-Mini51/StdDriver/src/sys.c \ | |
../lib-Mini51/StdDriver/src/timer.c \ | |
../lib-Mini51/StdDriver/src/wdt.c | |
OBJS += \ | |
./lib-Mini51/StdDriver/src/adc.o \ | |
./lib-Mini51/StdDriver/src/clk.o \ | |
./lib-Mini51/StdDriver/src/fmc.o \ | |
./lib-Mini51/StdDriver/src/gpio.o \ | |
./lib-Mini51/StdDriver/src/i2c.o \ | |
./lib-Mini51/StdDriver/src/pwm.o \ | |
./lib-Mini51/StdDriver/src/sys.o \ | |
./lib-Mini51/StdDriver/src/timer.o \ | |
./lib-Mini51/StdDriver/src/wdt.o | |
C_DEPS += \ | |
./lib-Mini51/StdDriver/src/adc.d \ | |
./lib-Mini51/StdDriver/src/clk.d \ | |
./lib-Mini51/StdDriver/src/fmc.d \ | |
./lib-Mini51/StdDriver/src/gpio.d \ | |
./lib-Mini51/StdDriver/src/i2c.d \ | |
./lib-Mini51/StdDriver/src/pwm.d \ | |
./lib-Mini51/StdDriver/src/sys.d \ | |
./lib-Mini51/StdDriver/src/timer.d \ | |
./lib-Mini51/StdDriver/src/wdt.d | |
# Each subdirectory must supply rules for building sources it contributes | |
lib-Mini51/StdDriver/src/%.o: ../lib-Mini51/StdDriver/src/%.c | |
@echo 'Building file: $<' | |
@echo 'Invoking: Cross ARM C Compiler' | |
arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -Os -ffunction-sections -fno-common -fno-builtin -Wall -g -DX4_BUILD -I"/path/to/bradwii-x4-gcc/lib-Mini51/hal" -I"/path/to/bradwii-x4-gcc/src" -I"/path/to/bradwii-x4-gcc/lib-Mini51/Device/Nuvoton/Mini51Series/Include" -I"/path/to/bradwii-x4-gcc/lib-Mini51/CMSIS/Include" -I"/path/to/bradwii-x4-gcc/lib-Mini51/StdDriver/inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -c -o "$@" "$<" | |
@echo 'Finished building: $<' | |
@echo ' ' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# Automatically-generated file. Do not edit! | |
################################################################################ | |
# Add inputs and outputs from these tool invocations to the build variables | |
C_SRCS += \ | |
../lib-Mini51/startup_Mini51Series.c | |
OBJS += \ | |
./lib-Mini51/startup_Mini51Series.o | |
C_DEPS += \ | |
./lib-Mini51/startup_Mini51Series.d | |
# Each subdirectory must supply rules for building sources it contributes | |
lib-Mini51/%.o: ../lib-Mini51/%.c | |
@echo 'Building file: $<' | |
@echo 'Invoking: Cross ARM C Compiler' | |
arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -Os -ffunction-sections -fno-common -fno-builtin -Wall -g -DX4_BUILD -I"/path/to/bradwii-x4-gcc/lib-Mini51/hal" -I"/path/to/bradwii-x4-gcc/src" -I"/path/to/bradwii-x4-gcc/lib-Mini51/Device/Nuvoton/Mini51Series/Include" -I"/path/to/bradwii-x4-gcc/lib-Mini51/CMSIS/Include" -I"/path/to/bradwii-x4-gcc/lib-Mini51/StdDriver/inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -c -o "$@" "$<" | |
@echo 'Finished building: $<' | |
@echo ' ' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# Automatically-generated file. Do not edit! | |
################################################################################ | |
-include ../makefile.init | |
RM := rm -rf | |
# All of the sources participating in the build are defined here | |
-include sources.mk | |
-include src/subdir.mk | |
-include lib-Mini51/hal/subdir.mk | |
-include lib-Mini51/StdDriver/src/subdir.mk | |
-include lib-Mini51/Device/Nuvoton/Mini51Series/Source/subdir.mk | |
-include lib-Mini51/subdir.mk | |
-include subdir.mk | |
-include objects.mk | |
ifneq ($(MAKECMDGOALS),clean) | |
ifneq ($(strip $(C_DEPS)),) | |
-include $(C_DEPS) | |
endif | |
ifneq ($(strip $(ASM_DEPS)),) | |
-include $(ASM_DEPS) | |
endif | |
ifneq ($(strip $(S_UPPER_DEPS)),) | |
-include $(S_UPPER_DEPS) | |
endif | |
endif | |
-include ../makefile.defs | |
# Add inputs and outputs from these tool invocations to the build variables | |
SECONDARY_SIZE += \ | |
bradwii-x4-gcc.siz \ | |
# All Target | |
all: bradwii-x4-gcc | |
# Tool invocations | |
bradwii-x4-gcc: $(OBJS) $(USER_OBJS) | |
@echo 'Building target: $@' | |
@echo 'Invoking: Cross ARM C Linker' | |
arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -Os -ffunction-sections -fno-common -fno-builtin -Wall -g -T "/path/to/bradwii-x4-gcc/lib-Mini51/linker/memory.ld" -T "/path/to/bradwii-x4-gcc/lib-Mini51/linker/link.ld" -nostartfiles -Xlinker --gc-sections -Wl,-Map,"bradwii-x4-gcc.map" -o "bradwii-x4-gcc" $(OBJS) $(USER_OBJS) $(LIBS) | |
@echo 'Finished building target: $@' | |
@echo ' ' | |
bradwii-x4-gcc.siz: bradwii-x4-gcc | |
@echo 'Invoking: Cross ARM GNU Print Size' | |
arm-none-eabi-size --format=berkeley "bradwii-x4-gcc" | |
@echo 'Finished building: $@' | |
@echo ' ' | |
# Other Targets | |
clean: | |
-$(RM) $(SECONDARY_SIZE)$(OBJS)$(C_DEPS)$(ASM_DEPS)$(S_UPPER_DEPS) bradwii-x4-gcc | |
-@echo ' ' | |
.PHONY: all clean dependents | |
.SECONDARY: | |
-include ../makefile.targets | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# Automatically-generated file. Do not edit! | |
################################################################################ | |
USER_OBJS := | |
LIBS := | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# Automatically-generated file. Do not edit! | |
################################################################################ | |
ELF_SRCS := | |
O_SRCS := | |
C_SRCS := | |
S_UPPER_SRCS := | |
OBJ_SRCS := | |
ASM_SRCS := | |
SECONDARY_SIZE := | |
OBJS := | |
C_DEPS := | |
ASM_DEPS := | |
S_UPPER_DEPS := | |
# Every subdirectory with source files must be described here | |
SUBDIRS := \ | |
src \ | |
lib-Mini51 \ | |
lib-Mini51/hal \ | |
lib-Mini51/StdDriver/src \ | |
lib-Mini51/Device/Nuvoton/Mini51Series/Source \ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# Automatically-generated file. Do not edit! | |
################################################################################ | |
# Add inputs and outputs from these tool invocations to the build variables | |
C_SRCS += \ | |
../src/a7105.c \ | |
../src/accelerometer.c \ | |
../src/autotune.c \ | |
../src/bradwii.c \ | |
../src/checkboxes.c \ | |
../src/config_X4.c \ | |
../src/eeprom.c \ | |
../src/gyro.c \ | |
../src/imu.c \ | |
../src/output.c \ | |
../src/pilotcontrol.c \ | |
../src/rx_x4.c \ | |
../src/vectors.c | |
OBJS += \ | |
./src/a7105.o \ | |
./src/accelerometer.o \ | |
./src/autotune.o \ | |
./src/bradwii.o \ | |
./src/checkboxes.o \ | |
./src/config_X4.o \ | |
./src/eeprom.o \ | |
./src/gyro.o \ | |
./src/imu.o \ | |
./src/output.o \ | |
./src/pilotcontrol.o \ | |
./src/rx_x4.o \ | |
./src/vectors.o | |
C_DEPS += \ | |
./src/a7105.d \ | |
./src/accelerometer.d \ | |
./src/autotune.d \ | |
./src/bradwii.d \ | |
./src/checkboxes.d \ | |
./src/config_X4.d \ | |
./src/eeprom.d \ | |
./src/gyro.d \ | |
./src/imu.d \ | |
./src/output.d \ | |
./src/pilotcontrol.d \ | |
./src/rx_x4.d \ | |
./src/vectors.d | |
# Each subdirectory must supply rules for building sources it contributes | |
src/%.o: ../src/%.c | |
@echo 'Building file: $<' | |
@echo 'Invoking: Cross ARM C Compiler' | |
arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -Os -ffunction-sections -fno-common -fno-builtin -Wall -g -DX4_BUILD -I"/path/to/bradwii-x4-gcc/lib-Mini51/hal" -I"/path/to/bradwii-x4-gcc/src" -I"/path/to/bradwii-x4-gcc/lib-Mini51/Device/Nuvoton/Mini51Series/Include" -I"/path/to/bradwii-x4-gcc/lib-Mini51/CMSIS/Include" -I"/path/to/bradwii-x4-gcc/lib-Mini51/StdDriver/inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -c -o "$@" "$<" | |
@echo 'Finished building: $<' | |
@echo ' ' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment