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

Install rules

This commit is contained in:
Mark Hills 2012-07-27 12:31:49 +01:00
parent cdcef61fad
commit b5ce1fcc9d

View File

@ -1,5 +1,12 @@
-include .config
INSTALL ?= install
# Installation paths
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
CFLAGS += -MMD -Wall
LDLIBS_ASOUND ?= -lasound
@ -8,7 +15,7 @@ LDLIBS_ORTP ?= -lortp
LDLIBS += $(LDLIBS_ASOUND) $(LDLIBS_OPUS) $(LDLIBS_ORTP)
.PHONY: all clean
.PHONY: all install clean
all: rx tx
@ -16,6 +23,10 @@ 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