# $Header: /afs/sipb.mit.edu/project/xlogin/src/RCS/Imakefile,v 1.3 93/02/04 01:12:07 ckclark Exp $
#
# CC can be overridden from driver makefile.  Note the -g flag
# is on the CC macro, not the CFLAGS and LDFLAGS macros, so the
# driver makefile can force optimization instead of debugging.
#
#       CC = gcc -g -DFUNCTION_PROTOTYPES -ansi

CC = gcc
LD = gcc
AFSDIR = /afs/athena.mit.edu/astaff/project/afsdev/bld/dest/lib
AFSLIBS = $(AFSDIR)/afs/libsys.a
WCLLIB = /afs/athena.mit.edu/system/motif/`machtype`lib/libWc.a
DEFINES = -I.

LINTFLAGS = $(CFLAGS) -b -h -u -v -z

  SRCS = xlogin.c AriRegAll.c verify.c sipb_hacks.c SmeBSB.c StringToPixel.c
  OBJS = xlogin.o AriRegAll.o verify.o sipb_hacks.o SmeBSB.o StringToPixel.o
#if defined(_AIX) && (AIXV >= 30)
  LIBS = -lXaw -lm $(WCLLIB) -lXmu -lXt -lXext -lX11 -lkrb -ldes -lhesiod \
	 -lodm -lcfg -ls $(AFSLIBS)
#else
  LIBS = -lXaw $(WCLLIB) -lXmu -lXt -lXext -lX11 -lkrb -ldes -lhesiod \
	$(AFSLIBS) -lm
#endif

create_dir(/etc/athena/login)
/* SimpleProgram(timeout,timeout.o,,$(ATHBINDIR)) */
SimpleProgram(xlogin,$(OBJS),$(LIBS),/etc/athena/xlogin)

install_file(check,/etc/athena/login/check)
install_file(question,/etc/athena/login/question)
install_file(warning,/etc/athena/login/warning)
install_file(white,/etc/athena/login/white)
install_file(owl,/etc/athena/login/owl)
install_file(owleyes0.xbm,/etc/athena/login/owleyes0.xbm)
install_file(owleyes1.xbm,/etc/athena/login/owleyes1.xbm)
install_file(owleyes2.xbm,/etc/athena/login/owleyes2.xbm)
install_file(owleyes3.xbm,/etc/athena/login/owleyes3.xbm)
install_file(owleyes4.xbm,/etc/athena/login/owleyes4.xbm)
install_file(owleyes5.xbm,/etc/athena/login/owleyes5.xbm)
install_file(is,/etc/athena/login/is)
install_file(is0.xbm,/etc/athena/login/is0.xbm)
install_file(is1.xbm,/etc/athena/login/is1.xbm)
install_file(is2.xbm,/etc/athena/login/is2.xbm)
install_file(is3.xbm,/etc/athena/login/is3.xbm)
install_file(is4.xbm,/etc/athena/login/is4.xbm)
install_file(is5.xbm,/etc/athena/login/is5.xbm)
#if defined(_AIX) && defined(i386)
install_file(Xlogin.ps2,/etc/athena/login/Xlogin)
#else
install_file(Xlogin,/etc/athena/login/Xlogin)
#endif
install_man(timeout.1,timeout.1)
install_man(xlogin.8,xlogin.8)

lint:
	$(LINT) $(LINTFLAGS) $(SRCS)

