aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 6e9e4021a13353eff557c7bb20dc91f8af58cac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)