1.1 --- a/Makefile Sun Apr 07 18:35:52 2013 +0000
1.2 +++ b/Makefile Sun May 19 21:18:16 2013 +0000
1.3 @@ -9,15 +9,16 @@
1.4
1.5 LIBUBB = ../ben-blinkenlights/libubb
1.6 SYSLIBS = ../openwrt-xburst/staging_dir/target-mipsel_eglibc-2.15/usr/lib
1.7 +TOOLBIN = ../openwrt-xburst/staging_dir/toolchain-mipsel_gcc-4.6-linaro_eglibc-2.15/bin
1.8
1.9 ARCH = mipsel-openwrt-linux
1.10 -CC = $(ARCH)-gcc
1.11 +CC = $(TOOLBIN)/$(ARCH)-gcc
1.12
1.13 -CFLAGS = -g -Wall -fPIC -march=mips32 -I$(LIBUBB)/include # -DDEBUG=1
1.14 +CFLAGS = -g -Wall -fPIC -march=mips32 -I$(LIBUBB)/include -DNANONOTE # -DDISPLAY_IN_USE=EPD_TYPE_270 # -DDEBUG=1
1.15 LDFLAGS = -lubb -L$(LIBUBB) #-static #-L$(SYSLIBS)
1.16
1.17 TARGET = test
1.18 -SRC = test.c Display_COG_Process.c Display_Controller.c Display_Hardware_Driver.c
1.19 +SRC = test.c bsp.c Display_COG_Process.c Display_Controller.c Display_Hardware_Driver.c logo.c
1.20 OBJ = $(SRC:.c=.o)
1.21
1.22 .PHONY: all clean distclean
1.23 @@ -31,7 +32,7 @@
1.24 echo "Nothing else to clean."
1.25
1.26 $(TARGET): $(OBJ)
1.27 - $(CC) $(LDFLAGS) $< -o $@
1.28 + $(CC) $(LDFLAGS) $(OBJ) -o $@
1.29
1.30 .c.o:
1.31 $(CC) -c $(CFLAGS) $< -o $@