-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
45 lines (35 loc) · 1.23 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
RACK_DIR ?= ../..
# FLAGS will be passed to both the C and C++ compiler
# FLAGS +=
# FLAGS += -w -g
CFLAGS +=
# CXXFLAGS += -Wdeprecated-declarations -Wall -Werror
# FLAGS += -Wdeprecated-declarations -Wall -Werror
# Careful about linking to libraries, since you can't assume much about the user's environment and library search path.
# Static libraries are fine.
LDFLAGS +=
# Add .cpp and .c files to the build
# SOURCES = $(wildcard src/*.cpp)
SOURCES = src/alikins.cpp \
src/IdleSwitch.cpp \
src/BigMuteButton.cpp \
src/GateLength.cpp \
src/MomentaryOnButtons.cpp \
src/Reference.cpp \
src/ValueSaver.cpp \
src/ColorPanel.cpp \
src/ShiftPedal.cpp \
src/SpecificValue.cpp \
src/HoveredValue.cpp \
src/ParamFloatField.cpp \
src/InjectValue.cpp \
# Must include the VCV plugin Makefile framework
include $(RACK_DIR)/plugin.mk
# http://cppcheck.sourceforge.net/
cppcheck:
cppcheck -i$(RACK_DIR)/dep/include -i$(RACK_DIR)/include --enable=style -DVERSION=0.5.1 --quiet src/
# https://github.com/google/styleguide
cpplint:
cpplint --headers=hpp --filter=-whitespace/line_length,-legal/copyright,-whitespace/blank_line src/*.cpp src/*.hpp
DISTRIBUTABLES += $(wildcard LICENSE*) res
.PHONY: cppcheck cpplint