Re: building a makefile (2 questions)



On 2006-03-07 (Tue), at 21:39:57 eduardo fiss beloni wrote:

> hello again
> 
> first: how do I do to set default the Gtk::Entry
> selected region on my Gtk::Window derived???
Sorry, but I don't understand this. This question doesn't seem to be in plain
English. :-P 

> and second; I want to build a makefile. At this
> moment, my compilation like this:
> 
> g++ one_d.cpp growtharea.cpp mainwindow.cpp -o one_d
> `pkg-config gtkmm-2.0 --cflags --libs`
> 
> can anyone give me a simple makefile example with
> gtkmm??
as Denis said you need to define CXXFLAGS and LDFLAGS, and probably one method
to link everythin in one executable file. The simplest makefile will look like
this:

CXXFLAGS += -g `pkg-config --cflags gtkmm-2.4`
LDFLAGS += `pkg-config --libs gtkmm-2.4`

one_d: one_d.o growtharea.o mainwindow.o
	$(CXX) $(LDFLAGS) $^ -o $@

clean:
	-rm *.o
	-rm one_d



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]