mirror of
git://projects.qi-hardware.com/nn-usb-fpga.git
synced 2025-01-09 19:50:15 +02:00
24 lines
649 B
Makefile
24 lines
649 B
Makefile
EXTRA_CFLAGS += -Wall
|
|
CC = mipsel-openwrt-linux-gcc
|
|
OPENWRT_BASE = /home/cain/Embedded/ingenic/sakc/build/openwrt-xburst
|
|
KERNEL_SRC = $(OPENWRT_BASE)/build_dir/linux-xburst_qi_lb60/linux-2.6.32.10/
|
|
CROSS_COMPILE = mipsel-openwrt-linux-
|
|
|
|
obj-m += irq.o
|
|
all: driver irq_main
|
|
|
|
driver:
|
|
make -C $(KERNEL_SRC) M=$(PWD) ARCH=mips CROSS_COMPILE=$(CROSS_COMPILE) modules
|
|
clean:
|
|
make -C $(KERNEL_SRC) M=$(PWD) ARCH=mips CROSS_COMPILE=$(CROSS_COMPILE) clean
|
|
rm -rf *.o main.o main irq.ko Modules.symvers irq_main
|
|
|
|
main: main.o
|
|
|
|
PREPROCESS.c = $(CC) $(CFLAGS) $(TARGET_ARCH) -E -Wp,-C,-dD,-dI
|
|
%.pp : %.c FORCE
|
|
$(PREPROCESS.c) $< > $@
|
|
|
|
|
|
|