-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
38 lines (29 loc) · 1.02 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Makefile for quilt
# PDLIBDIR = $(HOME)/.local/lib/pd/extra
PDLIBDIR = .
lib.name = quilt
cflags = -DBLUNT=1 \
-DDATE=\"$(shell date -u +%F)\" \
-DTIME=\"$(shell date -u +%T)\"
class.sources = $(wildcard $(shell pwd)/src/*.c)
datafiles = $(wildcard abstractions/*.pd) $(wildcard help/*.pd)
datafiles += help/libgme-LICENSE.txt help/README.md
datadirs = blunt
# Game Music Emu
EXT = so
cflags += -I./game-music-emu/gme
gme~.class.ldlibs = game-music-emu/build/gme/libgme.$(EXT) -lsamplerate -lz -lunrar
gmer~.class.ldlibs = game-music-emu/build/gme/libgme.$(EXT) -lrubberband -lz -lunrar
gmes~.class.ldlibs = $(gme~.class.ldlibs)
define forDarwin
ldflags = -L/opt/local/lib
EXT = dylib
endef
define forWindows
EXT = dll
endef
# FFplay
ffplay~.class.ldlibs = -lsamplerate -lavutil -lavcodec -lavformat -lswresample
ffband~.class.ldlibs = -lrubberband -lavutil -lavcodec -lavformat -lswresample
warn.flags = -Wall -Wextra -Wshadow -Winline -Wstrict-aliasing -Wno-cast-function-type
include pd-lib-builder/Makefile.pdlibbuilder