]> git.ozlabs.org Git - ppp.git/blob - pppd/plugins/rp-pppoe/Makefile.linux
Take out the -o root argument to install. It is the default anyway
[ppp.git] / pppd / plugins / rp-pppoe / Makefile.linux
1 # Generated automatically from Makefile.in by configure.
2 #***********************************************************************
3 #
4 # Makefile
5 #
6 # Makefile for Roaring Penguin's Linux PPPoE plugin.
7 #
8 # Copyright (C) 2001 Roaring Penguin Software Inc.
9 #
10 # This program may be distributed according to the terms of the GNU
11 # General Public License, version 2 or (at your option) any later version.
12 #
13 # $Id: Makefile.linux,v 1.4 2004/10/31 22:09:03 paulus Exp $
14 #***********************************************************************
15
16 DESTDIR = @DESTDIR@
17 LIBDIR = $(DESTDIR)/lib/pppd/$(VERSION)
18
19 INSTALL = install
20
21 # Version is set ONLY IN THE MAKEFILE!  Don't delete this!
22 VERSION=3.3
23
24 COPTS=-O2 -g
25 CFLAGS=$(COPTS) -I../../../include/linux
26 all: rp-pppoe.so
27
28 rp-pppoe.so: libplugin.a plugin.o
29         $(CC) -o rp-pppoe.so -shared plugin.o libplugin.a
30
31 install: all
32         $(INSTALL) -d -m 755 $(LIBDIR)
33         $(INSTALL) -s -c -m 4550 rp-pppoe.so $(LIBDIR)
34
35 clean:
36         rm -f *.o *.so
37
38 plugin.o: plugin.c
39         $(CC) '-DRP_VERSION="$(VERSION)"' $(CFLAGS) -I../../..  -c -o plugin.o -fPIC plugin.c
40
41 libplugin.a: discovery.o if.o common.o debug.o
42         $(AR) -rc $@ $^
43
44 discovery.o: discovery.c
45         $(CC) $(CFLAGS) '-DVERSION="$(VERSION)"' -c -o discovery.o -fPIC discovery.c
46
47 if.o: if.c
48         $(CC) $(CFLAGS) '-DVERSION="$(VERSION)"' -c -o if.o -fPIC if.c
49
50 debug.o: debug.c
51         $(CC) $(CFLAGS) '-DVERSION="$(VERSION)"' -c -o debug.o -fPIC debug.c
52
53 common.o: common.c
54         $(CC) $(CFLAGS) '-DVERSION="$(VERSION)"' -c -o common.o -fPIC common.c
55