aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6e9e402
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+PROJ=miragextract
+
+# Packagers: override these on make command line as needed.
+OPTFLAGS=-O2
+LDEXTRA=
+
+SNDFILE_CFLAGS:=$(shell pkg-config --cflags sndfile)
+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)
+LDFLAGS=$(LDEXTRA) $(MIRAGE_LIBS) $(SNDFILE_LIBS)
+
+all: $(PROJ)
+
+test: all
+ ./$(PROJ)