QortalOS Brooklyn for Raspberry Pi 4
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
1.2 KiB

#
# 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/