1
0
mirror of http://www.pogo.org.uk/~mark/trx.git synced 2024-11-21 18:05:06 +01:00
trx/Makefile

40 lines
617 B
Makefile
Raw Normal View History

2009-09-05 00:04:44 +02:00
-include .config
2012-07-27 13:31:49 +02:00
INSTALL ?= install
# Installation paths
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
2012-07-21 18:30:28 +02:00
CFLAGS += -MMD -Wall
2009-09-05 00:04:44 +02:00
2012-07-21 18:30:28 +02:00
LDLIBS_ASOUND ?= -lasound
LDLIBS_OPUS ?= -lopus
LDLIBS_ORTP ?= -lortp
2009-09-11 17:40:27 +02:00
2012-07-21 18:30:28 +02:00
LDLIBS += $(LDLIBS_ASOUND) $(LDLIBS_OPUS) $(LDLIBS_ORTP)
2009-09-11 17:40:27 +02:00
2012-09-22 12:53:36 +02:00
.PHONY: all install dist clean
2009-09-05 00:04:44 +02:00
all: rx tx
2009-09-11 17:40:27 +02:00
rx: rx.o device.o sched.o
2009-09-05 00:04:44 +02:00
tx: tx.o device.o sched.o
2012-07-27 13:31:49 +02:00
install: rx tx
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) rx tx $(DESTDIR)$(BINDIR)
2012-09-22 12:53:36 +02:00
dist:
mkdir -p dist
V=$$(git describe) && \
git archive --prefix="trx-$$V/" HEAD | \
gzip > "dist/trx-$$V.tar.gz"
2009-09-05 00:04:44 +02:00
clean:
2012-07-27 13:21:25 +02:00
rm -f *.o *.d tx rx
2009-09-05 00:04:44 +02:00
-include *.d