Merge pull request #12 from ckuethe/master
respect PREFIX to allow alternate destinations
This commit is contained in:
commit
a0e796326c
1 changed files with 8 additions and 7 deletions
15
Makefile
15
Makefile
|
@ -42,6 +42,7 @@ PARAMS_MISC = -Wno-unused-result
|
||||||
#DEBUG_ON = 0 #debug is always on by now (anyway it could be compiled with `make DEBUG_ON=1`)
|
#DEBUG_ON = 0 #debug is always on by now (anyway it could be compiled with `make DEBUG_ON=1`)
|
||||||
#PARAMS_DEBUG = $(if $(DEBUG_ON),-g,)
|
#PARAMS_DEBUG = $(if $(DEBUG_ON),-g,)
|
||||||
FFTW_PACKAGE = fftw-3.3.3
|
FFTW_PACKAGE = fftw-3.3.3
|
||||||
|
PREFIX ?= /usr
|
||||||
|
|
||||||
.PHONY: clean-vect clean
|
.PHONY: clean-vect clean
|
||||||
all: csdr nmux
|
all: csdr nmux
|
||||||
|
@ -66,14 +67,14 @@ clean-vect:
|
||||||
clean: clean-vect
|
clean: clean-vect
|
||||||
rm -f libcsdr.so csdr ddcd nmux
|
rm -f libcsdr.so csdr ddcd nmux
|
||||||
install: all
|
install: all
|
||||||
install -m 0755 libcsdr.so /usr/lib
|
install -m 0755 libcsdr.so $(PREFIX)/lib
|
||||||
install -m 0755 csdr /usr/bin
|
install -m 0755 csdr $(PREFIX)/bin
|
||||||
install -m 0755 csdr-fm /usr/bin
|
install -m 0755 csdr-fm $(PREFIX)/bin
|
||||||
install -m 0755 nmux /usr/bin
|
install -m 0755 nmux $(PREFIX)/bin
|
||||||
#-install -m 0755 ddcd /usr/bin
|
#-install -m 0755 ddcd $(PREFIX)/bin
|
||||||
ldconfig
|
ldconfig || echo please run ldconfig
|
||||||
uninstall:
|
uninstall:
|
||||||
rm /usr/lib/libcsdr.so /usr/bin/csdr /usr/bin/csdr-fm
|
rm $(PREFIX)/lib/libcsdr.so $(PREFIX)/bin/csdr $(PREFIX)/bin/csdr-fm
|
||||||
ldconfig
|
ldconfig
|
||||||
disasm:
|
disasm:
|
||||||
objdump -S libcsdr.so > libcsdr.disasm
|
objdump -S libcsdr.so > libcsdr.disasm
|
||||||
|
|
Loading…
Reference in a new issue