#############################################################################
# Qt Makefile - showimg
#############################################################################
# $Id: Makefile,v 1.2 1995/06/28 16:14:02 eiriken 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

#######	Files

TARGET	 	= showimg
OBJECTS		= showimg.o mshowimg.o main.o
SOURCES		= showimg.cpp main.cpp

#######	Implicit rules

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

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

m%.cpp: %.h
	moc -o $@ $<

#######	Build rules

all: $(TARGET)

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

#######	Meta classes

depend:
	@makedepend $(SOURCES) 2> /dev/null
clean:
	/bin/rm -f *.o *.bak *~ *% #*
	/bin/rm -f $(TARGET)
# DO NOT DELETE THIS LINE -- make depend depends on it.
