linux_module_learn/led_dev/Makefile

29 lines
450 B
Makefile

ifeq ($(DEBUG),y)
DEBFLAGS = -O -g -DLED_DEBUG
endif
EXTRA_CFLAGS += $(DEBFLAGS)
KERNEL_DIR=../../ebf_6ull_linux
ARCH=arm
CROSS_COMPILE=arm-linux-gnueabihf-
export ARCH CROSS_COMPILE
obj-m := led.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