# *************************************************************
#	m2c	- mice 2 C translator
# *************************************************************
#***********************************
# (C) Copyright 1992-1993; dit/upm
#  Distributed under the conditions stated in the
#  TOPO General Public License (see file LICENSE)
#***********************************
# $Id: makefile,v 2.8 1994/11/03 17:55:10 lotos Exp $

TOOL=	m2c

INCDIRS= -I$(EPSINC) -I$(TOPOINC)
LIBDIRS= -L$(EPSLIB) -L$(TOPOLIB)
CFLAGS=	$(CF_DBX) $(INCDIRS)

SRCS=	mainf.c negot.c make.c frame.c tree.c board.c offers.c

OBJS=	mainf.o negot.o make.o frame.o tree.o board.o offers.o

HS=	lotos.hh swbus.h

local:	libotos.a

install::	lotos.hh
	cp lotos.hh $(TOPOINC)
	chmod 644 $(TOPOINC)/lotos.hh

install::	libotos.a
	cp libotos.a $(TOPOLIB)
	-cd $(TOPOLIB); ranlib libotos.a
	chmod 644 $(TOPOLIB)/libotos.a

install::
	touch install

libotos.a:	$(OBJS)
	ar rcv libotos.a $(OBJS)
	-ranlib libotos.a

$(OBJS):	$(HS)

clean::
	-rm -f libotos.a $(OBJS)
	-rm -f *~ core

#------------------------------------------------------------------
