Simple ROOT GUI & Makefile... some difficulties

I’m quite new with ROOT and I’m currently building a GUI.
I have some difficulties writing the Makefile for my 3 little files…

OBJS =		MainFrame.o main.o

LIBS = `root-config --glibs` -lHtml -lSpectrum 
CXXFLAGS =	-O2 -g -Wall `root-config --cflags` -fmessage-length=0
TARGET =	app

	$(CXX) -o $(TARGET) $(OBJS) $(LIBS)

all:	$(TARGET)

	rm -f $(OBJS) $(TARGET)

MainFrame is derivating from TGMainFrame, and it just creates an empty windows. main just create this object.
It doesn’t compile, I get messages like :

I heard this is because I need to generate dictionaries and include those compiled files while my target compilation.

Hope I’m clear enough.
Thanks in advance,


As it states in the description of this forum, this is for working applications. You’re much more likely to get help posting in the first forum.