#PowerPC makefile

CDK_SRC = "/home/billy/e1ssl/powerpc-tuxbox-linux-gnu/powerpc-linux/include"
CDKROOT = /home/billy/e1ssl/powerpc-tuxbox-linux-gnu
CDKBIN = /home/billy/e1ssl/powerpc-tuxbox-linux-gnu/bin
CPPC = "/home/billy/e1ssl/powerpc-tuxbox-linux-gnu/bin/powerpc-linux-g++"
CC = "/home/billy/e1ssl/powerpc-tuxbox-linux-gnu/bin/powerpc-linux-g++"
STRIP = /home/billy/e1ssl/powerpc-tuxbox-linux-gnu/bin/powerpc-linux-strip
INCLUDES = -I$(CDK_SRC) -I.
COMPILER_FLAGS =  $(INCLUDES) -D __POWERPC__ -D __VERSION=\"$(VERSION)\" -fno-exceptions 
LINK_OPTIONS = -Wall -mcpu=405 -msoft-float -pipe -lpthread -lcrypt -lcrypto

include Makefile-includes

all: clean compile

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

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

clean:
	rm -f *.o
	rm -f sys/*.o
	rm -f btkcam_ppc
