| 1 |
SUBDIRS = axgetput |
| 2 |
|
| 3 |
etcfiles = ax25.profile ax25d.conf axspawn.conf rxecho.conf |
| 4 |
etcsrcfiles = ax25.profile ax25d.conf.in axspawn.conf rxecho.conf |
| 5 |
noinst_DATA = $(etcfiles) |
| 6 |
varfiles = mheard.dat |
| 7 |
|
| 8 |
subst_path = sed -e 's|[@]SBINDIR[@]|$(sbindir)|' \ |
| 9 |
-e 's|[@]SYSCONFDIR[@]|$(sysconfdir)|' |
| 10 |
|
| 11 |
ax25d.conf: ax25d.conf.in |
| 12 |
$(subst_path) < $(srcdir)/ax25d.conf.in > ax25d.conf.tmp |
| 13 |
mv ax25d.conf.tmp ax25d.conf |
| 14 |
|
| 15 |
installconf: |
| 16 |
$(mkinstalldirs) $(DESTDIR)$(AX25_SYSCONFDIR) |
| 17 |
@list='$(etcfiles)'; for p in $$list; do \ |
| 18 |
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(AX25_SYSCONFDIR)/$$p"; \ |
| 19 |
$(INSTALL_DATA) $$p $(DESTDIR)$(AX25_SYSCONFDIR)/$$p; \ |
| 20 |
done |
| 21 |
$(mkinstalldirs) $(DESTDIR)$(AX25_LOCALSTATEDIR)/mheard |
| 22 |
@list='$(varfiles)'; for p in $$list; do \ |
| 23 |
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(AX25_LOCALSTATEDIR)/mheard/$$p"; \ |
| 24 |
$(INSTALL_DATA) $$p $(DESTDIR)$(AX25_LOCALSTATEDIR)/mheard/$$p; \ |
| 25 |
done |
| 26 |
|
| 27 |
|
| 28 |
sbin_PROGRAMS = ax25d axctl axparms axspawn axwrapper beacon bpqparms mheardd \ |
| 29 |
rxecho |
| 30 |
|
| 31 |
bin_PROGRAMS = mheard |
| 32 |
|
| 33 |
LDADD = $(AX25_LIB) |
| 34 |
axspawn_LDADD = $(AX25_LIB) $(UTIL_LIB) |
| 35 |
|
| 36 |
AM_CPPFLAGS = -D_GNU_SOURCE \ |
| 37 |
-DAX25_SYSCONFDIR=\""$(AX25_SYSCONFDIR)"\" \ |
| 38 |
-DAX25_LOCALSTATEDIR=\""$(AX25_LOCALSTATEDIR)"\" |
| 39 |
|
| 40 |
AX25_SYSCONFDIR=$(sysconfdir)/ax25/ |
| 41 |
AX25_LOCALSTATEDIR=$(localstatedir)/ax25/ |
| 42 |
|
| 43 |
dist_man_MANS = ax25.4 ax25d.conf.5 axspawn.conf.5 rxecho.conf.5 \ |
| 44 |
ax25d.8 axctl.8 axparms.8 axspawn.8 axwrapper.8 beacon.8 \ |
| 45 |
bpqparms.8 mheard.1 mheardd.8 rxecho.8 |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
CLEANFILES = ax25d.conf |
| 50 |
EXTRA_DIST = $(etcsrcfiles) $(varfiles) |
| 51 |
|
| 52 |
ax25d_SOURCES = ax25d.c |
| 53 |
axctl_SOURCES = axctl.c |
| 54 |
axparms_SOURCES = axparms.c |
| 55 |
axspawn_SOURCES = axspawn.c axspawn.h access.c access.h md5.c md5.h |
| 56 |
axwrapper_SOURCES = axwrapper.c |
| 57 |
beacon_SOURCES = beacon.c |
| 58 |
bpqparms_SOURCES = bpqparms.c |
| 59 |
mheard_SOURCES = mheard.c |
| 60 |
mheardd_SOURCES = mheardd.c |
| 61 |
rxecho_SOURCES = rxecho.c |