Author: baggins Date: Tue Aug 2 00:17:37 2005 GMT
Module: nps Tag: HEAD
---- Log message:
- don't mix 32 and 64 bit
---- Files affected:
nps/poci:
Makefile (1.3 -> 1.4)
---- Diffs:
================================================================
Index: nps/poci/Makefile
diff -u nps/poci/Makefile:1.3 nps/poci/Makefile:1.4
--- nps/poci/Makefile:1.3 Mon Aug 1 23:24:24 2005
+++ nps/poci/Makefile Tue Aug 2 02:17:32 2005
@@ -22,22 +22,24 @@
KERNEL_VERSION := $(shell grep UTS_RELEASE
$(KERNEL_DIR)/include/linux/version.h | sed -e 's/.*UTS_RELEASE
"\([0-9]*\.[0-9]*\)\..*"/\1/')
BUILD_ARCH := $(shell uname -m | sed 'y/-/_/')
+CC = gcc
+
OPTFLAGS = -O2
CFLAGS = $(OPTFLAGS) -I../common
ifeq ($(KERNEL_VERSION),2.6)
ifeq ($(BUILD_ARCH),x86_64)
CFLAGS += -DKERNEL_HAS_MCE=1
-POCI_LDFLAGS = -L/usr/lib -L/usr/lib64 -lpci
+POCI_LDFLAGS = -lpci
endif
endif
.PHONY: all install uninstall postinstall preuninstall postuninstall clean
all:
- gcc $(CFLAGS) -o nws_mc nws_mc.c
- gcc $(CFLAGS) -o nws_hb nws_hb.c
- gcc $(CFLAGS) -o nws_poci nws_poci.c $(POCI_LDFLAGS)
+ $(CC) $(CFLAGS) -o nws_mc nws_mc.c
+ $(CC) $(CFLAGS) -o nws_hb nws_hb.c
+ $(CC) $(CFLAGS) -o nws_poci nws_poci.c $(POCI_LDFLAGS)
clean:
rm -f nws_mc nws_hb nws_poci
================================================================
---- CVS-web:
http://cvs.pld-linux.org/nps/poci/Makefile?r1=1.3&r2=1.4&f=u
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit