# RCSid: $Header: /export/sw/rcs/vcom5.0/sbeux/x25utils/lib/Makefile,v 1.0 92/08/20 11:30:01 root Exp $

#-----------------------------------------------------------------------------
# Makefile -
#
# Copyrighted as an unpublished work.
# (c) Copyright 1992 SBE, Inc. and by other vendors under license agreements.
# All Rights Reserved.
#-----------------------------------------------------------------------------
# RCS info:
# RCS revision: $Revision: 1.0 $
# Last changed on $Date: 92/08/20 11:30:01 $
# Changed by $Author: root $
#-----------------------------------------------------------------------------
# $Log:	Makefile,v $
# Revision 1.0  92/08/20  11:30:01  root
# Initial revision
# 
#-----------------------------------------------------------------------------
#

LOCALINC = ../../include
INCLUDE  = -I. -I$(LOCALINC)
CFLAGS   = -O $(INCLUDE) $(DPARMS) $(DEBUG)

LIBNAME  = libsx25.a
DEST     = /usr/lib

OBJ=	\
	$(LIBNAME)(sbeRelease.o) \
	$(LIBNAME)(xn_ntoa.o) \
	$(LIBNAME)(xn_addr.o) \
	$(LIBNAME)(cmpx25.o) \
	$(LIBNAME)(lparse.o) \
	$(LIBNAME)(xn_lnaof.o) \
	$(LIBNAME)(xghnamad.o) \
	$(LIBNAME)(xghent.o) \
	$(LIBNAME)(xgsent.o) \
	$(LIBNAME)(xgsbname.o) \
	$(LIBNAME)(xgpname.o) \
	$(LIBNAME)(xgpent.o) \
	$(LIBNAME)(xptos.o) \
	$(LIBNAME)(xn_lnaof.o) \
	$(LIBNAME)(lparse.o)


all: $(LIBNAME)

$(LIBNAME): $(OBJ)
	ar ruv $@

.PRECIOUS: $(LIBNAME)

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

ccittxpad: xxxpad.o libsx25.a
	cc -o ccittxpad xxxpad.o libsx25.a

$(OBJ): $(FRC)

FRC $(FRC):

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

install:
	cp $(LIBNAME) $(DEST)

clean:
	rm -f *.o

clobber: clean
	rm -f $(LIBNAME) *.o

