|
AvrStudio + WinAVR 에서 사용자 mak 파일문의
|
|
|
글쓴이 :
이석중
작성일 : 19-10-30 17:16
조회 : 4,923
|
아래는 귀사에서 제공하는 .mak 입니다.
========================================
# MCU name
MCU = atmega128
# Processor frequency.
# This will define a symbol, F_CPU, in all source code files equal to the
# processor frequency. You can then use this symbol in your source code to
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
# automatically to create a 32-bit value in your source code.
# Typical values are:
# F_CPU = 1000000
# F_CPU = 1843200
# F_CPU = 2000000
# F_CPU = 3686400
# F_CPU = 4000000
# F_CPU = 7372800
# F_CPU = 8000000
# F_CPU = 11059200
# F_CPU = 14745600
# F_CPU = 16000000
# F_CPU = 18432000
# F_CPU = 20000000
F_CPU = 16000000
# Output format. (can be srec, ihex, binary)
FORMAT = ihex
# Target file name (without extension).
TARGET = Servo
# Object files directory
# To put object files in current directory, use a dot (.), do NOT make
# this an empty or blank macro!
OBJDIR = .
====================================
질문 사항
1. # Target file name (without extension).
TARGET = Servo
===> Project에 C 파일이 여러개 있으면 어떻게 설정 하는지?
2. # Object files directory
# To put object files in current directory, use a dot (.), do NOT make
# this an empty or blank macro!
OBJDIR = .
===>Source file 이 있는 폴더를 어떻게 쓰면 되는지?
|
|