MIPSEL	=	/opt/snow-gcc
CXXFLAGS=	-B$(MIPSEL)/lib/snow/ -msoft-float
CXX	=	mipsel-linux-g++ 
STRIP	=	mipsel-linux-strip
OBJ	=	btp.o rc.o
LIBS	=	-lflpda -lflek_ui -lflek_core -lfltk -lXext -lX11 

.SUFFIXES: .cxx .o

.cxx.o:
	$(CXX) $(CXXFLAGS) -c $< -o $@

btp: $(OBJ)
	$(CXX) $(CXXFLAGS) -o btp $(OBJ) $(LIBS)
	$(STRIP) btp

clean:
	rm -f $(OBJ) btp

install: btp
	rsync --progress btp agenda::default/.wmx/Applications
