view src/Makefile @ 36:84affc6de365 default tip

Makefile hierarchy: add install
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 09 Jul 2024 02:22:18 +0000
parents c0ce22777694
children
line wrap: on
line source

OBJS=	bind_fdpair.o endp_bind.o endp_create.o endp_register.o rtcp_rx.o \
	rtcp_tx.o rtp_rx.o rtp_tx.o set_dscp_prio.o set_remote.o set_sdes.o \
	twjit.o twjit_in.o twjit_out.o twjit_vty.o
LIB=	libtwrtp.a

include ../config.defs

CPPFLAGS=-I../build-inc ${OSMO_INCLUDE}
HDRS=	../include/endp.h ../include/twjit.h endp_internal.h

all:	${LIB}

${OBJS}: ${HDRS}

${LIB}:	${OBJS}
	ar rcu $@ ${OBJS}
	ranlib $@

install:
	mkdir -p ${DESTDIR}${libdir}
	install -c -m 644 ${LIB} ${DESTDIR}${libdir}

clean:
	rm -f *.[oa] errs