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:
Oliver Jowett 2015-01-22 13:19:15 +00:00
parent ada188a1c8
commit af3eb3df2b
4 changed files with 10 additions and 12 deletions

View file

@ -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