#
# dip		Dialup IP connection support program.
#		Makefile for LINUX.
#
# Version:	@(#)Makefile.LINUX	1.20	12/13/93
#
# Author:	Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
#		Copyright 1988-1993 MicroWalt Corporation
#
#		This program is free software; you can redistribute it
#		and/or  modify it under  the terms of  the GNU General
#		Public  License as  published  by  the  Free  Software
#		Foundation;  either  version 2 of the License, or  (at
#		your option) any later version.
#

CFLAGS	= -DLINUX ${O}
LDFLAGS	= -N

LDLIBS	= protocols.a

VERSION	= 3.3.7

# Object modules.
OBJS	= main.o config.o daemon.o tty.o attach.o \
	  term.o modem.o command.o login.o 

PROTOS	= slip.o ppp.o

all:		dip

dip:		protocols.a $(OBJS)
		$(CC) $(OBJS) protocols.a -o dip

protocols.a:	$(PROTOS)
		ar rcs protocols.a $(PROTOS)

install:	all
		install -s -m6754 -o root -g uucp dip /usr/sbin/
		(cd /usr/sbin; ln -sf dip diplogin)
		install -m644 man/dip.8 /usr/man/man8/
		(cd /usr/man/man8; ln -sf dip.8 diplogin.8)
		if [ ! -f ~root/sample.dip ]; then \
		install -m600 samples/conf/net/dip/sample.dip ~root/sample.dip; fi
		if [ ! -f /etc/diphosts ]; then \
		install -m644 samples/conf/net/diphosts /etc; fi

clean:
		rm -f core *.o *.a dip

# End of Makefile.
