PROJS:=dataserver 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 % : %.c $(CC) $(CFLAGS) -o $@ $^ % : %.cpp $(CXX) $(CFLAGS) -o $@ $^ strip : $(COMPBASE)-strip $(PROJS) showdeps : $(COMPBASE)-ldd --root $(SYSROOT) -s ./dataserver clean : rm -rf *.o *~ $(PROJS)