/* belt and braces approach, just-in-case XCOMM isn't defined */
#ifndef XCOMM
#define XCOMM #
#endif

/* some old systems (ODT) don't have this */
#ifndef NullParameter
#define NullParameter
#endif

XCOMM
XCOMM
XCOMM Imakefile for rtc.
XCOMM Copyright (c) 1993,1994,1995 Richard M. Offer.
XCOMM
XCOMM    This program is free software; you can redistribute it and/or modify
XCOMM    it under the terms of the GNU General Public License as published by
XCOMM    the Free Software Foundation; either version 2 of the License, or
XCOMM    (at your option) any later version.
XCOMM
XCOMM    This program is distributed in the hope that it will be useful,
XCOMM    but WITHOUT ANY WARRANTY; without even the implied warranty of
XCOMM    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
XCOMM    GNU General Public License for more details.
XCOMM
XCOMM    You should have received a copy of the GNU General Public License
XCOMM    along with this program; if not, write to the Free Software
XCOMM    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
XCOMM
XCOMM
XCOMM Although the GPL allows you to modify the code to your hearts content,
XCOMM could you be polite and send me a copy of any changes (but not patches, my
XCOMM code may have changed). If you are considering adding additional
XCOMM features, you might me better contacting me to make sure I'm not one
XCOMM step ahead of you :-)
XCOMM
XCOMM richard.


XCOMM edit ../include/config.h to define the options you want compiled into the final binary.
#include <../include/rtc-config.h>

#ifdef WANT_COLOUR_ICONS
XPMLIB=-lXpm
DEPXPMLIB=/usr/X386/lib/libXpm.a
XPMINC=-I/usr/include
#endif

#ifdef WANT_HTML
HTMLW_LIB=-L../libhtmlw -lhtmlw
HTMLW_INC=-I../libhtmlw
DEPHTMLW_LIB=../libhtmlw/libhtmlw.a
#endif

#ifdef WANT_FILE
FILE_LIB=-L../libRws -lRws
DEPFILE_LIB=../libRws/libRws.a
#endif

EXTRA_INCLUDES =-I../include $(HTMLW_INC) $(XPMINC)

LOCAL_LIBS = $(XPMLIB) $(HTMLW_LIB) $(FILE_LIB) -lXm -lXmu $(XTOOLLIB) $(XLIB)
DEPLIBS = $(DEPXPMLIB) $(DEPHTMLW_LIB) $(DEPFILE_LIB) 

#ifdef WANT_HELP
HELP_OBJS = help.o help-context.o help-def.o help-menu-entries.o gifread.o
#endif

#ifdef WANT_PANEL
PANEL_OBJS = panel.o panel-text.o panel-list.o panel-command.o panel-file.o panel-toggle.o panel-scale.o
#endif

OPTION_OBJS = $(HELP_OBJS) $(PANEL_OBJS) clock.o mail.o disk-space.o 

OBJS = 	main.o \
	object.o \
	parse.o \
	menu-def.o \
	menu.o \
	misc.o \
	button.o \
	gui.o \
	execute.o \
	label.o \
	separator.o \
	exit.o \
	resources.o \
	$(OPTION_OBJS)

XCOMM SRCS is only used for depend target

SRCS= button.c clock.c disk-space.c execute.c exit.c gifread.c gui.c help-context.c help-def.c help-menu-entries.c help.c label.c mail.c main.c menu-def.c menu.c misc.c object.c panel-command.c panel-file.c panel-list.c panel-scale.c panel-text.c panel-toggle.c panel.c parse.c resources.c separator.c 



/* using NormalProgramTarget rather than ComplexProgramTarget because I don't want install.man target */

NormalProgramTarget(rtc,$(OBJS),$(DEPLIBS),$(LOCAL_LIBS),NullParameter)
AllTarget(rtc)
DependTarget()
InstallProgram(rtc,$(BINDIR))
