#############################################################################
# Qt Makefile - examples
#############################################################################
# $Id: Makefile,v 1.5 1995/06/28 16:58:12 agulbra Exp $
#
# This file contains the configuration information for all the demos.
#
#
# If you didn't install the Qt things in /usr/local/lib/qt, change CFLAGS
# to point at the correct include directory.
CFLAGS		= -O2 -I/usr/local/lib/qt/include
#
# If you didn't put libqt in /usr/lib you must add a -L option to LFLAGS,
# e.g. -L/home/yourname/lib, or point $LIBRARY_PATH and/or $LD_LIBRARY_PATH
# at that directory.
#
# 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
#
# The compiler is almost certainly gcc on linux.  Qt has not been tested
# with Comeau C++.
CC		= gcc

#
# The next line selects which examples are made

SUBDIRS 	= aclock connect cursor dclock desktop forever hello showimg \
		picture tetris wheel xform qmag

all:
	set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i 'CFLAGS=$(CFLAGS)' 'LFLAGS=$(LFLAGS)' 'CC=$(CC)'; done

depend:
	set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i depend 'CFLAGS=$(CFLAGS)'; done

clean:
	set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done
