ben-pcf8833

Makefile

4:183a5a2decc7
2013-11-25 Paul Boddie Fixed uninitialised variable.
     1 # Makefile - Build the PCF8833 display software     2 #     3 # Copyright (C) 2013 Paul Boddie     4 #     5 # This program is free software; you can redistribute it and/or modify     6 # it under the terms of the GNU General Public License as published by     7 # the Free Software Foundation; either version 2 of the License, or     8 # (at your option) any later version.     9     10 LIBUBB = ../ben-blinkenlights/libubb    11 SYSROOT = ../openwrt-xburst/staging_dir/target-mipsel_eglibc-2.15    12 TOOLBIN = ../openwrt-xburst/staging_dir/toolchain-mipsel_gcc-4.6-linaro_eglibc-2.15/bin    13     14 ARCH = mipsel-openwrt-linux    15 CC = $(TOOLBIN)/$(ARCH)-gcc    16     17 CFLAGS = -g -Wall -fPIC -march=mips32 -I$(LIBUBB)/include # -DDEBUG=1    18 LDFLAGS = -lm -lubb -L$(LIBUBB)    19     20 SPIN = spin    21 BITMAP = bitmap    22 TARGETS = $(SPIN) $(BITMAP)    23     24 BASICSRC = pcf8833.c    25     26 SPINSOURCES = $(BASICSRC) spin.c    27 SPINOBJECTS = $(SPINSOURCES:.c=.o)    28     29 BITMAPSOURCES = $(BASICSRC) bitmap.c bitmaps.c    30 BITMAPOBJECTS = $(BITMAPSOURCES:.c=.o)    31     32 ALLSOURCES = $(BASICSRC) spin.c bitmap.c bitmaps.c    33 ALLOBJECTS = $(ALLSOURCES:.c=.o)    34     35 IMAGES = examples/*.JPG    36 IMAGESOURCES = bitmaps.c bitmaps.h    37     38 .PHONY:	all clean distclean    39     40 all:	$(TARGETS)    41     42 clean:    43 	rm -f $(ALLOBJECTS) $(IMAGESOURCES) $(TARGETS)    44     45 distclean: clean    46 	echo "Nothing else to clean."    47     48 $(SPIN): $(SPINOBJECTS)    49 	$(CC) $(LDFLAGS) $(SPINOBJECTS) -o $@    50     51 $(BITMAP): $(BITMAPOBJECTS)    52 	$(CC) $(LDFLAGS) $(BITMAPOBJECTS) -o $@    53     54 bitmap.c: $(IMAGESOURCES)    55     56 $(IMAGESOURCES): $(IMAGES)    57 	tools/bitmap.py bitmaps $(IMAGES)    58     59 .c.o:    60 	$(CC) -c $(CFLAGS) $< -o $@