mirror of
git://projects.qi-hardware.com/nn-usb-fpga.git
synced 2025-01-09 19:20:15 +02:00
21 lines
635 B
Makefile
21 lines
635 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 += blinker.o
|
||
|
all: driver #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
|
||
|
|
||
|
main: main.o
|
||
|
|
||
|
PREPROCESS.c = $(CC) $(CFLAGS) $(TARGET_ARCH) -E -Wp,-C,-dD,-dI
|
||
|
%.pp : %.c FORCE
|
||
|
$(PREPROCESS.c) $< > $@
|