# $Header: /afs/athena.mit.edu/astaff/project/xdm/src/xlogin/RCS/Makefile,v 1.2 90/11/26 10:13:11 mar 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
#
# This hacked version for SIPB won't build "install" or "timeout".

       CC = gcc  -O -g
   CFLAGS = -I. -I/usr/include/X11
LINTFLAGS = $(CFLAGS) -b -h -u -v -z
      WCL = /afs/athena/astaff/project/xdm/@sys/wcl

TARGET = xlogin
  SRCS = xlogin.c AriRegAll.c verify.c checkuser.c TextSrc.c AsciiSrc.c
  OBJS = xlogin.o AriRegAll.o verify.o checkuser.o TextSrc.o AsciiSrc.o
  LIBS = -lXaw -lm $(WCL)/libWc.a -lXmu -lXt -lXext -lX11 -lkrb -ldes -lhesiod

all: xlogin

$(TARGET): $(OBJS)
	$(CC) $(OBJS) $(LIBS) -o $(TARGET)

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

clean:
	rm -f $(OBJS) core xlogin timeout timeout.o

depend: $(SRCS)
	mkdep $(CFLAGS) $(SRCS)

# DO NOT DELETE THIS LINE -- mkdep uses it.
