#
# SCCS_ID - "@(#)Makefile (TWG)      1.2      13:59:03 - 89/06/29"
#
# @(#) Copyright 1989. The Wollongong Group, Inc.  All Rights Reserved.
#
SOURCES = slipd.c
OBJECTS	= slipd.o
BINARY	= slipd
CONFIG	= slip.cf.0

BINDIST	= ../../../bindist
SRCDIST	= ../../../srcdist
INSTALL	=

MCS	= mcs -c
OPTS	= -O
DEFINES	=
INCLUDE	=
LDFLAGS	= -s
LIBS	=

include ../../../make.pre

DEFS	= ${DEFINES}
CFLAGS	=  $(INCLUDE) $(OPTS) $(DEFS)

$(BINARY) : ${OBJECTS}
	${CC} $(LDFLAGS) -o $(BINARY) ${OBJECTS} $(LIBS)
	${MCS} $(BINARY)

lint:
	lint $(CFLAGS) $(SOURCES)

bindist: $(BINARY)
	cpset $(BINARY) $(BINDIST)/user/usr/etc/$(BINARY) 700 bin bin
	cpset $(CONFIG) $(BINDIST)/user/usr/etc/$(CONFIG) 444 bin bin

install	: $(BINARY)
	cpset $(BINARY) $(INSTALL)/usr/etc/$(BINARY) 700 bin bin
	cpset $(CONFIG) $(INSTALL)/usr/etc/$(CONFIG) 444 bin bin

srcdist: $(SOURCES)
	cp $(SOURCES) $(CONFIG) Makefile $(SRCDIST)/user/usr/etc/$(BINARY)

clean:
	rm -f *.o core a.out errs

clobber: clean
	rm -f  $(BINARY)

