1 # Generated automatically from Makefile.in by configure.
2 #***********************************************************************
6 # Makefile for Roaring Penguin's Linux PPPoE plugin.
7 # Modified for integration with pppd sources by Paul Mackerras.
9 # Copyright (C) 2001 Roaring Penguin Software Inc.
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.
14 # $Id: Makefile.linux,v 1.8 2008/06/09 08:34:23 paulus Exp $
15 #***********************************************************************
17 DESTDIR = $(INSTROOT)@DESTDIR@
18 BINDIR = $(DESTDIR)/sbin
19 LIBDIR = $(DESTDIR)/lib/pppd/$(PPPDVERSION)
21 PPPDVERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' ../../patchlevel.h)
25 # Version is set ONLY IN THE MAKEFILE! Don't delete this!
29 CFLAGS=$(COPTS) -I../../../include '-DRP_VERSION="$(RP_VERSION)"'
30 all: rp-pppoe.so pppoe-discovery
32 pppoe-discovery: pppoe-discovery.o debug.o
33 $(CC) $(LDFLAGS) -o pppoe-discovery pppoe-discovery.o debug.o
35 pppoe-discovery.o: pppoe-discovery.c
36 $(CC) $(CFLAGS) -I../../.. -c -o pppoe-discovery.o pppoe-discovery.c
39 $(CC) $(CFLAGS) -I../../.. -c -o debug.o debug.c
41 rp-pppoe.so: plugin.o discovery.o if.o common.o
42 $(CC) $(LDFLAGS) -o rp-pppoe.so -shared plugin.o discovery.o if.o common.o
45 $(INSTALL) -d -m 755 $(LIBDIR)
46 $(INSTALL) -s -c -m 4550 rp-pppoe.so $(LIBDIR)
47 $(INSTALL) -d -m 755 $(BINDIR)
48 $(INSTALL) -s -c -m 555 pppoe-discovery $(BINDIR)
51 rm -f *.o *.so pppoe-discovery
54 $(CC) $(CFLAGS) -I../../.. -c -o plugin.o -fPIC plugin.c
56 discovery.o: discovery.c
57 $(CC) $(CFLAGS) -I../../.. -c -o discovery.o -fPIC discovery.c
60 $(CC) $(CFLAGS) -I../../.. -c -o if.o -fPIC if.c
63 $(CC) $(CFLAGS) -I../../.. -c -o common.o -fPIC common.c