diff options
author | Cyril Hrubis <chrubis@suse.cz> | 2010-02-17 14:22:36 +0100 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2010-02-17 14:22:36 +0100 |
commit | 22b6fd9d6c53de44e612f31b78b964c3a10a24a1 (patch) | |
tree | 7ddb2c6eb0b2483674abfba44082ed093a5bd0b1 | |
parent | 94b1f943cf8b4ec8254ce49fe081181867eb1bb8 (diff) | |
download | mce-inject-22b6fd9d6c53de44e612f31b78b964c3a10a24a1.tar.gz |
Fix build problems
The first one is -lpthread versus -pthread, on newer distros -lpthread doesn't
always work while -pthread works all the time (and my manpages says to link
with -pthread anyway).
The second problem is generating dependencies with cc -MM, our buildsystem
quarrels when passing headers to that and it's IMHO right (as gcc -MM generates
dependencies for c source(s)).
Signed-off-by: Andi Kleen <ak@linux.intel.com>
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,12 +1,12 @@ prefix := /usr manprefix := ${prefix}/share CFLAGS := -Os -g -Wall -LDFLAGS += -lpthread +LDFLAGS += -pthread OBJ := mce.tab.o lex.yy.o mce-inject.o util.o -GENSRC := mce.tab.c mce.tab.h lex.yy.c +GENSRC := mce.tab.c lex.yy.c SRC := mce-inject.c util.c -CLEAN := ${OBJ} ${GENSRC} inject mce-inject .depend +CLEAN := ${OBJ} ${GENSRC} mce.tab.h inject mce-inject .depend DISTCLEAN := .depend .gdb_history .PHONY: clean depend install |