|
AvrStudio + WinAVR 에서 사용자 mak 파일문의
|
|
|
글쓴이 :
관리자
작성일 : 19-10-31 12:16
조회 : 4,267
|
안녕하세요 고객님,
저희 뉴티씨 제품을 이용하여주셔서 감사합니다.
해당 mak파일은 프로젝트 빌드 시 자동으로 생성되는 파일으로 알고있습니다.
1. Project에 C 파일이 여러개 있으면 어떻게 설정 하는지?
int main 또는 void main 구문이 들어가있는 소스파일, 즉 메인 c파일을 타겟으로 설정하시면 됩니다.
2. Source file 이 있는 폴더를 어떻게 쓰면 되는지?
. 만 적혀있다면 mak파일이 위치한 경로로 지정됩니다.
temp_source라는 이름을 가진 폴더가 mak파일보다 하위폴더로
위치해 있다면 "./temp_source" 라고 쓰시면 됩니다.
감사합니다.
>
>
> 아래는 귀사에서 제공하는 .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 이 있는 폴더를 어떻게 쓰면 되는지?
>
|
|