nps: nws_mc/Makefile (NEW), nws_mc/makefile.2_4, nws_mc/makefile.2...

baggins baggins at pld-linux.org
Sun Sep 18 01:33:08 CEST 2005


Author: baggins                      Date: Sat Sep 17 23:33:08 2005 GMT
Module: nps                           Tag: HEAD
---- Log message:
- added common Makefile to avoid copying files

---- Files affected:
nps/nws_mc:
   Makefile (NONE -> 1.1)  (NEW), makefile.2_4 (1.2 -> 1.3) , makefile.2_6 (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: nps/nws_mc/Makefile
diff -u /dev/null nps/nws_mc/Makefile:1.1
--- /dev/null	Sun Sep 18 01:33:08 2005
+++ nps/nws_mc/Makefile	Sun Sep 18 01:33:03 2005
@@ -0,0 +1,15 @@
+KERNEL_DIR=/usr/src/linux
+PWD=$(shell pwd)
+TOPDIR=$(shell dirname $(PWD))
+
+KERNEL_VERSION := $(shell grep -m 1 UTS_RELEASE $(KERNEL_DIR)/include/linux/version.h | sed -e 's/.*UTS_RELEASE "\([0-9]*\.[0-9]*\)\..*"/\1/')
+
+ifeq ($(KERNEL_VERSION),2.4)
+  include $(TOPDIR)/nws_mc/makefile.2_4
+else
+  ifeq ($(KERNEL_VERSION),2.6)
+    include $(TOPDIR)/nws_mc/makefile.2_6
+  endif
+endif
+
+include $(TOPDIR)/nws_mc/makefile.common

================================================================
Index: nps/nws_mc/makefile.2_4
diff -u nps/nws_mc/makefile.2_4:1.2 nps/nws_mc/makefile.2_4:1.3
--- nps/nws_mc/makefile.2_4:1.2	Sun Jul 31 01:56:01 2005
+++ nps/nws_mc/makefile.2_4	Sun Sep 18 01:33:03 2005
@@ -199,6 +199,3 @@
 
 clean:
 	rm -rf $(TARGET) $(CFILES:.c=.o)
-
-include makefile.common
-

================================================================
Index: nps/nws_mc/makefile.2_6
diff -u nps/nws_mc/makefile.2_6:1.3 nps/nws_mc/makefile.2_6:1.4
--- nps/nws_mc/makefile.2_6:1.3	Sun Sep 18 01:05:11 2005
+++ nps/nws_mc/makefile.2_6	Sun Sep 18 01:33:03 2005
@@ -1,8 +1,3 @@
-PWD:=$(shell pwd)
-KERNEL_DIR ?= /usr/src/linux
-TOPDIR ?= $(shell dirname $(PWD))
-JNETDIR ?= $(TOPDIR)/jnet
-
 TARGET=nws_mc.ko
 
 EXTRA_CFLAGS += -I$(TOPDIR)/common -DPLATFORM=1 -DSP=0 -DLINUX_2_6_KERNEL=1
@@ -10,11 +5,9 @@
 nws_mc-objs := nws_mc_src.o
 
 default:
-	$(MAKE) -C $(KERNEL_DIR) M=$(PWD) TOPDIR=$(TOPDIR) JNETDIR=$(JNETDIR) modules
+	$(MAKE) -C $(KERNEL_DIR) M=$(PWD) TOPDIR=$(TOPDIR) modules
 clean:
 	@rm -f .nws_*
 	@rm -f nws_*.o
 	@rm -rf .tmp_versions
 	@rm -f nws_mc.mod.c nws_*.ko
-
-include $(JNETDIR)/makefile.common
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/nps/nws_mc/makefile.2_4?r1=1.2&r2=1.3&f=u
    http://cvs.pld-linux.org/nps/nws_mc/makefile.2_6?r1=1.3&r2=1.4&f=u




More information about the pld-cvs-commit mailing list