From 6936bfd84b89eacd926133f1a15a2a99565aa44b Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 8 May 2020 20:30:22 -0400 Subject: add license, move version to makefile --- LICENSE | 14 ++++++++++++++ Makefile | 6 ++++-- miragextract.c | 2 -- 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5a8e332 --- /dev/null +++ b/LICENSE @@ -0,0 +1,14 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + diff --git a/Makefile b/Makefile index 22766e5..b8d2171 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,9 @@ RST2HTML=rst2html4.py # Hopefully, no user-serviceable parts below this line. PROJ=miragextract -DOCS=README FAQ ChangeLog $(PROJ).html +VERSION=0.0.1 + +DOCS=README FAQ ChangeLog LICENSE $(PROJ).html SNDFILE_CFLAGS:=$(shell pkg-config --cflags sndfile) SNDFILE_LIBS:=$(shell pkg-config --libs sndfile) @@ -45,7 +47,7 @@ SNDFILE_LIBS:=$(shell pkg-config --libs sndfile) MIRAGE_CFLAGS:=$(shell pkg-config --cflags libmirage) MIRAGE_LIBS:=$(shell pkg-config --libs libmirage) -CFLAGS=-Wall $(OPTFLAGS) $(MIRAGE_CFLAGS) $(SNDFILE_CFLAGS) +CFLAGS=-Wall $(OPTFLAGS) $(MIRAGE_CFLAGS) $(SNDFILE_CFLAGS) -DVERSION=\"$(VERSION)\" LDFLAGS=$(MIRAGE_LIBS) $(SNDFILE_LIBS)$ $(LDEXTRA) all: $(PROJ) diff --git a/miragextract.c b/miragextract.c index fb6b3a3..0eef029 100644 --- a/miragextract.c +++ b/miragextract.c @@ -7,8 +7,6 @@ #include #include -#define VERSION "0.0.1" - #ifndef PATH_MAX # define PATH_MAX 1024 #endif -- cgit v1.2.3