Root/PS2_INTERFACE/drivers/Makefile

1EXTRA_CFLAGS += -Wall
2OPENWRT_BASE = /home/ari/sie/p/openwrt-xburst
3KERNEL_SRC = $(OPENWRT_BASE)/build_dir/linux-xburst_qi_lb60/linux-2.6.32.16/
4CC = $(OPENWRT_BASE)/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.32/usr/bin/mipsel-openwrt-linux-gcc
5CROSS_COMPILE = $(OPENWRT_BASE)/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.32/usr/bin/mipsel-openwrt-linux-
6NANO_IP = 192.168.254.101
7
8obj-m += ps2_kb.o ps2_ms.o#hello.o memory.o digTest.o
9all: driver #main
10
11driver:
12    make -C $(KERNEL_SRC) M=$(PWD) ARCH=mips CROSS_COMPILE=$(CROSS_COMPILE) modules
13clean:
14    make -C $(KERNEL_SRC) M=$(PWD) ARCH=mips CROSS_COMPILE=$(CROSS_COMPILE) clean
15    rm -f *.o Modules.symvers
16
17cleanall:
18    make -C $(KERNEL_SRC) M=$(PWD) ARCH=mips CROSS_COMPILE=$(CROSS_COMPILE) clean
19    rm -f *.o *.c~ Makefile~ main.o main Modules.symvers
20
21upload: all
22    scp ps2_ms.ko root@$(NANO_IP):~/
23
24main: main.o
25
26PREPROCESS.c = $(CC) $(CFLAGS) $(TARGET_ARCH) -E -Wp,-C,-dD,-dI
27%.pp : %.c FORCE
28    $(PREPROCESS.c) $< > $@
29

Archive Download this file

Branches:
master



interactive