Linux make를 이용한 컴파일(빌드) 자동화
Linux 2021. 2. 7. 15:08 |2021/02/08 - [Linux] - Linux CMake를 이용한 컴파일(빌드) 자동화
리눅스에서 소스 코드를 컴파일(빌드)할때 유용한 make의 간단한 사용법을 알아 보자.
target … : prerequisites …
recipe
…
…
A target is usually the name of a file that is generated by a program; examples of targets are executable or object files. A target can also be the name of an action to carry out, such as ‘clean’ (see Phony Targets).
A prerequisite is a file that is used as input to create the target. A target often depends on several files.
A recipe is an action that make carries out. A recipe may have more than one command, either on the same line or each on its own line. Please note: you need to put a tab character at the beginning of every recipe line! This is an obscurity that catches the unwary. If you prefer to prefix your recipes with a character other than tab, you can set the .RECIPEPREFIX variable to an alternate character.
'Linux' 카테고리의 다른 글
Dynamic Shared Object(Library) in Linux - 리눅스 동적 공유 라이브러리 (0) | 2021.02.09 |
---|---|
Linux CMake를 이용한 컴파일(빌드) 자동화 (0) | 2021.02.08 |
Install OpenCV-Python in Linux(Ubuntu) - 리눅스(우분투)에 OpenCV-Python 설치하기 (0) | 2021.01.15 |
Linux(Ubuntu) Console Video Player - 리눅스(우분투) 콘솔 비디오 플레이어 (0) | 2021.01.13 |
Linux(Ubuntu) Console Image Viewer - 리눅스(우분투) 콘솔 이미지 뷰어 (0) | 2021.01.13 |