# Generated automatically from Makefile.in by configure.
#***********************************************************************
#
# Makefile
#
# Makefile for Roaring Penguin's Linux PPPoE plugin.
#
# Copyright (C) 2001 Roaring Penguin Software Inc.
#
# This program may be distributed according to the terms of the GNU
# General Public License, version 2 or (at your option) any later version.
#
# $Id: Makefile,v 1.1.1.1 2007/07/09 01:37:48 pengqinghua Exp $
#***********************************************************************

include $(APPS_DIR)/apps.mk

CFLAGS+=-I../../../include/linux

SOURCES = pptp.c pptp_callmgr.c pptp_ctrl.c util.c vector.c \
	dirutil.c pptp_quirks.c orckit_quirks.c

OBJS = pptp.o pptp_callmgr.o pptp_ctrl.o util.o vector.o \
	dirutil.o pptp_quirks.o orckit_quirks.o
	
all: pptp.so

pptp.so: $(OBJS)
	$(CC) -o pptp.so -shared $(OBJS)

clean:
	rm -f *.o *.so

pptp.o: pptp.c
	$(CC) $(CFLAGS) -c -o pptp.o -fPIC pptp.c
	
pptp_callmgr.o: pptp_callmgr.c
	$(CC) $(CFLAGS) -c -o pptp_callmgr.o -fPIC pptp_callmgr.c
	
pptp_ctrl.o: pptp_ctrl.c
	$(CC) $(CFLAGS) -c -o pptp_ctrl.o -fPIC pptp_ctrl.c		
	
util.o: util.c
	$(CC) $(CFLAGS) -c -o util.o -fPIC util.c
	
vector.o: vector.c
	$(CC) $(CFLAGS) -c -o vector.o -fPIC vector.c
	
dirutil.o: dirutil.c
	$(CC) $(CFLAGS) -c -o dirutil.o -fPIC dirutil.c
	
pptp_quirks.o: pptp_quirks.c
	$(CC) $(CFLAGS) -c -o pptp_quirks.o -fPIC pptp_quirks.c				
	
orckit_quirks.o: orckit_quirks.c
	$(CC) $(CFLAGS) -c -o orckit_quirks.o -fPIC orckit_quirks.c		