# RCSid: $Header: /rcs/vcom/sbeux/x25utils/x25stat/Makefile,v 2.0 91/05/15 16:11:18 rld Rel $

#-----------------------------------------------------------------------------
# Makefile -
#
# Copyrighted as an unpublished work.
# (c) Copyright 1991 SBE, Inc. and by other vendors under license agreements.
# All rights reserved.
#-----------------------------------------------------------------------------
# RCS info:
# RCS revision: $Revision: 2.0 $
# Last changed on $Date: 91/05/15 16:11:18 $
# Changed by $Author: rld $
#-----------------------------------------------------------------------------
# $Log:	Makefile,v $
# Revision 2.0  91/05/15  16:11:18  rld
# Chmod for userID of x25stat.
# 
# Revision 1.2  91/02/14  16:23:25  root
# Remove extra '-c' option from CFLAGS.
# 
# Revision 1.1  91/02/13  18:41:06  root
# Add correct LDFLAG usage for -s option.
# 
# Revision 1.0  91/01/21  12:11:05  root
# Initial revision
# 
#-----------------------------------------------------------------------------
#

LOCALINC = ../../include
INC      = -I. -I$(LOCALINC)
CFLAGS   = -O $(INC) $(DPARMS) -DDEBUG
LDFLAGS  = -s

CC = cc
DEST = /etc

OBJ = x25stat.o lparse.o upper.o sbeRelease.o
TARGET = x25stat

all: x25stat

install:
	cp $(TARGET) $(DEST)
	chmod 4755 $(DEST)/$(TARGET)

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

x25stat: $(OBJ) 
	$(CC) $(LDFLAGS) $(OBJ) -o $@

$(OBJ): $(FRC)

FRC $(FRC):

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

clean:
	rm -f *.o

clobber:
	rm -f $(TARGET) *.o

