You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libtcap/Makefile

37 lines
760 B

export LIBNAME=libtcap
export VERSION=1
export LIBSO=$(LIBNAME).so
export LIBSOVER=$(LIBNAME).so.$(VERSION)
LIBDIR=lib
HDR=include/tcap
DESTDIR?=/usr/local
all:
$(MAKE) -C asn1-compiled
$(MAKE) -C src
$(MAKE) -C tests
regenerate-asn1:
rm -f asn1-compiled/*
(cd asn1-compiled && asn1c -fskeletons-copy ../asn1/tcap.asn)
ln -s ../asn1/Makefile.compiled asn1-compiled/Makefile
test: all
$(MAKE) -C tests test
clean:
$(MAKE) -C asn1-compiled lib-clean
$(MAKE) -C src clean
$(MAKE) -C tests clean
install: all
mkdir -p $(DESTDIR)/$(HDR)
cp include/*.h $(DESTDIR)/$(HDR)
mkdir -p $(DESTDIR)/$(LIBDIR)
cp src/$(LIBSOVER) $(DESTDIR)/$(LIBDIR)/$(LIBSOVER)
ln -s $(LIBSOVER) $(DESTDIR)/$(LIBDIR)/$(LIBSO)
.PHONY: all regenerate-asn1 clean install