mirror of
http://www.pogo.org.uk/~mark/trx.git
synced 2024-11-24 11:25:06 +01:00
Install rules
This commit is contained in:
parent
cdcef61fad
commit
b5ce1fcc9d
13
Makefile
13
Makefile
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user