# -----------------------------------------------------------------------------
# $Id: Makefile,v 1.11 2004/03/25 18:10:00 ross Exp $

TOP = ..
include $(TOP)/mk/boilerplate.mk

# -----------------------------------------------------------------------------

# We do not make examples a subdir because then we can't avoid building it
# SUBDIRS = examples
SUBDIRS = 

ALL_DIRS = \
	Graphics \
	Graphics/HGL \
	Graphics/HGL/Draw \
	Graphics/HGL/Internals

PACKAGE = HGL

ifneq "$(strip $(X_LIBS))" ""
PLATFORM       = X11
endif

# sleazy test for windows boxes
ifneq "$(strip $(exeext))" ""
PLATFORM       = Win32
endif

ifneq "$(PLATFORM)" ""
ALL_DIRS      += Graphics/HGL/$(PLATFORM)
endif

PACKAGE_DEPS   = base $(PLATFORM)
PACKAGE_CPP_OPTS += -DPLATFORM='"$(PLATFORM)"'

SRC_HC_OPTS   += -cpp

SRC_HADDOCK_OPTS += -t "Graphics Libraries ($(PACKAGE) package)"

# -----------------------------------------------------------------------------

include $(TOP)/mk/target.mk
