/*
 *  *real* Imakefile for library HgWidgets
 *
 * $Id: Imakefile,v 1.11 1997/02/26 08:47:12 bmarsch Exp $
 *
 *  Created:  21 Mar 95   Bernhard Marschall
 *
 * $Log: Imakefile,v $
 * Revision 1.11  1997/02/26 08:47:12  bmarsch
 * Don't build shared library
 *
 * Revision 1.10  1996/11/20 11:29:52  bmarsch
 * Also build shared library
 *
 * Revision 1.9  1996/11/20 10:02:56  jschipf
 * Added textbuffer
 *
 * Revision 1.8  1996/10/14 14:15:01  bmarsch
 * Added dateeditor & numbereditor
 *
 * Revision 1.7  1996/08/05 20:33:45  bmarsch
 * *** empty log message ***
 *
 * Revision 1.6  1996/04/11 07:27:47  bmarsch
 * *** empty log message ***
 *
 * Revision 1.5  1996/03/12 16:54:11  bmarsch
 * Added define for instrumentation
 * Added classes for markable scrollbars
 *
 * Revision 1.4  1996/02/27 14:48:03  bmarsch
 * Changed to libpng-0.88
 *
 * Revision 1.3  1996/02/14 14:14:31  bmarsch
 * Added keymask.h
 *
 * Revision 1.2  1996/02/07 15:30:50  bmarsch
 * progressb.h moved to HgUtils
 *
 * Revision 1.1  1996/02/05 15:39:24  bmarsch
 * Initial revision
 *
 */


#ifdef InObjectCodeDir

VERSION = 1.1

/* #define Instrumented */
#ifdef Instrumented
APP_CCDEFINES = -DINSTRUMENTED
#endif

#if defined(SunArchitecture) && OSMajorVersion >= 5
APP_CCDEFINES = -g
#endif

/* png has to find zlib includes */
APP_CCINCLUDES = -I$(SRC)/../zlib

JPEG = $(SRC)/../jpeg
ZLIB = $(SRC)/../zlib
PNG = $(SRC)/../png
WIDGETS = $(SRC)/../widgets

/* for makedepend */
SRCS = \
$(JPEG)$(SLASH)*.C \
$(ZLIB)$(SLASH)*.c \
$(PNG)$(SLASH)*.C \
$(WIDGETS)$(SLASH)*.C \

/* objects of jpeg library */
JPEG_OBJS = \
jdapimin.o jdapistd.o jdmaster.o jdinput.o jdmarker.o jdhuff.o jdphuff.o \
jdmainct.o jdcoefct.o jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o \
jidctred.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o \
jcomapi.o jutils.o jerror.o jmemmgr.o jmemnobs.o

/* objects of zlib library */
ZLIB_OBJS = \
adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o

/* objects of png library */
PNG_OBJS = \
png.o pngrcb.o pngrutil.o pngtrans.o pngwutil.o pngread.o pngio.o pngwrite.o \
pngrtran.o pngwtran.o pngmem.o pngerror.o pngpread.o

/* "real" widgets objects */
WIDGETS_OBJS = \
about.o adjvalue.o bubblewindow.o coldlg.o colorviewer.o colselect.o \
cursors.o dateeditor.o editlabel.o fbrowser.o fchooser.o field.o fieldb.o \
fslider.o gifimage.o glyphutil.o hgraster.o hgrastercb.o jpegimage.o hlsutil.o \
kbdhandler.o labels.o libwidgets.o lineeditor.o listbox.o madjust.o \
menus.o mscrollbar.o msgbox.o msgdlg.o mslider.o mthumb.o nonmodaldlg.o \
numbereditor.o pngimage.o ocolor.o priority.o progress.o progrind.o rimage.o \
sscrbox.o table.o text.o textb.o textbuffer.o tiffimage.o wtranslate.o xpmraster.o

/* all objects */
OBJS = $(JPEG_OBJS) $(ZLIB_OBJS) $(PNG_OBJS) $(WIDGETS_OBJS)
SH_OBJS = $(OBJS)

