PROJS:=font_dd_8x8.h densitron_set densitron_bar all : $(PROJS) CROSSCOMP:=~/Desktop/WifiSD/crossc/arm-926ejs-linux-gnueabi SYSROOT:=~/Desktop/WifiSD/crossc/arm-926ejs-linux-gnueabi/arm-926ejs-linux-gnueabi/sysroot COMPBASE:=$(CROSSCOMP)/bin/arm-926ejs-linux-gnueabi CC:=$(COMPBASE)-cc CXX:=$(COMPBASE)-g++ # sudo add-apt-repository ppa:germia/archive3 CFLAGS:=-march=armv5te -mtune=arm926ej-s -msoft-float -mfloat-abi=soft -marm -lm #CFLAGS:=$(CFLAGS) --static font_dd_8x8.h: 8x8fontASCIIDOS437.ppm gcc -o fonter fonter.c ./fonter $^ > $@ % : %.c $(CC) $(CFLAGS) -o $@ $^ $(COMPBASE)-strip $@ gcc -o $@.local $^ % : %.cpp $(CXX) $(CFLAGS) -o $@ $^ showdeps : $(COMPBASE)-ldd --root $(SYSROOT) -s ./test $(COMPBASE)-ldd --root $(SYSROOT) -s ./testcpp clean : rm -rf *.o *~ $(PROJS)