#############################################################################
# Qt Makefile - Desktop
#############################################################################
# $Id: Makefile,v 1.7 1995/06/28 16:52:33 agulbra Exp $

####### Defines

# Overridden by the ones in ../Makefile, but provided so you _can_ work
# on one example without much bother
#
# You can also just set $CPLUS_INCLUDE_PATH in ~/.profile or ~/.login
CFLAGS          = -O2 -I/usr/local/lib/qt/include
#
# Remember, ld looks in $LIBRARY_PATH and ld.so in $LD_LIBRARY_PATH
#
# It is not necessary to link with libXt when using Qt.  If you use the ELF
# version of Qt, you can remove -lX11 too.
LFLAGS          = -lqt -lX11
#
# OF COURSE you use gcc
CC		= gcc

####### Files

SOURCES		= desktop.cpp
OBJECTS		= desktop.o
TARGET		= desktop

####### Implicit rules

.SUFFIXES:
.SUFFIXES: .cpp $(SUFFIXES)

.cpp.o:
	$(CC) -c $(CFLAGS) $<

####### Build rules

all: $(TARGET)

$(TARGET):

$(TARGET): $(OBJECTS)
	$(CC) $(OBJECTS) -o $(TARGET) $(LFLAGS)

depend:
	@makedepend -I$(INCDIR) $(SOURCES) 2> /dev/null

clean:
	/bin/rm -f *.o *.bak *~ *% #*
	/bin/rm -f $(TARGET)


# DO NOT DELETE THIS LINE -- make depend depends on it.
