# the next two lines are added by pgen

TARGET=pgen
EIFFEL_GTK=../eiffel-gtk

# nothing editable below this line 

DEBUG_EIFFLAGS=-cecil gtk_cecil -O0 -debug_check
DIST_EIFFLAGS=-cecil gtk_cecil -O9 -boost -no_split

LIBS=-L$(EIFFEL_GTK)/gtkwrapper/external -leiffel-gtk `gtk-config --libs`

all : $(TARGET)

dist: external
	make clobber
	compile -verbose $(TARGET) make -o $(TARGET) $(DIST_EIFFLAGS) $(LIBS)

$(TARGET) : external 
	compile -verbose $(TARGET) make -o $(TARGET) $(DEBUG_EIFFLAGS) $(LIBS)

external : dummy
	make -C $(EIFFEL_GTK)/gtkwrapper/external

clean: 
	clean $(TARGET)
	rm -f gtk_eiffel.h *~ .*~ core
	
clobber:
	make clean
	rm -f $(TARGET) 

dummy : 

