aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyril Hrubis <chrubis@suse.cz>2010-02-17 14:22:36 +0100
committerAndi Kleen <ak@linux.intel.com>2010-02-17 14:22:36 +0100
commit22b6fd9d6c53de44e612f31b78b964c3a10a24a1 (patch)
tree7ddb2c6eb0b2483674abfba44082ed093a5bd0b1
parent94b1f943cf8b4ec8254ce49fe081181867eb1bb8 (diff)
downloadmce-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--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 48a871e..b8e119f 100644
--- a/Makefile
+++ b/Makefile
@@ -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