aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LICENSE14
-rw-r--r--Makefile6
-rw-r--r--miragextract.c2
3 files changed, 18 insertions, 4 deletions
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 <sam@hocevar.net>
+
+ 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 <sndfile.h>
#include <mirage/mirage.h>
-#define VERSION "0.0.1"
-
#ifndef PATH_MAX
# define PATH_MAX 1024
#endif