
prefix =	@prefix@
exec_prefix =	@exec_prefix@
bindir =	@bindir@

OBJF =		main.o \
            test_creationclass.o
EXTERN_LIBS = -L../lib -ldxf -L/usr/X11R6/lib -lX11
INCLUDES = -I../include

all: main

clean:
	@echo "Cleaning project..."
	@find . -name '*.o' -exec rm "{}" \;
	@if [ -f test ]; then rm -f test; fi

distclean: clean
	rm -f config.log config.cache Makefile config.status

main: $(OBJF)
	c++ -o test $(OBJF) $(EXTERN_LIBS)

%.o : %.cpp
	$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $(INCLUDES) -O3 -Wall $< -o $@

doc :
	@echo "Building documentation"
	@doxygen doxy.cfg
