linux_module_learn/i2c/Makefile

30 lines
486 B
Makefile
Raw Normal View History

2023-07-22 13:42:32 +08:00
ifeq ($(DEBUG),y)
DEBFLAGS = -O -g -DDEBUG
endif
EXTRA_CFLAGS += $(DEBFLAGS)
KERNEL_DIR=../../ebf_6ull_linux
ARCH=arm
CROSS_COMPILE=arm-linux-gnueabihf-
export ARCH CROSS_COMPILE
#xxx-objs := main.o pipe.o access.o
obj-m := mpu6050.o
all:
$(MAKE) -C $(KERNEL_DIR) M=$(CURDIR) modules
.PHONE:clean
clean:
$(MAKE) -C $(KERNEL_DIR) M=$(CURDIR) clean
#depend .depend dep:
# $(CC) $(EXTRA_CFLAGS) -M *.c > .depend
#ifeq (.depend,$(wildcard .depend))
#include .depend
#endif