/* 
 * Imakefile for xtechinfo
 *
 * $Author: brlewis $
 * $Id: Imakefile,v 3.3 93/03/16 17:15:04 brlewis Exp Locker: brlewis $
 *
 * Copyright 1992 by the Massachusetts Institute of Technology.
 * For copying and distribution information, see the file
 * "mit-copyright.h".
 */

SRC=	main.c		global.c	init.c		bldlw.c		\
	regapp.c	viewitem.c	prevmenu.c	text.c		\
	keyword.c	mainmenu.c	menustack.c	viewnth.c	\
	viewsel.c	pathto.c	pathsel.c	otl.c		\
	otlsel.c	emacs.c		MuSetEmacsBindings.c		\
	showinfo.c	kwprep.c	cursor.c	xti.c		\
	com_err.c		prntprep.c	print.c		\
	find.c	gif.c	msgbutns.c	auth.c		sensitiv.c	\
	defprep.c	define.c	modprep.c	modify.c	\
	rmprep.c	remove.c	copy.c		util.c		\
	paste.c		cut.c		deauth.c	sourcepr.c	\
	sourcech.c	selected.c	wwide.c		krbauth.c	\
	help.c		pref.c		search.c	comment.c	\
	newprov.c

OBJ=	main.o		global.o	init.o		bldlw.o		\
	regapp.o	viewitem.o	prevmenu.o	text.o		\
	keyword.o	mainmenu.o	menustack.o	viewnth.o	\
	viewsel.o	pathto.o	pathsel.o	otl.o		\
	otlsel.o	emacs.o		MuSetEmacsBindings.o		\
	showinfo.o	kwprep.o	cursor.o	xti.o		\
	com_err.o		prntprep.o	print.o		\
	find.o	gif.o	msgbutns.o	auth.o		sensitiv.o	\
	defprep.o	define.o	modprep.o	modify.o	\
	rmprep.o	remove.o	copy.o		util.o		\
	paste.o		cut.o		deauth.o	sourcepr.o	\
	sourcech.o	selected.o	wwide.o		krbauth.o	\
	help.o		pref.o		search.o	comment.o	\
	newprov.o

#ifdef sun
/* fix bug in /source/config/site.def */
CFLAGS=$(CDEBUG) LintFlags $(DEFINES) -I/usr/athena/include
#endif
LDPATH=-L../libti -L/mit/wcl/build2.5/`machtype`/Xmp -L/mit/wcl/build2.5/`machtype`/Wc -L/usr/athena/lib LdPath -L/mit/motif/`machtype`lib
LIB=-lXmp -lMu -lXm -lWc -lXt -lX11 -lti -lkrb -ldes -lcom_err -lhesiod
INC=-I../libti/include -I/mit/x11/include -I/mit/wcl/include
DEFINES=${INC} /* -D_NO_PROTO */

AnsiCC()
/**/#CDEBUG=-g

/* XXX comment out the following line before distributing */
/**/#all:: ptypes.h

/**/# global.o and main.o need to know how big GlobalWidgets is.
/**/# comment.o needs to keep up with XTECHINFO_VERSION
global.o main.o comment.o: xtechinfo.h

/**/# mkptypes is in the watchmaker locker
ptypes.h: $(SRC) Imakefile
	$(RM) ptypes.h~
	-mv ptypes.h ptypes.h~
	mkptypes ${SRC} | sed "s/int NOARGS/void/g" > ptypes.h \
	|| ($(RM) ptypes.h; mv ptypes.h~ ptypes.h)

error_table(xti)
SimpleProgram(xtechinfo,${OBJ},${LIB},)

/* Redundancy below because sun cpp would add blank lines. */

#if defined(ultrix) || defined(sun)
xtechinfo_src:
	/**/#suppress 592	/* unused static */
	/**/#suppress 560	/* assignment within conditional */
	/**/#suppress 701	/* function redeclared */
	/**/#load ${DEFINES} -I/usr/athena/include ${SRC}
	/**/#setopt program_name xtechinfo
	/**/#setenv XAPPLRESDIR /mit/techinfodev/src/xtechinfo/app-defaults
#else
xtechinfo_src:
	/**/#suppress 287
	/**/#suppress 349 in /lib/libc.a   /* _ctype_ redefined as text */
	/**/#load ${DEFINES} -I/usr/athena/include ${SRC}
	/**/#setopt program_name xtechinfo
	/**/#setenv XAPPLRESDIR /mit/techinfodev/src/xtechinfo/app-defaults
#endif

saber_lib:
	/**/#load ${DEFINES} ${LDPATH} ${LIB}
