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.
 
 

39 lines
617 B

-include .config
INSTALL ?= install
# Installation paths
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
CFLAGS += -MMD -Wall
LDLIBS_ASOUND ?= -lasound
LDLIBS_OPUS ?= -lopus
LDLIBS_ORTP ?= -lortp
LDLIBS += $(LDLIBS_ASOUND) $(LDLIBS_OPUS) $(LDLIBS_ORTP)
.PHONY: all install dist clean
all: rx tx
rx: rx.o device.o sched.o
tx: tx.o device.o sched.o
install: rx tx
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) rx tx $(DESTDIR)$(BINDIR)
dist:
mkdir -p dist
V=$$(git describe) && \
git archive --prefix="trx-$$V/" HEAD | \
gzip > "dist/trx-$$V.tar.gz"
clean:
rm -f *.o *.d tx rx
-include *.d