1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/Makefile Sun Apr 07 18:35:52 2013 +0000
1.3 @@ -0,0 +1,37 @@
1.4 +# Makefile - Build the epaper software
1.5 +#
1.6 +# Copyright (C) 2013 Paul Boddie
1.7 +#
1.8 +# This program is free software; you can redistribute it and/or modify
1.9 +# it under the terms of the GNU General Public License as published by
1.10 +# the Free Software Foundation; either version 2 of the License, or
1.11 +# (at your option) any later version.
1.12 +
1.13 +LIBUBB = ../ben-blinkenlights/libubb
1.14 +SYSLIBS = ../openwrt-xburst/staging_dir/target-mipsel_eglibc-2.15/usr/lib
1.15 +
1.16 +ARCH = mipsel-openwrt-linux
1.17 +CC = $(ARCH)-gcc
1.18 +
1.19 +CFLAGS = -g -Wall -fPIC -march=mips32 -I$(LIBUBB)/include # -DDEBUG=1
1.20 +LDFLAGS = -lubb -L$(LIBUBB) #-static #-L$(SYSLIBS)
1.21 +
1.22 +TARGET = test
1.23 +SRC = test.c Display_COG_Process.c Display_Controller.c Display_Hardware_Driver.c
1.24 +OBJ = $(SRC:.c=.o)
1.25 +
1.26 +.PHONY: all clean distclean
1.27 +
1.28 +all: $(TARGET)
1.29 +
1.30 +clean:
1.31 + rm -f $(OBJ) $(TARGET)
1.32 +
1.33 +distclean: clean
1.34 + echo "Nothing else to clean."
1.35 +
1.36 +$(TARGET): $(OBJ)
1.37 + $(CC) $(LDFLAGS) $< -o $@
1.38 +
1.39 +.c.o:
1.40 + $(CC) -c $(CFLAGS) $< -o $@