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

Re: KDE2 helloworld.cpp



On Tue, 2002-10-01 at 21:06, Colin Watson wrote:
> On Tue, Oct 01, 2002 at 08:54:34PM +1200, John Batistic wrote:
> > INCLUDES= -I/usr/share/qt/include -I/etc/kde2/include
> > CFLAGS= -pipe -02 -fno-strength-reduce
> > LFLAGS= -L/usr/share/qt/lib/ -L/usr/lib/kde2/lib -L/usr/X11R6/lib
> > LIBS= -lqt -lX11 -ltext
> > CC=g++
> > 
> > helloworld: helloworld.o
> > 	$(CC) $(LFLAGS) -o helloworld helloworld.o $(LIBS)
> 
> You don't actually mention either $(INCLUDES) or $(CFLAGS) in that rule,
> so neither will be used.
> 
The reference I am using is the KDE Bible tutorial, which limits my
knowledge to what it says.

Man g++ appears to say that I should add -I$(INCLUDES) to the compiler
command line, but trying that doesn't work.

How should I add INCLUDES to the compiler rule?

John Batistic



Reply to: