Re: Makefile problem



johannes_vuori web de wrote:

> Hi,
> thanks for the quick response. I have probably done something wrong since the same error output still comes (attached in a file). Here is what the Makefile looks like now:
> #########################
> main: functions/main.o functions/graphics/grph_init.o
> g++ -o main functions/main.o functions/graphics/graph_init.o `--libs`
>
> main.o: main.cpp functions/needed/main.h
>         g++ -c functions/main.cpp  `--cflags`
>
> grph_init.o: grph_init.cpp
>         g++ -c `gtkmm-config --cflags` functions/graphics/grph_init.cpp
> #########################


I usually just add to the top of my makefile:

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






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