aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/dwc_common_port/Makefile.linux
blob: 0cef7b461bd5084f261b28ebd05d62418956956e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# Makefile for DWC_common library
#
ifneq ($(KERNELRELEASE),)

ccflags-y	+= -DDWC_LINUX
#ccflags-y	+= -DDEBUG
#ccflags-y	+= -DDWC_DEBUG_REGS
#ccflags-y	+= -DDWC_DEBUG_MEMORY

ccflags-y	+= -DDWC_LIBMODULE
ccflags-y	+= -DDWC_CCLIB
ccflags-y	+= -DDWC_CRYPTOLIB
ccflags-y	+= -DDWC_NOTIFYLIB
ccflags-y	+= -DDWC_UTFLIB

obj-m			 := dwc_common_port_lib.o
dwc_common_port_lib-objs := dwc_cc.o dwc_modpow.o dwc_dh.o \
			    dwc_crypto.o dwc_notifier.o \
			    dwc_common_linux.o dwc_mem.o

else

ifeq ($(KDIR),)
$(error Must give "KDIR=/path/to/kernel/source" on command line or in environment)
endif

ifeq ($(ARCH),)
$(error Must give "ARCH=<arch>" on command line or in environment. Also, if \
 cross-compiling, must give "CROSS_COMPILE=/path/to/compiler/plus/tool-prefix-")
endif

ifeq ($(DOXYGEN),)
DOXYGEN		:= doxygen
endif

default:
	$(MAKE) -C$(KDIR) M=$(PWD) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) modules

docs:	$(wildcard *.[hc]) doc/doxygen.cfg
	$(DOXYGEN) doc/doxygen.cfg

tags:	$(wildcard *.[hc])
	$(CTAGS) -e $(wildcard *.[hc]) $(wildcard linux/*.[hc]) $(wildcard $(KDIR)/include/linux/usb*.h)

endif

clean:
	rm -rf *.o *.ko .*.cmd *.mod.c .*.o.d .*.o.tmp modules.order Module.markers Module.symvers .tmp_versions/