diff options
author | James Morris <jmorris@namei.org> | 2009-07-13 10:30:40 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-07-13 10:30:40 -0400 |
commit | 7d45ecafb6792ca68da9517969d37d910601845f (patch) | |
tree | a98b1074e5577e66a97963745f975404d0aac266 /tools/perf/Makefile | |
parent | be940d6279c30a2d7c4e8d1d5435f957f594d66d (diff) | |
parent | 7638d5322bd89d49e013a03fe2afaeb6d214fabd (diff) |
Merge branch 'master' into next
Conflicts:
include/linux/personality.h
Use Linus' version.
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 36d7eef49913..7822b3d6baca 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -164,7 +164,7 @@ endif | |||
164 | 164 | ||
165 | # CFLAGS and LDFLAGS are for the users to override from the command line. | 165 | # CFLAGS and LDFLAGS are for the users to override from the command line. |
166 | 166 | ||
167 | CFLAGS = $(M64) -ggdb3 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -std=gnu99 -Wdeclaration-after-statement -Werror -O6 | 167 | CFLAGS = $(M64) -ggdb3 -Wall -Wextra -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -std=gnu99 -Wdeclaration-after-statement -Werror -O6 |
168 | LDFLAGS = -lpthread -lrt -lelf -lm | 168 | LDFLAGS = -lpthread -lrt -lelf -lm |
169 | ALL_CFLAGS = $(CFLAGS) | 169 | ALL_CFLAGS = $(CFLAGS) |
170 | ALL_LDFLAGS = $(LDFLAGS) | 170 | ALL_LDFLAGS = $(LDFLAGS) |
@@ -223,7 +223,7 @@ SPARSE_FLAGS = -D__BIG_ENDIAN__ -D__powerpc__ | |||
223 | # Those must not be GNU-specific; they are shared with perl/ which may | 223 | # Those must not be GNU-specific; they are shared with perl/ which may |
224 | # be built by a different compiler. (Note that this is an artifact now | 224 | # be built by a different compiler. (Note that this is an artifact now |
225 | # but it still might be nice to keep that distinction.) | 225 | # but it still might be nice to keep that distinction.) |
226 | BASIC_CFLAGS = | 226 | BASIC_CFLAGS = -Iutil/include |
227 | BASIC_LDFLAGS = | 227 | BASIC_LDFLAGS = |
228 | 228 | ||
229 | # Guard against environment variables | 229 | # Guard against environment variables |
@@ -289,10 +289,11 @@ export PERL_PATH | |||
289 | LIB_FILE=libperf.a | 289 | LIB_FILE=libperf.a |
290 | 290 | ||
291 | LIB_H += ../../include/linux/perf_counter.h | 291 | LIB_H += ../../include/linux/perf_counter.h |
292 | LIB_H += ../../include/linux/rbtree.h | ||
293 | LIB_H += ../../include/linux/list.h | ||
294 | LIB_H += util/include/linux/list.h | ||
292 | LIB_H += perf.h | 295 | LIB_H += perf.h |
293 | LIB_H += types.h | 296 | LIB_H += util/types.h |
294 | LIB_H += util/list.h | ||
295 | LIB_H += util/rbtree.h | ||
296 | LIB_H += util/levenshtein.h | 297 | LIB_H += util/levenshtein.h |
297 | LIB_H += util/parse-options.h | 298 | LIB_H += util/parse-options.h |
298 | LIB_H += util/parse-events.h | 299 | LIB_H += util/parse-events.h |
@@ -301,9 +302,11 @@ LIB_H += util/util.h | |||
301 | LIB_H += util/help.h | 302 | LIB_H += util/help.h |
302 | LIB_H += util/strbuf.h | 303 | LIB_H += util/strbuf.h |
303 | LIB_H += util/string.h | 304 | LIB_H += util/string.h |
305 | LIB_H += util/strlist.h | ||
304 | LIB_H += util/run-command.h | 306 | LIB_H += util/run-command.h |
305 | LIB_H += util/sigchain.h | 307 | LIB_H += util/sigchain.h |
306 | LIB_H += util/symbol.h | 308 | LIB_H += util/symbol.h |
309 | LIB_H += util/module.h | ||
307 | LIB_H += util/color.h | 310 | LIB_H += util/color.h |
308 | 311 | ||
309 | LIB_OBJS += util/abspath.o | 312 | LIB_OBJS += util/abspath.o |
@@ -322,12 +325,16 @@ LIB_OBJS += util/run-command.o | |||
322 | LIB_OBJS += util/quote.o | 325 | LIB_OBJS += util/quote.o |
323 | LIB_OBJS += util/strbuf.o | 326 | LIB_OBJS += util/strbuf.o |
324 | LIB_OBJS += util/string.o | 327 | LIB_OBJS += util/string.o |
328 | LIB_OBJS += util/strlist.o | ||
325 | LIB_OBJS += util/usage.o | 329 | LIB_OBJS += util/usage.o |
326 | LIB_OBJS += util/wrapper.o | 330 | LIB_OBJS += util/wrapper.o |
327 | LIB_OBJS += util/sigchain.o | 331 | LIB_OBJS += util/sigchain.o |
328 | LIB_OBJS += util/symbol.o | 332 | LIB_OBJS += util/symbol.o |
333 | LIB_OBJS += util/module.o | ||
329 | LIB_OBJS += util/color.o | 334 | LIB_OBJS += util/color.o |
330 | LIB_OBJS += util/pager.o | 335 | LIB_OBJS += util/pager.o |
336 | LIB_OBJS += util/header.o | ||
337 | LIB_OBJS += util/callchain.o | ||
331 | 338 | ||
332 | BUILTIN_OBJS += builtin-annotate.o | 339 | BUILTIN_OBJS += builtin-annotate.o |
333 | BUILTIN_OBJS += builtin-help.o | 340 | BUILTIN_OBJS += builtin-help.o |
@@ -377,12 +384,6 @@ ifndef CC_LD_DYNPATH | |||
377 | endif | 384 | endif |
378 | endif | 385 | endif |
379 | 386 | ||
380 | ifdef ZLIB_PATH | ||
381 | BASIC_CFLAGS += -I$(ZLIB_PATH)/include | ||
382 | EXTLIBS += -L$(ZLIB_PATH)/$(lib) $(CC_LD_DYNPATH)$(ZLIB_PATH)/$(lib) | ||
383 | endif | ||
384 | EXTLIBS += -lz | ||
385 | |||
386 | ifdef NEEDS_SOCKET | 387 | ifdef NEEDS_SOCKET |
387 | EXTLIBS += -lsocket | 388 | EXTLIBS += -lsocket |
388 | endif | 389 | endif |
@@ -693,6 +694,9 @@ builtin-init-db.o: builtin-init-db.c PERF-CFLAGS | |||
693 | util/config.o: util/config.c PERF-CFLAGS | 694 | util/config.o: util/config.c PERF-CFLAGS |
694 | $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< | 695 | $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< |
695 | 696 | ||
697 | util/rbtree.o: ../../lib/rbtree.c PERF-CFLAGS | ||
698 | $(QUIET_CC)$(CC) -o util/rbtree.o -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< | ||
699 | |||
696 | perf-%$X: %.o $(PERFLIBS) | 700 | perf-%$X: %.o $(PERFLIBS) |
697 | $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) | 701 | $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) |
698 | 702 | ||