summaryrefslogtreecommitdiffstats
path: root/ax25ipd/Makefile.am
blob: 39ef22f04866e5e4b8891d972a2f409b99462f00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

sbin_PROGRAMS = ax25ipd

man_MANS = ax25ipd.8 ax25ipd.conf.5

EXTRA_DIST = $(man_MANS) $(etcfiles) $(doc_DATA)

docdir = ${datadir}/doc/ax25-apps
doc_DATA = README.ax25ipd HISTORY.ax25ipd COPYING.ax25ipd

AM_CFLAGS = -DUSE_TERMIO
ax25ipd_LDADD = $(AX25_LIB)

ax25ipd_SOURCES =	\
	config.c	\
	crc.c		\
	io.c		\
	kiss.c		\
	ax25ipd.c	\
	ax25ipd.h	\
	process.c	\
	routing.c	\
	bpqether.c

# Needed so that install is optional
etcfiles = ax25ipd.conf
installconf:
	$(mkinstalldirs) $(DESTDIR)$(AX25_SYSCONFDIR)
	@list='$(etcfiles)'; for p in $$list; do \
	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(AX25_SYSCONFDIR)/$$p"; \
	  $(INSTALL_DATA) $$p $(DESTDIR)$(AX25_SYSCONFDIR)/$$p; \
	done

AX25_SYSCONFDIR=$(sysconfdir)/ax25
AX25_LOCALSTATEDIR=$(localstatedir)/ax25

INCLUDES = -DAX25_SYSCONFDIR=\""$(AX25_SYSCONFDIR)"\" \
	   -DAX25_LOCALSTATEDIR=\""$(AX25_LOCALSTATEDIR)"\"