# -*- make -*-
BASE=..
SUBDIR=deity

# Header location
HEADER_TARGETDIRS = deity

# Bring in the default rules
include ../buildlib/defaults.mak

# The library name
LIBRARY=deity
MAJOR=0
MINOR=0.0
SLIBS=$(XLIBS) $(SLANGLIB) $(GPMLIB) $(XPMLIB)

# Source code for the contributed non-core things
SOURCE = widget.cc selectloop.cc widget-thread.cc graphics.cc \
         notify.cc event.cc basic.cc anchor.cc menubar.cc \
         textwidg.cc button.cc window.cc tree.cc columnbar.cc \
	 tabdialog.cc xpm.cc utils.cc widgetinit.cc progress.cc 

# Public deity header files
HEADERS = anchor.h event.h notify.h textwidg.h widget.h \
          basic.h selectloop.h widget-thread.h window.h \
          button.h graphics.h tree.h columnbar.h menubar.h \
	  tabdialog.h utils.h xpm.h widgetinit.h progress.h

# Conditional include of X11 only components
ifneq ($(strip $(X11LIB)),)
SOURCE+= x11dev.cc x11xpm.cc
HEADERS+= x11dev.h
endif

# Conditional include of slang only components
ifneq ($(strip $(SLANGLIB)),)
SOURCE+= slangdev.cc
HEADERS+= slangdev.h
endif

# Conditional include of gpm only components
ifneq ($(strip $(GPMLIB)),)
SOURCE+= gpmdev.cc
HEADERS+= gpmdev.h
endif

HEADERS := $(addprefix deity/,$(HEADERS))

include $(LIBRARY_H)
