XCOMM =======================================
XCOMM     U S E R  - configurable options
XCOMM - - - - - - - - - - - - - - - - - - - -

XCOMM ---------------------------------------
XCOMM ---- Set the master xpm to be used ----
XCOMM ---------------------------------------

XCOMM Select back_7colors if you have few
XCOMM colors available.

MASTER_XPM = back
# MASTER_XPM = back_7colors


XCOMM ---------------------------------------
XCOMM --- Set your compiler switches here ---
XCOMM ---------------------------------------

# CC: The C compiler to use. default: your default C compiler
# Examples:

# 	CC = /usr/local/egcs/bin/gcc
# 	CC = /usr/bin/cc
# 	CC = /usr/local/bin/gcc
# ----------

# CPPFLAGS: The C Pre-Processor flags. See man cc
# Examples:

# 	CPPFLAGS = -O9 -mpentium
# 	CPPFLAGS = -O -m486
# ----------

# BINDIR: The path to install to. default: /usr/X11R6/bin
# Examples:

# 	BINDIR = /usr/bin/X11/bin
# 	BINDIR = /usr/local/bin
# ----------

# LIB_PATH & INC_PATH: An extra set of paths to tell
# the compiler where needed libraries and include-files
# are located. Defaults:
# 	LIB_PATH: /usr/X11R6/lib, /usr/local/lib, .
# 	INC_PATH: /usr/local/include, .
# Examples:

# 	LIB_PATH = -L~/lib
# 	LIB_PATH = -L/usr/lib/X11
# 	INC_PATH = -I~/include
# 	INC_PATH = -I/usr/include/X11
# ----------


XCOMM ---------------------------------------
XCOMM ----- Workaround for XServer bug  -----
XCOMM ---------------------------------------

# If you're running one of the XServers that
# has an updating bug, uncomment the following
# line.
# This bug manifests (AFAIK), only in test mode,
# by not updating the test-date after more than
# one mousebutton-press. See INSTALL for the
# XServers with a bug (currently only XF86_SVGA).
# You can test for this bug running ./wmdate -t
# and then click in the calendar part multiple 
# times.

# XSERVER_BUG = true
# ----------



XCOMM
XCOMM - - - - - - - - - - - - - - - - - - - -
XCOMM    END  of user configurable options
XCOMM =======================================
XCOMM
XCOMM /-------------------------------------\
XCOMM    You should not need to edit below.
XCOMM \-------------------------------------/
XCOMM



# CDEBUGFLAGS = -ggdb -Wall -pedantic

MASTERXPM = xpm/$(MASTER_XPM).xpm

WMDATELIBS = -L/usr/X11R6/lib \
            -L/usr/local/lib \
			-L. \
 			-ldockapp \
            -lXpm -lXext -lX11

STD_INCLUDES = $(INC_PATH) -I/usr/local/include -I.
DEPLIBS = $(DEPXLIB) 

LOCAL_LIBRARIES = $(LIB_PATH) $(WMDATELIBS) $(XLIB)

LINTLIBS = $(LINTXLIB)

SRCS = wmdate.c
OBJS = wmdate.o


XCOMM ---------------------------------------
XCOMM            Compile Targets
XCOMM ---------------------------------------

all:: config wmdate

config::
	@echo '#include "$(MASTERXPM)"' > config.h
	@if test $(XSERVER_BUG); then \
		echo -e "`cat config.h`\n#define XSERVER_BUG" > config.h; \
	fi

distclean:: clean
	rm -f Makefile*
	rm -f config.h

uninstall::
	rm -f $(BINDIR)/wmdate

wmdate.c:	geometry.h xpm/$(MASTER_XPM).xpm


XCOMM ---------------------------------------
XCOMM             Create Makefile
XCOMM ---------------------------------------

ComplexProgramTarget(wmdate)

XCOMM - - - - - - - - - - - - - - - - - - - -
XCOMM                 e n d
XCOMM =======================================
