#
# 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.
#

CC	= cc -O6 -Wall
LD	= cc

CFLAGS	= -DLINUX
LDFLAGS	= -N -s

LIBS	=


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


.c.o:		dip.h $<
		$(CC) $(CFLAGS) -c $<


all:		dip

install:	all
		@sh ./Install.sh

firsttime:	all
		@sh ./Install.sh --firsttime

update:		all
		@sh ./Install.sh --nobackup

dist:
		@tar cfvz ../dip-$(VERSION).tar.gz *

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

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

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

clobber:	clean
		rm -f dip

dummy:

# End of Makefile.
