由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Questions about MAKEFILE
相关主题
请教一个makefile 小问题A question about Makefile
How to execute a shell command in java and display the output?问一个link的问题
怎么在c shell里给file加一行string?Questions about C++ Linux Command Line Parsing
C Library (一个统计方面的) 安装一问Python problem on 64 bit Linux
How to compile multiple c files into one obj file?a question about makefile
how to program a shell extension请教MS的高手一个shell的问题
Please help: regarding ftp scripting in Windows xp Command prompt如何从vim里直接编译源代码 (转载)
Linux Makefile: How to include cpp files in subfolder for (转载)How to run existing C files using Visual C++
相关话题的讨论汇总
话题: makefile话题: command话题: questions话题: make话题: files
进入Programming版参与讨论
1 (共1页)
s**********r
发帖数: 5
1
# Coulde people answer these questions started with ``# [Q:'' in the following
?
SHELL=/bin/sh
# This file contains a set of rules used by the "make"
# command. This makefile $(MAKEFILE) tells "make" how the
# executable sum_up_down $(COMMAND) should be created
# from the source files $(SRCS) via the object
# files $(OBJS) and the header files $(HDRS); type the command:
# "make -f make_program"
# where make_program should be replaced by the name of
# the makefile.
#
# This fi
g****c
发帖数: 299
2
# [Q: What does the following do? ]
link object file with lib if it exists
$(COMMAND): $(OBJS) $(MAKEFILE)
$(CC) -o $(COMMAND) $(OBJS) $(LDFLAGS) $(LIBS)
# [Q: What is LIBS? ]
I don't see LIBS defined
# [Q: What does the following do? ]
sum_up_down.o : sum_up_down.cpp $(MAKEFILE)
$(CC) $(CFLAGS) $(WARNFLAGS) -c sum_up_down.cpp -o sum_up_down.o
compile to object file

following

【在 s**********r 的大作中提到】
: # Coulde people answer these questions started with ``# [Q:'' in the following
: ?
: SHELL=/bin/sh
: # This file contains a set of rules used by the "make"
: # command. This makefile $(MAKEFILE) tells "make" how the
: # executable sum_up_down $(COMMAND) should be created
: # from the source files $(SRCS) via the object
: # files $(OBJS) and the header files $(HDRS); type the command:
: # "make -f make_program"
: # where make_program should be replaced by the name of

1 (共1页)
进入Programming版参与讨论
相关主题
How to run existing C files using Visual C++How to compile multiple c files into one obj file?
cmake coeblock求教how to program a shell extension
c++ typedef 一问Please help: regarding ftp scripting in Windows xp Command prompt
Windows Shell/command for Briefcase?Linux Makefile: How to include cpp files in subfolder for (转载)
请教一个makefile 小问题A question about Makefile
How to execute a shell command in java and display the output?问一个link的问题
怎么在c shell里给file加一行string?Questions about C++ Linux Command Line Parsing
C Library (一个统计方面的) 安装一问Python problem on 64 bit Linux
相关话题的讨论汇总
话题: makefile话题: command话题: questions话题: make话题: files