mirror of
http://www.pogo.org.uk/~mark/trx.git
synced 2024-11-21 10:05:04 +01:00
40 lines
617 B
Makefile
40 lines
617 B
Makefile
-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
|