CPP	=	g++
CC	=	gcc

INCL	=	-I../../include
CPPINCL =	$(INCL)

LDFLAGS =	-L/usr/lib

OBJS	=	$(OBJDIR)/anim.o \
		$(OBJDIR)/param.o \
		$(OBJDIR)/communication.o


all:		build

build:
		@for OBJ in $(OBJS) ; do \
			SRC=`basename $$OBJ .o` ; \
			if test ! -f "$$OBJ" -o "$$SRC.cpp" -nt "$$OBJ" -o "$$SRC.h" -nt "$$OBJ" ; then \
				echo "Compiling $$SRC.cpp" ; \
				$(CPP) $(CPPFLAGS) $(CPPINCL) -c $$SRC.cpp -o $$OBJ ; \
			fi \
		done
			

new:		clean all

clean:
		rm -f $(OBJS) *~ icons/*~

