1# Generated automatically from Makefile.in by configure. 2#*********************************************************************** 3# 4# Makefile 5# 6# Makefile for Roaring Penguin's Linux PPPoE plugin. 7# Modified for integration with pppd sources by Paul Mackerras. 8# 9# Copyright (C) 2001 Roaring Penguin Software Inc. 10# 11# This program may be distributed according to the terms of the GNU 12# General Public License, version 2 or (at your option) any later version. 13# 14# $Id$ 15#*********************************************************************** 16 17DESTDIR = $(INSTROOT)@DESTDIR@ 18BINDIR = $(DESTDIR)/sbin 19LIBDIR = $(DESTDIR)/lib/pppd/$(PPPDVERSION) 20 21PPPDVERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../../patchlevel.h) 22 23INSTALL = install 24 25# Version is set ONLY IN THE MAKEFILE! Don't delete this! 26RP_VERSION=3.11p 27 28COPTS=-O2 -g 29CFLAGS=$(COPTS) -I../../../include '-DRP_VERSION="$(RP_VERSION)"' $(EXTRACFLAGS) -DPLUGIN=1 30all: rp-pppoe.so 31 32rp-pppoe.so: plugin.o libplugin.a 33 $(LD) -o $@ -shared $^ $(LDFLAGS) 34 35install: all 36 $(INSTALL) -d -m 755 $(LIBDIR) 37 $(INSTALL) -s -c -m 755 rp-pppoe.so $(LIBDIR) 38 39clean: 40 rm -f *.o *.so *.a 41 42plugin.o: plugin.c 43 $(CC) $(CFLAGS) -I../../.. -c -o $@ -fPIC $< 44 45libplugin.a: discovery.o if.o common.o debug.o 46 $(AR) -rc $@ $^ 47 48discovery.o: discovery.c 49 $(CC) $(CFLAGS) -I../../.. -c -o $@ -fPIC $< 50 51%.o: %.c 52 $(CC) $(CFLAGS) -c -o $@ -fPIC $^ 53