mirror of
http://www.pogo.org.uk/~mark/trx.git
synced 2024-12-22 23:45:05 +01:00
34 lines
488 B
Makefile
34 lines
488 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 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)
|
|
|
|
clean:
|
|
rm -f *.o *.d tx rx
|
|
|
|
-include *.d
|