#MIPS makefile


CPPC = "/home/billy/e2/mipsel-unknown-linux-gnu/bin/mipsel-unknown-linux-gnu-g++"
CC = "/home/billy/e2/mipsel-unknown-linux-gnu/bin/mipsel-unknown-linux-gnu-gcc"
STRIP = "/home/billy/e2/mipsel-unknown-linux-gnu/bin/mipsel-unknown-linux-gnu-strip"
INCLUDES = -I/home/e2/mipsel-unknown-linux-gnu/mipsel-unknown-linux-gnu/include -I. 
COMPILER_FLAGS =  $(INCLUDES) -D __MIPSEL__ -D __VERSION=\"$(VERSION)\" -fno-exceptions
LINK_OPTIONS = -Wall -msoft-float -pipe -lpthread -lcrypt

include Makefile-includes

all: clean compile

compile: $(OBJECTS)
	$(CPPC) $(LINK_OPTIONS) -o btkcam_mips $(OBJECTS)
	$(STRIP) btkcam_mips -o btkcam_mips

%.o: %.cpp
	$(CPPC) $(COMPILER_FLAGS) -c -o $*.o $<

clean:
	rm -f *.o
	rm -f btkcam_mips
