All pastes #450575 Raw Edit

Stuff

public text v1 · immutable
·published 2007-04-20 23:10 UTC
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')