/**/# @(#)Imakefile	1.16 04 Jun 1995

/**/# Set this to the manual section where you want to install workmandb.man
DBMANSECTION = 5

/**/#
/**/# Uncomment the following if you want fast database lookups using the
/**/# Berkeley libdb code.  You can find libdb on ftp.cs.berkeley.edu in the
/**/# /ucb/4bsd directory.  Make sure you adjust the last part of DBCFLAGS
/**/# to match your system type as listed in libdb's PORT directory.
/**/#

/**/#DBCFLAGS = -DLIBDB -Idb.1.85/PORT/include -Idb.1.85/PORT/sunos.5.2
/**/#DBLIB = db.1.85/PORT/sunos.5.2/libdb.a

/**/# And you shouldn't need to touch anything below this.


#include <XView.tmpl>
#include "WorkMan.tmpl"

#define HasInfoFiles YES

DEFINES = $(LOCALDEFS)
DEPLIBS = XViewClientDepLibs

#ifdef SonyArchitecture
LOCAL_LIBRARIES = XViewClientLibs $(DBLIB) -lCD
#else
#if defined(__bsdi__) || defined(i386Bsdi)
/* LOCALDEFS=-DSOUNDBLASTER */ /* turns on some different volume code */
LOCAL_LIBRARIES = XViewClientLibs $(DBLIB) -lcdrom -lrpc -lcompat
CFLAGS += -fwritable-strings
#else
LOCAL_LIBRARIES = XViewClientLibs $(DBLIB)
#endif
#endif

INFOFILES = workman.info

SRCS = cdinfo.c database.c display.c setup.c ui_cdinfo.c plat_sun.c cdrom.c \
	plat_hpux.c plat_ultrix.c plat_linux.c plat_news.c plat_bsd386.c \
	plat_freebsd.c plat_osf1.c index.c \
	workman_stubs.c scsi.c drv_toshiba.c drv_sony.c plat_svr4.c

OBJS = cdinfo.o database.o display.o setup.o ui_cdinfo.o plat_sun.o cdrom.o \
	plat_hpux.o plat_ultrix.o plat_linux.o plat_news.o plat_bsd386.o \
	plat_freebsd.o plat_osf1.o index.o \
	workman_stubs.o scsi.o drv_toshiba.o drv_sony.o plat_svr4.o

ComplexProgramTarget(workman)

InstallSpecialManPage(workmandb,$(DBMANSECTION))

#ifdef UltrixArchitecture
SpecialObjectRule(database.o,database.c,-Olimit 600);
#endif

SpecialObjectRule(index.o,index.c,$(DBCFLAGS));

#include <XView.prog>

