#
# dip		Dialup IP connection support program.
#		Makefile for LINUX.
#
# Version:	@(#)Makefile.LINUX	1.30	08/18/94
#
# Author:	Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
#		Copyright 1988-1993 MicroWalt Corporation
#	
# Modified:     Uri Blumenthal, <uri@watson.ibm.com>
#               Copyright 1994 IBM T. J. Watson Research Center
#
#		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	= gcc

LD	= $(CC)


# Object modules.
OBJS	= main.o daemon.o tty.o \
	  modem.o command.o 


BASEDIR = ${DEBDIR}

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


all:		dip
	-@echo "bmdial is built successfully."

install:	all
	install -c -o root -g root -m 0755 -s bmdial ${BASEDIR}/sbin
	-@echo bmdial is successfully installed at ${BASEDIR}/sbin
	-@echo now I am going to install the scripts that go along 
	-@echo with this package.
	./pppconfig

dip:		$(OBJS)
		$(LD) $(LDFLAGS) -o bmdial $(SYSBOBJS) $(OBJS) \
		$(SKEYLIB) $(SECUREIDLIB) $(SNKLIB) $(LIBS) $(SYSEOBJS)


clean:
		rm -f core *.o bmdial

clobber:	clean
		rm -f bmdial 

depend:
	gccmakedep $(DEPFLAGS) -- $(CFLAGS) -- *.c

dummy:

# End of Makefile.
# DO NOT DELETE

