File Makefile of Package failed_rtl8188gu

# Makefile for building rtl8188gu out-of-tree module
# Minimal Makefile to allow building with 'make -C /lib/modules/... M=$(PWD) modules'
# and ensure the module source include directory is passed to the compiler.

obj-m := 8188gu.o

# Provide sensible defaults (kernel build system will override KERNELDIR when invoked by %make)
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

# Ensure the module's top-level and include/ directories are added to the compiler include path
# This fixes missing local headers like <drv_types.h> when building as an external module.
EXTRA_CFLAGS += -I$(PWD) -I$(PWD)/include

.PHONY: all default modules clean

all: default

default:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules

modules:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules

clean:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
	rm -f *~ */*~ core .*.cmd *.ko *.o *.mod.c .tmp_versions Module.symvers *.order

# End of Makefile
openSUSE Build Service is sponsored by