152 lines
5.2 KiB
Makefile
152 lines
5.2 KiB
Makefile
################################################################################
|
|
# Automatically-generated file. Do not edit!
|
|
################################################################################
|
|
|
|
SHELL := cmd.exe
|
|
RM := rm -rf
|
|
|
|
USER_OBJS :=
|
|
|
|
LIBS :=
|
|
PROJ :=
|
|
|
|
O_SRCS :=
|
|
C_SRCS :=
|
|
S_SRCS :=
|
|
S_UPPER_SRCS :=
|
|
OBJ_SRCS :=
|
|
ASM_SRCS :=
|
|
PREPROCESSING_SRCS :=
|
|
OBJS :=
|
|
OBJS_AS_ARGS :=
|
|
C_DEPS :=
|
|
C_DEPS_AS_ARGS :=
|
|
EXECUTABLES :=
|
|
OUTPUT_FILE_PATH :=
|
|
OUTPUT_FILE_PATH_AS_ARGS :=
|
|
AVR_APP_PATH :=$$$AVR_APP_PATH$$$
|
|
QUOTE := "
|
|
ADDITIONAL_DEPENDENCIES:=
|
|
OUTPUT_FILE_DEP:=
|
|
LIB_DEP:=
|
|
LINKER_SCRIPT_DEP:=
|
|
|
|
# Every subdirectory with source files must be described here
|
|
SUBDIRS := \
|
|
../src
|
|
|
|
|
|
# Add inputs and outputs from these tool invocations to the build variables
|
|
C_SRCS += \
|
|
../src/adc.c \
|
|
../src/led.c \
|
|
../src/main.c
|
|
|
|
|
|
PREPROCESSING_SRCS +=
|
|
|
|
|
|
ASM_SRCS +=
|
|
|
|
|
|
OBJS += \
|
|
src/adc.o \
|
|
src/led.o \
|
|
src/main.o
|
|
|
|
OBJS_AS_ARGS += \
|
|
src/adc.o \
|
|
src/led.o \
|
|
src/main.o
|
|
|
|
C_DEPS += \
|
|
src/adc.d \
|
|
src/led.d \
|
|
src/main.d
|
|
|
|
C_DEPS_AS_ARGS += \
|
|
src/adc.d \
|
|
src/led.d \
|
|
src/main.d
|
|
|
|
OUTPUT_FILE_PATH +=wp_dc22_attiny88.elf
|
|
|
|
OUTPUT_FILE_PATH_AS_ARGS +=wp_dc22_attiny88.elf
|
|
|
|
ADDITIONAL_DEPENDENCIES:=
|
|
|
|
OUTPUT_FILE_DEP:= ./makedep.mk
|
|
|
|
LIB_DEP+=
|
|
|
|
LINKER_SCRIPT_DEP+=
|
|
|
|
|
|
# AVR32/GNU C Compiler
|
|
src/adc.o: ../src/adc.c
|
|
@echo Building file: $<
|
|
@echo Invoking: AVR/GNU C Compiler : 5.4.0
|
|
$(QUOTE)C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe$(QUOTE) -x c -funsigned-char -funsigned-bitfields -DNDEBUG -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.3.172\include" -Os -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -Wall -mmcu=attiny88 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.3.172\gcc\dev\attiny88" -c -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -o "$@" "$<"
|
|
@echo Finished building: $<
|
|
|
|
|
|
src/led.o: ../src/led.c
|
|
@echo Building file: $<
|
|
@echo Invoking: AVR/GNU C Compiler : 5.4.0
|
|
$(QUOTE)C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe$(QUOTE) -x c -funsigned-char -funsigned-bitfields -DNDEBUG -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.3.172\include" -Os -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -Wall -mmcu=attiny88 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.3.172\gcc\dev\attiny88" -c -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -o "$@" "$<"
|
|
@echo Finished building: $<
|
|
|
|
|
|
src/main.o: ../src/main.c
|
|
@echo Building file: $<
|
|
@echo Invoking: AVR/GNU C Compiler : 5.4.0
|
|
$(QUOTE)C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe$(QUOTE) -x c -funsigned-char -funsigned-bitfields -DNDEBUG -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.3.172\include" -Os -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -Wall -mmcu=attiny88 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.3.172\gcc\dev\attiny88" -c -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -o "$@" "$<"
|
|
@echo Finished building: $<
|
|
|
|
|
|
|
|
|
|
|
|
# AVR32/GNU Preprocessing Assembler
|
|
|
|
|
|
|
|
# AVR32/GNU Assembler
|
|
|
|
|
|
|
|
|
|
ifneq ($(MAKECMDGOALS),clean)
|
|
ifneq ($(strip $(C_DEPS)),)
|
|
-include $(C_DEPS)
|
|
endif
|
|
endif
|
|
|
|
# Add inputs and outputs from these tool invocations to the build variables
|
|
|
|
# All Target
|
|
all: $(OUTPUT_FILE_PATH) $(ADDITIONAL_DEPENDENCIES)
|
|
|
|
$(OUTPUT_FILE_PATH): $(OBJS) $(USER_OBJS) $(OUTPUT_FILE_DEP) $(LIB_DEP) $(LINKER_SCRIPT_DEP)
|
|
@echo Building target: $@
|
|
@echo Invoking: AVR/GNU Linker : 5.4.0
|
|
$(QUOTE)C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe$(QUOTE) -o$(OUTPUT_FILE_PATH_AS_ARGS) $(OBJS_AS_ARGS) $(USER_OBJS) $(LIBS) -Wl,-Map="wp_dc22_attiny88.map" -Wl,--start-group -Wl,-lm -Wl,--end-group -Wl,--gc-sections -mmcu=attiny88 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.3.172\gcc\dev\attiny88"
|
|
@echo Finished building target: $@
|
|
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -O ihex -R .eeprom -R .fuse -R .lock -R .signature -R .user_signatures "wp_dc22_attiny88.elf" "wp_dc22_attiny88.hex"
|
|
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -j .eeprom --set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex "wp_dc22_attiny88.elf" "wp_dc22_attiny88.eep" || exit 0
|
|
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objdump.exe" -h -S "wp_dc22_attiny88.elf" > "wp_dc22_attiny88.lss"
|
|
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -O srec -R .eeprom -R .fuse -R .lock -R .signature -R .user_signatures "wp_dc22_attiny88.elf" "wp_dc22_attiny88.srec"
|
|
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-size.exe" "wp_dc22_attiny88.elf"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Other Targets
|
|
clean:
|
|
-$(RM) $(OBJS_AS_ARGS) $(EXECUTABLES)
|
|
-$(RM) $(C_DEPS_AS_ARGS)
|
|
rm -rf "wp_dc22_attiny88.elf" "wp_dc22_attiny88.a" "wp_dc22_attiny88.hex" "wp_dc22_attiny88.lss" "wp_dc22_attiny88.eep" "wp_dc22_attiny88.map" "wp_dc22_attiny88.srec" "wp_dc22_attiny88.usersignatures"
|
|
|