############################################################
#	Makefile for PPPupd				   #
#		Jake Bouvrie <swarthy@thetasys.com>	   #
#		Fri Jan 26 04:07:28 EST 1996		   #
############################################################

CC=gcc
CCFLAGS= -Wall -O -m486 -pipe -fomit-frame-pointer
CCDEBUGFLAGS= -Wall -m486 -ggdb -pipe 

CONFIGFILE=/etc/pppupd.cf

DEFS= -DCONFIG_PATH=\"$(CONFIGFILE)\"

#Enable the other one,if you want debug messages and reporting
#DEFS= -DCONFIG_PATH=\"$(CONFIGFILE)\" -D_REPORT_ -D_DEBUG_

CFILES=pppupd.c parse.c pppsubs.c misc.c
TARGET=pppupd

all:
	$(CC) $(DEFS) \
	$(CCFLAGS) \
	$(CFILES) -o $(TARGET)

debug:
	$(CC) $(CCDEBUGFLAGS) $(DEFS) $(CFILES) -o $(TARGET)

clean:
	rm -rf *~ *.o pppupd