Use_libInterViews()

MakeHgLibrary(HgWidgets,$(VERSION))
/*MakeSharedHgLibrary(HgWidgets,$(VERSION))*/

/* my install include rule: must take include files from WIDGETS directory */
#define InstallWidgetsInclude(includefile) \
install::                                                                    @@\
	MakeDir($(HGINCDIR)/hyperg/widgets)                                  @@\
	hgInstallHeader -p hyperg/widgets -s $(WIDGETS)/includefile -d $(HGINCDIR)/hyperg/widgets/includefile @@\
uninstall::                                                                  @@\
	$(RM) $(HGINCDIR)/hyperg/widgets/includefile                         @@\
	RmDir($(HGINCDIR)/hyperg/widgets)


InstallWidgetsInclude(about.h)
InstallWidgetsInclude(adjvalue.h)
InstallWidgetsInclude(bubblewindow.h)
InstallWidgetsInclude(coldlg.h)
InstallWidgetsInclude(colorviewer.h)
InstallWidgetsInclude(colselect.h)
InstallWidgetsInclude(cursors.h)
InstallWidgetsInclude(dateeditor.h)
InstallWidgetsInclude(editlabel.h)
InstallWidgetsInclude(fbrowser.h)
InstallWidgetsInclude(fchooser.h)
InstallWidgetsInclude(field.h)
InstallWidgetsInclude(fieldb.h)
InstallWidgetsInclude(fslider.h)
InstallWidgetsInclude(gifimage.h)
InstallWidgetsInclude(glyphutil.h)
InstallWidgetsInclude(hgraster.h)
InstallWidgetsInclude(hgrastercb.h)
InstallWidgetsInclude(hlsutil.h)
InstallWidgetsInclude(jpegimage.h)
InstallWidgetsInclude(kbdhandler.h)
InstallWidgetsInclude(keymask.h)
InstallWidgetsInclude(labels.h)
InstallWidgetsInclude(libwidgets.h)
InstallWidgetsInclude(lineeditor.h)
InstallWidgetsInclude(listbox.h)
InstallWidgetsInclude(madjust.h)
InstallWidgetsInclude(menus.h)
InstallWidgetsInclude(mscrollbar.h)
InstallWidgetsInclude(msgbox.h)
InstallWidgetsInclude(msgdlg.h)
InstallWidgetsInclude(mslider.h)
InstallWidgetsInclude(mthumb.h)
InstallWidgetsInclude(nonmodaldlg.h)
InstallWidgetsInclude(numbereditor.h)
InstallWidgetsInclude(ocolor.h)
InstallWidgetsInclude(pngimage.h)
InstallWidgetsInclude(priority.h)
InstallWidgetsInclude(progress.h)
InstallWidgetsInclude(progrind.h)
InstallWidgetsInclude(rimage.h)
InstallWidgetsInclude(sscrbox.h)
InstallWidgetsInclude(table.h)
InstallWidgetsInclude(text.h)
InstallWidgetsInclude(textb.h)
InstallWidgetsInclude(tiffimage.h)
InstallWidgetsInclude(wtranslate.h)
InstallWidgetsInclude(xpmraster.h)


/* compile jpeg sources */
#define JpegObj(file) MakeObjectRule(file,$(JPEG)/file,NullParameter)

JpegObj(jdapimin)
JpegObj(jdapistd)
JpegObj(jdmaster)
JpegObj(jdinput)
JpegObj(jdmarker)
JpegObj(jdhuff)
JpegObj(jdphuff)
JpegObj(jdmainct)
JpegObj(jdcoefct)
JpegObj(jdpostct)
JpegObj(jddctmgr)
JpegObj(jidctfst)
JpegObj(jidctflt)
JpegObj(jidctint)
JpegObj(jidctred)
JpegObj(jdsample)
JpegObj(jdcolor)
JpegObj(jquant1)
JpegObj(jquant2)
JpegObj(jdmerge)
JpegObj(jcomapi)
JpegObj(jutils)
JpegObj(jerror)
JpegObj(jmemmgr)
JpegObj(jmemnobs)

