vmod/vmodttl: fixed bug related to luns not ordered and/or not starting from zero.
[ht-drivers.git] / cdcm / Makefile
blobbc10ef2b669dea29d0336ff2486ca0111ba61efe
1 ##############################################################################
2 # @file Makefile
4 # @brief Makefile to build CDCM and driver utils (including XML library)
6 # @author Copyright (C) 2009 CERN. Yury GEORGIEVSKIY <ygeorgie@cern.ch>
8 # @date Created on 26/08/2009
9 ###############################################################################
11 # Where everything is nested
12 ROOTDIR = $(CURDIR)/..
14 include ./Makefile.specific
15 include $(ROOTDIR)/makefiles/rules.mk
17 # Include generic definitions
18 include $(ROOTDIR)/makefiles/Kbuild.include
20 # Quiet you...
21 MAKEFLAGS += --no-print-directory
23 # By default -- Rebuild all, including CDCM, XML library and driver utilities.
24 _build: utils cdcm
26 #################################################
27 # Verbose output. Can be used for debugging
28 # SHELL += -x
29 # pass SHELL="$(SHELL)" as a parameter to Kmake
30 #################################################
32 # CDCM only
33 cdcm:
34 @-rm -rf ./$(CPU)/$(KVER)
35 $(MAKE) -C $(KSRC) M=$(shell pwd) CPU=$(CPU) \
36 ROOTDIR=$(ROOTDIR) KVER=$(KVER) modules
37 @-rm -r .*.cmd Module.symvers .tmp_versions/
38 @-rm -rf ./Module.markers ./modules.order
40 # Driver utilities (including XML library) only
41 USRC := $(ROOTDIR)/utils/driver
42 utils:
43 @-rm -rf $(USRC)/$(CPU)/$(KVER)
44 @$(USRC)/rmdrvr
45 $(MAKE) -C $(KSRC) M=$(USRC) CPU=$(CPU) \
46 ROOTDIR=$(ROOTDIR) KVER=$(KVER) modules
47 @-rm -rf $(USRC)/.*.cmd $(USRC)/Module.symvers $(USRC)/.tmp_versions/
48 @-rm -rf $(USRC)/Module.markers $(USRC)/modules.order
50 doxy_clean:
51 rm -rf man
53 doxy: doxy_clean
54 ../doxy/doxy.sh -n"Common Driver Code Manager (aka CDCM)" -o "man" ./