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