/* compile jpeg sources shared */
#define JpegSharedObj(file) MakeSharedObjectRule(file,$(JPEG)/file,NullParameter)

JpegSharedObj(jdapimin)
JpegSharedObj(jdapistd)
JpegSharedObj(jdmaster)
JpegSharedObj(jdinput)
JpegSharedObj(jdmarker)
JpegSharedObj(jdhuff)
JpegSharedObj(jdphuff)
JpegSharedObj(jdmainct)
JpegSharedObj(jdcoefct)
JpegSharedObj(jdpostct)
JpegSharedObj(jddctmgr)
JpegSharedObj(jidctfst)
JpegSharedObj(jidctflt)
JpegSharedObj(jidctint)
JpegSharedObj(jidctred)
JpegSharedObj(jdsample)
JpegSharedObj(jdcolor)
JpegSharedObj(jquant1)
JpegSharedObj(jquant2)
JpegSharedObj(jdmerge)
JpegSharedObj(jcomapi)
JpegSharedObj(jutils)
JpegSharedObj(jerror)
JpegSharedObj(jmemmgr)
JpegSharedObj(jmemnobs)

/* use TIFF.def for ANSI-C rules */
#include <TIFF.def>
TIFF_STD_CDEFINES = -DUSE_VARARGS=0 -DUSE_PROTOTYPES=1 -D$(ARCH)
TIFF_STD_CINCLUDES = $(APP_CCINCLUDES)

/* compile zlib sources */
#define ZlibObj(file) MakeTIFFCObjectRule(file,$(ZLIB)/file,NullParameter)

ZlibObj(adler32)
ZlibObj(compress)
ZlibObj(crc32)
ZlibObj(gzio)
ZlibObj(uncompr)
ZlibObj(deflate)
ZlibObj(trees)
ZlibObj(zutil)
ZlibObj(inflate)
ZlibObj(infblock)
ZlibObj(inftrees)
ZlibObj(infcodes)
ZlibObj(infutil)
ZlibObj(inffast)

/* compile zlib sources shared */
#define ZlibSharedObj(file) MakeTIFFCSharedObjectRule(file,$(ZLIB)/file,NullParameter)

ZlibSharedObj(adler32)
ZlibSharedObj(compress)
ZlibSharedObj(crc32)
ZlibSharedObj(gzio)
ZlibSharedObj(uncompr)
ZlibSharedObj(deflate)
ZlibSharedObj(trees)
ZlibSharedObj(zutil)
ZlibSharedObj(inflate)
ZlibSharedObj(infblock)
ZlibSharedObj(inftrees)
ZlibSharedObj(infcodes)
ZlibSharedObj(infutil)
ZlibSharedObj(inffast)


/* compile png sources */
#define PngObj(file) MakeObjectRule(file,$(PNG)/file,NullParameter)

PngObj(png)
PngObj(pngrcb)
PngObj(pngrutil)
PngObj(pngtrans)
PngObj(pngwutil)
PngObj(pngread)
PngObj(pngio)
PngObj(pngwrite)
PngObj(pngrtran)
PngObj(pngwtran)
PngObj(pngmem)
PngObj(pngerror)
PngObj(pngpread)

/* compile png sources shared */
#define PngSharedObj(file) MakeSharedObjectRule(file,$(PNG)/file,NullParameter)

PngSharedObj(png)
PngSharedObj(pngrcb)
PngSharedObj(pngrutil)
PngSharedObj(pngtrans)
PngSharedObj(pngwutil)
PngSharedObj(pngread)
PngSharedObj(pngio)
PngSharedObj(pngwrite)
PngSharedObj(pngrtran)
PngSharedObj(pngwtran)
PngSharedObj(pngmem)
PngSharedObj(pngerror)
PngSharedObj(pngpread)


/* compile widgets sources */
#define WidgetsObj(file) MakeObjectRule(file,$(WIDGETS)/file,NullParameter)

