]> git.ozlabs.org Git - ppp.git/blob - pppd/plugins/pppoe/Makefile.am
Use autoconf/automake to configure and make ppp
[ppp.git] / pppd / plugins / pppoe / Makefile.am
1 pppd_plugin_LTLIBRARIES = pppoe.la 
2 pppd_plugindir = $(PPPD_PLUGIN_DIR)
3 sbin_PROGRAMS = pppoe-discovery
4 man8_MANS = pppoe-discovery.8
5
6 noinst_HEADERS = \
7     pppoe.h
8
9 pppoe_la_CFLAGS = -I${top_srcdir} -I${top_srcdir}/include
10 pppoe_la_LDFLAGS = -module -avoid-version
11 pppoe_la_SOURCES = plugin.c discovery.c if.c common.c
12
13 pppoe_discovery_CFLAGS = -I${top_srcdir} -I${top_srcdir}/include
14 pppoe_discovery_SOURCES = pppoe-discovery.c debug.c
15
16 EXTRA_DIST = \
17     $(man8_MANS)
18
19 install-exec-hook:
20         (mkdir -p $(DESTDIR)/$(pppd_plugindir); \
21         cd $(DESTDIR)$(pppd_plugindir); \
22         $(LN_S) -f pppoe.so rp-pppoe.so)
23
24 uninstall-hook:
25         (cd $(DESTDIR)$(pppd_plugindir); rm -f rp-pppoe.so)