PROJS:=test testcpp i2ctest i2cset i2csetfull densitron_set 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 #CFLAGS:=$(CFLAGS) --static % : %.c $(CC) $(CFLAGS) -o $@ $^ % : %.cpp $(CXX) $(CFLAGS) -o $@ $^ showdeps : $(COMPBASE)-ldd --root $(SYSROOT) -s ./test $(COMPBASE)-ldd --root $(SYSROOT) -s ./testcpp clean : rm -rf *.o *~ $(PROJS)