]> git.ozlabs.org Git - ppp.git/blob - pppd/plugins/rp-pppoe/Makefile.linux
078f1584c1e9ec4f5d32b0fb01c12611ca56fea2
[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.1 2001/12/14 02:55:20 mostrows Exp $
14 #***********************************************************************
15
16 # Version is set ONLY IN THE MAKEFILE!  Don't delete this!
17 VERSION=3.3
18
19 CFLAGS+=-I../../../include/linux
20 all: rp-pppoe.so
21
22 rp-pppoe.so: libplugin.a plugin.o
23         gcc -o rp-pppoe.so -shared plugin.o libplugin.a
24
25 install: all
26         $(INSTALL) -d -m 755 $(LIBDIR)
27         $(INSTALL) -s -c -m 4550 rp-pppoe.so $(LIBDIR)
28
29 clean:
30         rm -f *.o *.so
31
32 plugin.o: plugin.c
33         gcc '-DRP_VERSION="$(VERSION)"' $(CFLAGS) -I../../..  -c -o plugin.o -fPIC plugin.c
34
35 libplugin.a: discovery.o if.o common.o debug.o
36         ar -rc $@ $^
37
38 discovery.o: discovery.c
39         gcc $(CFLAGS) '-DVERSION="$(VERSION)"' -c -o discovery.o -fPIC discovery.c
40
41 if.o: if.c
42         gcc $(CFLAGS) '-DVERSION="$(VERSION)"' -c -o if.o -fPIC if.c
43
44 debug.o: debug.c
45         gcc $(CFLAGS) '-DVERSION="$(VERSION)"' -c -o debug.o -fPIC debug.c
46
47 common.o: common.c
48         gcc $(CFLAGS) '-DVERSION="$(VERSION)"' -c -o common.o -fPIC common.c
49