rendered paste body#
# This program is free software, distributed under the terms of
# the GNU General Public License
ifeq ($(PBX_ZAPTEL),1)
TOOLS:=zapscan.bin
endif
all: $(TOOLS)
zapscan.bin: zapscan.o
$(CC) -o $@ $^
zapscan.o: CFLAGS+=$(ZAPTEL_INCLUDE) $(ASTCFLAGS)
install:
ifeq ($(PBX_ZAPTEL),1)
mkdir -p $(ASTSBINDIR)
$(INSTALL) -m 755 zapscan.bin $(ASTSBINDIR)
$(INSTALL) -m 755 zapscan.bin /sbin
$(INSTALL) -m 755 zapscan $(ASTSBINDIR)
$(INSTALL) -m 755 zapscan /sbin
endif
r.Replace('.*\/sbin$','','tools/Makefile')