2010-08-18 21:49:24 +08:00
|
|
|
PEDANTIC = -ansi -pedantic -std=c99
|
|
|
|
|
|
|
|
INSTALL = install
|
|
|
|
INSTALL_DATA = install -m 644
|
|
|
|
|
|
|
|
#
|
|
|
|
# Ugly hack to find kernel directories before/after the split
|
|
|
|
# to kernel/user-space.
|
|
|
|
#
|
|
|
|
# These variables should be passed to us. But until then...
|
|
|
|
#
|
|
|
|
DAHDI_TOOLSDIR ?= ..
|
|
|
|
DAHDI_KERNELDIR =
|
|
|
|
|
|
|
|
-include $(DAHDI_TOOLSDIR)/makeopts
|
|
|
|
|
|
|
|
INSTALL_DATA = $(INSTALL) -m 644
|
|
|
|
|
|
|
|
# In 1.4 those are provided by autoconf through makeopts
|
|
|
|
prefix ?= /usr
|
|
|
|
datadir ?= $(prefix)/share
|
2013-10-16 02:00:17 +08:00
|
|
|
sysconfdir ?= $(prefix)/etc
|
2010-08-18 21:49:24 +08:00
|
|
|
INSTALL ?= install
|
|
|
|
|
|
|
|
INSTALL_DATA = $(INSTALL) -m 644
|
|
|
|
|
|
|
|
DATADIR = $(datadir)/dahdi
|
|
|
|
|
|
|
|
# Variables that should be defined above, but need sane defaults:
|
|
|
|
# FIXME: Are those values really sane?
|
|
|
|
HOSTCC ?= $(CC)
|
|
|
|
|
2015-05-18 23:25:03 +08:00
|
|
|
all:
|
2010-08-18 21:49:24 +08:00
|
|
|
|
|
|
|
install: all
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(DATADIR)
|
|
|
|
$(INSTALL) xpp_fxloader astribank_hook $(DESTDIR)$(DATADIR)/
|
|
|
|
$(INSTALL) waitfor_xpds $(DESTDIR)$(DATADIR)/
|
|
|
|
|
|
|
|
clean:
|