본문 바로가기
프로...Linux

Makefile

by 크크다스 2018. 7. 3.
반응형

[MAkeFILE]

= MACRO


# $@ : target : _enc_token

# $% : archive memmber :

# $< : first prerequisite : _enc_token.o

# $? : prerequisite list(ALL) : _enc_token.o  _enc_token2.o

# $^ : prerequisite list(ALL) : _enc_token.o  _enc_token2.o

# $+ : prerequisite list(ALL) : _enc_token.o  _enc_token2.o

# $* : target without extension : if no ext => ""


###############################################################

#$@: The filename representing the target.

#$%: The filename element of an archive member specification.

#$<: The filename of the first prerequisite.

#$?: The names of all prerequisites that are newer than the target

#$^: The filenames of all the prerequisites. No duplicate name.

#$+: Similar to $^, but it is possible duplicate names.

#$*: The stem of the target filename.(Without its suffix.)

#$(.D) : only the directory portion. Ex> $(<D)

#$(.F) : only the file portion. Ex> $(<F)

################################################################


#%.o: %.c

# @$(E) "[$@][$%][$<][$?][$^][$+][$*]  CC " $<

#[_enc_token.o][][_enc_token.c][_enc_token.c][_enc_token.c][_enc_token.c][_enc_token]  CC  _enc_token.c


#OBJS_enc = $(SRCS_enc:%.c=%.o) _enc_token2.o

#_enc_token: $(OBJS_enc)

# @$(E) "[$@][$%][$<][$?][$^][$+][$*]  LD " $@

#[_enc_token][][_enc_token.o][_enc_token.o _enc_token2.o][_enc_token.o _enc_token2.o][_enc_token.o _enc_token2.o][]  LD  _enc_token



반응형

'프로...Linux' 카테고리의 다른 글

[Linux/SYS] 절전모드 / Hostname 등  (0) 2018.08.07
[OpenWrt] Makefile  (0) 2018.07.25
[SVN] Tag / Branch / Merge  (0) 2018.03.30
svn co & Build script  (0) 2015.10.28
[gvim] centos 한글폰트 추가  (0) 2015.02.05