-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
58 lines (47 loc) · 1.84 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# If RACK_DIR is not defined when calling the Makefile, default to two directories above
RACK_DIR ?= ../../Rack-SDK
# CC:= clang
# CXX:= clang++
# FLAGS will be passed to both the C and C++ compiler
FLAGS += -Idep
FLAGS += -Isrc/include
FLAGS += -Idep/choc/containers
# FLAGS += -Idep/rubberband
# FLAGS += -Idep/rubberband/src
# FLAGS += -Idep/lua/src
CFLAGS +=
# CFLAGS += -g
# CXXFLAGS += -g
# CFLAGS+= -Werror
# CXXFLAGS+= -Werror
# CXXFLAGS += -DUSE_KISSFFT
# CXXFLAGS += -DUSE_SPEEX
CXXFLAGS += -DWDL_RESAMPLE_TYPE=float
# LD:=LLD
# Careful about linking to shared libraries, since you can't assume much about the user's environment and library search path.
# Static libraries are fine, but they should be added to this plugin's build system.
LDFLAGS +=
# Add .cpp files to the build
SOURCES += $(wildcard src/*.cpp)
SOURCES += $(wildcard src/old/*.cpp)
SOURCES += $(wildcard src/audiomodules/*.cpp)
SOURCES += $(wildcard src/cvmodules/*.cpp)
SOURCES += $(wildcard src/wdl/*.cpp)
SOURCES += src/dr_wav.c
# SOURCES += $(wildcard dep/lua/src/*.c)
TMPVAR := $(SOURCES)
SOURCES = $(filter-out src/old/polyrandom.cpp, $(TMPVAR))
# SOURCES += $(wildcard dep/rubberband/src/*.cpp)
# SOURCES += $(wildcard dep/rubberband/src/audiocurves/*.cpp)
# SOURCES += $(wildcard dep/rubberband/src/base/*.cpp)
# SOURCES += $(wildcard dep/rubberband/src/dsp/*.cpp)
# SOURCES += $(wildcard dep/rubberband/src/kissfft/*.c)
# SOURCES += $(wildcard dep/rubberband/src/speex/*.c)
# SOURCES += $(wildcard dep/rubberband/src/system/*.cpp)
# SOURCES += $(wildcard dep/claudio/*.cpp)
# Add files to the ZIP package when running `make dist`
# The compiled plugin and "plugin.json" are automatically added.
DISTRIBUTABLES += res
DISTRIBUTABLES += $(wildcard LICENSE*)
# Include the Rack plugin Makefile framework
include $(RACK_DIR)/plugin.mk