1
0
mirror of http://www.pogo.org.uk/~mark/trx.git synced 2024-12-22 15:35:06 +01:00
trx/Makefile

34 lines
488 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-07-27 13:31:49 +02:00
.PHONY: all install 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)
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