1
0
mirror of http://www.pogo.org.uk/~mark/trx.git synced 2025-01-30 05:25:07 +01:00
trx/Makefile

40 lines
617 B
Makefile
Raw Permalink Normal View History

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