mirror of
				https://github.com/choff/anbox-modules.git
				synced 2025-11-04 15:52:37 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			418 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			418 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
ccflags-y += -I$(src) -Wno-error=implicit-int -Wno-int-conversion
 | 
						|
obj-m := ashmem_linux.o
 | 
						|
ashmem_linux-y := deps.o ashmem.o
 | 
						|
 | 
						|
KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
 | 
						|
VZ=	$(shell uname -r | grep vz)
 | 
						|
ifneq ($(VZ),)
 | 
						|
ccflags-y += -DVZKERNEL
 | 
						|
endif
 | 
						|
 | 
						|
all:
 | 
						|
	$(MAKE) -C $(KERNEL_SRC) V=0 M=$$PWD
 | 
						|
 | 
						|
install:
 | 
						|
	cp ashmem_linux.ko $(DESTDIR)/
 | 
						|
 | 
						|
clean:
 | 
						|
	rm -rf deps.h *.o *.ko *.mod.c *.symvers *.order .*.cmd .tmp_versions
 |