#################################################################################
# File level history, record changes for this file here.			#
#										#	
# v 0.0.0 16 Oct 2007 by Golden Wang						#
#  Give support to Linux kernel 2.6.x and 2.4.x					#
#										#
#################################################################################		
KVER           := $(shell uname -r)
KFLAG          := 2$(shell echo $(KVER) | sed -ne 's/^2\.[4]\..*/4/p')x
ifeq ($(KFLAG),24x)
	MPATH := $(PWD)/linux_24x
else
	MPATH := $(PWD)/linux_26x
endif

modules:
	cd $(MPATH);\
	make

clean:

	$(MAKE) -C $(PWD)/linux_24x clean
	$(MAKE) -C $(PWD)/linux_26x clean

inst:
ifeq ($(KFLAG),24x)
	$(MAKE) -C $(PWD)/linux_24x inst
else
	$(MAKE) -C $(PWD)/linux_26x inst
endif

uninst:
ifeq ($(KFLAG),24x)
	$(MAKE) -C $(PWD)/linux_24x uninst
else
	$(MAKE) -C $(PWD)/linux_26x uninst
endif
