#Use -DUSE_GTK to enable gtk
CFLAGS=-O2 -g -Wall -Wno-non-virtual-dtor $(shell pkg-config gtk+-2.0 --cflags)
CPPFLAGS=
INCLUDES=$(shell freetype-config --cflags) -I. -I.. -I../ode-0.5/include -I../CodeModules/Debugging
LIB_OBJS=x11.o graphics.o event.o font.o gtk.o callbacks.o interface.o support.o
LIB_NAME=libdprsimgr.a

default: $(LIB_NAME)

all: $(LIB_NAME)

clean:
	rm -f $(LIB_NAME)
	rm -f $(LIB_OBJS)
   
$(LIB_NAME) : $(LIB_OBJS)
	ar rcs $(LIB_NAME) $(LIB_OBJS)

%.o : %.cpp
	gcc $(CFLAGS) $(CPPFLAGS) $(INCLUDES) $(ODE_INCLUDES) -c $(<) -o $@
