English 中文(简体)
图书馆更新和记录
原标题:Library update and Makefile
  • 时间:2012-01-13 22:26:46
  •  标签:
  • makefile

时间已很长,因为我已经做了一些发言。 我的实际马克图谋只是说,如果美元中的校正发生变化,我就得到一个信息,没有做任何事情。 对校准的依赖没有考虑。 注:美元 我有图书馆,有其通路。

all:   $(OBJ_LIST) $(TEST_LOAD) $(TEST_CPP_UNIT) $(LIB)

%.o:    %.cpp
    g++ -c $(CPPFLAGS) -o $@ $<
最佳回答

你确实表示任何有益的依赖。 如果在<代码>$(LIB)的改动中,你希望重新确定具体内容,那么你必须明确说明这一点。 例如:

all: my_app

# my_app will be rebuilt if something in $(LIB) changes
my_app: $(OBJ_LIST) $(LIB)
    g++ -o $@ $<

%.o: %.cpp
    g++ -c $(CPPFLAGS) -o $@ $<
问题回答

暂无回答




相关问题
makefile: how to show line numbers for debugging?

Is there a way to have make display the line number where it declares an error? The -d switch doesn t seem to cut it. Updated: Example output: Reaping winning child 0x08aa8648 PID 9381 /bin/sh: ...

What is the reasoning behind the Makefile whitespace syntax?

I m revisiting Python after Michael Sparks s excellent walk through of Peter Norvig s Python spell checker at the SO DevDay in London. One of the points he highlighted was how clean Python is to look ...

Debugging GNU make

Is there a command line way in make to find out which of the prerequisites of a target is not updated?

How to add an all rule to this Makefile?

I want to just type make all and have the following Makefile do everything it s supposed to do: LEX = lex YACC = yacc CC = gcc calcu: y.tab.o lex.yy.o $(CC) -o calcu y.tab.o lex.yy.o -ly -lfl ...

How to discover number of *logical* cores on Mac OS X?

How can you tell, from the command line, how many cores are on the machine when you re running Mac OS X? On Linux, I use: x=$(awk /^processor/ {++n} END {print n+1} /proc/cpuinfo) It s not ...

Using extern in C doesn t work as expected

I have created two files: tunables.h #ifndef TUNABLES_H #define TUNABLES_H void tunables_load_conservative(); void tunables_load_aggressive(); extern int timer_x; #endif /*TUNABLES_H */ and ...

热门标签