#############################################################################
# Qt Makefile - Picture
#############################################################################
# $Id: Makefile,v 1.10 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		= makepic.cpp	showpic.cpp
OBJECTS		= makepic.o	showpic.o
TARGETS		= makepic	showpic

####### Implicit rules

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

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

####### Build rules

all: $(TARGETS)

makepic: makepic.o
	$(CC) makepic.o -o makepic $(LFLAGS)

showpic: showpic.o
	$(CC) showpic.o -o showpic $(LFLAGS)

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

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


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