WidgetsObj(about)
WidgetsObj(adjvalue)
WidgetsObj(bubblewindow)
WidgetsObj(coldlg)
WidgetsObj(colorviewer)
WidgetsObj(colselect)
WidgetsObj(cursors)
WidgetsObj(dateeditor)
WidgetsObj(editlabel)
WidgetsObj(fbrowser)
WidgetsObj(fchooser)
WidgetsObj(field)
WidgetsObj(fieldb)
WidgetsObj(fslider)
WidgetsObj(gifimage)
WidgetsObj(glyphutil)
WidgetsObj(hgrastercb)
WidgetsObj(hgraster)
WidgetsObj(hlsutil)
WidgetsObj(jpegimage)
WidgetsObj(kbdhandler)
WidgetsObj(labels)
WidgetsObj(libwidgets)
WidgetsObj(lineeditor)
WidgetsObj(listbox)
WidgetsObj(madjust)
WidgetsObj(menus)
WidgetsObj(mscrollbar)
WidgetsObj(msgbox)
WidgetsObj(msgdlg)
WidgetsObj(mslider)
WidgetsObj(mthumb)
WidgetsObj(nonmodaldlg)
WidgetsObj(numbereditor)
WidgetsObj(ocolor)
WidgetsObj(pngimage)
WidgetsObj(priority)
WidgetsObj(progress)
WidgetsObj(progrind)
WidgetsObj(rimage)
WidgetsObj(sscrbox)
WidgetsObj(table)
WidgetsObj(text)
WidgetsObj(textb)
WidgetsObj(textbuffer)
WidgetsObj(tiffimage)
WidgetsObj(wtranslate)
WidgetsObj(xpmraster)

/* compile widgets sources */
#define WidgetsSharedObj(file) MakeSharedObjectRule(file,$(WIDGETS)/file,NullParameter)

WidgetsSharedObj(about)
WidgetsSharedObj(adjvalue)
WidgetsSharedObj(bubblewindow)
WidgetsSharedObj(coldlg)
WidgetsSharedObj(colorviewer)
WidgetsSharedObj(colselect)
WidgetsSharedObj(cursors)
WidgetsSharedObj(dateeditor)
WidgetsSharedObj(editlabel)
WidgetsSharedObj(fbrowser)
WidgetsSharedObj(fchooser)
WidgetsSharedObj(field)
WidgetsSharedObj(fieldb)
WidgetsSharedObj(fslider)
WidgetsSharedObj(gifimage)
WidgetsSharedObj(glyphutil)
WidgetsSharedObj(hgrastercb)
WidgetsSharedObj(hgraster)
WidgetsSharedObj(hlsutil)
WidgetsSharedObj(jpegimage)
WidgetsSharedObj(kbdhandler)
WidgetsSharedObj(labels)
WidgetsSharedObj(libwidgets)
WidgetsSharedObj(lineeditor)
WidgetsSharedObj(listbox)
WidgetsSharedObj(madjust)
WidgetsSharedObj(menus)
WidgetsSharedObj(mscrollbar)
WidgetsSharedObj(msgbox)
WidgetsSharedObj(msgdlg)
WidgetsSharedObj(mslider)
WidgetsSharedObj(mthumb)
WidgetsSharedObj(nonmodaldlg)
WidgetsSharedObj(numbereditor)
WidgetsSharedObj(ocolor)
WidgetsSharedObj(pngimage)
WidgetsSharedObj(priority)
WidgetsSharedObj(progress)
WidgetsSharedObj(progrind)
WidgetsSharedObj(rimage)
WidgetsSharedObj(sscrbox)
WidgetsSharedObj(table)
WidgetsSharedObj(text)
WidgetsSharedObj(textb)
WidgetsSharedObj(textbuffer)
WidgetsSharedObj(tiffimage)
WidgetsSharedObj(wtranslate)
WidgetsSharedObj(xpmraster)


#else

MakeInObjectCodeDir()

#endif
