#
#  Makefile for the in.reved reve network daemon.
#
#  @(#)Makefile 1.3 94/01/27
#
#  Copyright (C) 1990 - 1993 - Rich Burridge & Yves Gallot.
#  All rights reserved.
#
#  Permission is granted to copy this source, for redistribution
#  in source form only, provided the news headers in "substantially
#  unaltered format" are retained, the introductory messages are not
#  removed, and no monies are exchanged.
#
#  Permission is also granted to copy this source, without the
#  news headers, for the purposes of making an executable copy by
#  means of compilation, provided that such copy will not be used
#  for the purposes of competition in any othello tournaments, without
#  prior permission from the authors.
#
#  No responsibility is taken for any errors inherent either
#  to the comments or the code of this program, but if reported
#  (see README file), then an attempt will be made to fix them.
#
#=====================================================================
#  In order to get in.reved to link successfully on your system, you might
#  need to define extra libraries to link against. If this is the case,
#  then the following entry should be uncommented and set appropriately.
#
#  For Solaris 2.x, this option needed to be set to:
#  motif:         EXTRALIBS = -lsocket -lnsl -lgen
#  tty:           EXTRALIBS = -ltermcap
#  x11 (xlib):    EXTRALIBS = -lsocket -lnsl -lgen
#
#EXTRALIBS       = -lsocket -lnsl -lgen
#---------------------------------------------------------------------------
#  If you don't want to compile in the networking code to allow reve to be
#  able to handle -opponent user@host, then uncomment the following
#  definition.
#
#NO_NETWORK      = -DNO_NETWORK
#-----------------------------------------------------------------------
#  If you are building reve on an SVR4 machine, then you should also
#  uncomment this definition.
#
#  If you are running on a 80286 machine, Microport's 5.2 port of SYSV,
#  SVAT, or Xenix286, then you will need to uncomment this definition.
#  This ought to work under 5.3 as well.
#
#SVR4  = -DSVR4
#===========================================================================
#  Compilation flags and standard macro definitions.
#
CDEFS    = $(NO_NETWORK) $(SVR4) -I../common
CCOMP    = -O

CC       = gcc

CFLAGS   = $(CCOMP) $(CDEFS)
CCFLAGS  = $(CCOMP) $(CDEFS)
#=================================================================
 
.KEEP_STATE:

REVEDSRCS = in.reved.c
REVEDOBJS = in.reved.o

in_reved: $(REVEDOBJS)
	$(CC) -o in.reved $(CFLAGS) $(REVEDOBJS) $(EXTRALIBS)

clean:
	rm -f *.o  *~ in.reved core

lint:
	lint $(CDEFS) $(REVEDSRCS)

saber:  $(REVEDSRCS)
	#load $(CDEFS) $(REVEDSRCS)

create: SCCS
	-sccs create $(REVEDSRCS) Makefile

SCCS:
	mkdir SCCS
	chmod 755 SCCS

in.reved.o: in.reved.c ../common/ctl.h ../common/reve.h
