30 lines
490 B
Makefile
30 lines
490 B
Makefile
|
|
||
|
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 := dt_plat_drv.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
|