# GNU Makefile for the X11 part of the PTC 2.0 C++ API
# Copyright (c) 1998 Christian Nentwich (brn@eleet.mcb.at)
# The PTC 2.0 C++ API is (c) 1998 Glenn Fiedler (ptc@gaffer.org)
# This package is licensed under the GNU LGPL
#
# Please refer to the file COPYING.LIB contained in the distribution for
# licensing conditions

include ../Makefile.config

EXAMPLE_DIRS = area buffer clear clip console hicolor image info keyboard \
  modes palette pixel random save stretch timer unix

all:
	@for subdir in $(EXAMPLE_DIRS); do \
	  cd $$subdir; \
	  $(PTC_MAKE); \
	  cd ..; \
	done

clean:
	@for subdir in $(EXAMPLE_DIRS); do \
	  cd $$subdir; \
	  $(PTC_MAKE) clean; \
	  cd ..; \
	done

distclean:
	@for subdir in $(EXAMPLE_DIRS); do \
	  cd $$subdir; \
	  $(PTC_MAKE) distclean; \
	  cd ..;\
	done

