Move to a simpler versioning scheme (the one derived from upstream
is going to break the ordering that Debian expects very soon). When building from source not via debian/rules, derive a version from git describe.
This commit is contained in:
parent
ada188a1c8
commit
af3eb3df2b
4 changed files with 10 additions and 12 deletions
6
Makefile
6
Makefile
|
|
@ -4,18 +4,22 @@
|
|||
#
|
||||
PROGNAME=dump1090
|
||||
|
||||
ifndef DUMP1090_VERSION
|
||||
DUMP1090_VERSION=$(shell git describe --tags)
|
||||
endif
|
||||
|
||||
ifdef PREFIX
|
||||
BINDIR=$(PREFIX)/bin
|
||||
SHAREDIR=$(PREFIX)/share/$(PROGNAME)
|
||||
EXTRACFLAGS=-DHTMLPATH=\"$(SHAREDIR)\"
|
||||
endif
|
||||
|
||||
CPPFLAGS+=-DMODES_DUMP1090_VERSION=\"$(DUMP1090_VERSION)\"
|
||||
CFLAGS+=-O2 -g -Wall -Werror -W `pkg-config --cflags librtlsdr`
|
||||
LIBS=-lpthread -lm -lrt
|
||||
LIBS_RTL=`pkg-config --libs librtlsdr`
|
||||
CC=gcc
|
||||
|
||||
|
||||
all: dump1090 view1090
|
||||
|
||||
%.o: %.c dump1090.h
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue