-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (39 loc) · 1.31 KB
/
Makefile
File metadata and controls
47 lines (39 loc) · 1.31 KB
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
# If RACK_DIR is not defined when calling the Makefile, default to two directories above
RACK_DIR ?= ../..
# Include the VCV Rack Architecture
include $(RACK_DIR)/arch.mk
# Must follow the format in the Naming section of
# https://vcvrack.com/manual/PluginDevelopmentTutorial.html
SLUG = Modiy
# Must follow the format in the Versioning section of
# https://vcvrack.com/manual/PluginDevelopmentTutorial.html
VERSION = 0.3.0
# FLAGS will be passed to both the C and C++ compiler
FLAGS += -Isrc/
#CFLAGS +=
#CXXFLAGS +=
# Add .cpp and .c files to the build
SOURCES += $(wildcard src/*.cpp)
# OSC
SOURCES += $(wildcard src/ip/*.cpp) $(wildcard src/osc/*.cpp)
# Process
SOURCES += $(wildcard src/process/process.cpp)
# Arch specitic files
ifdef ARCH_LIN
SOURCES += $(wildcard src/ip/posix/*.cpp)
SOURCES += $(wildcard src/process/process_unix.cpp)
endif
ifdef ARCH_MAC
SOURCES += $(wildcard src/ip/posix/*.cpp)
SOURCES += $(wildcard src/process/process_unix.cpp)
endif
ifdef ARCH_WIN
SOURCES += $(wildcard src/ip/win32/*.cpp)
SOURCES += $(wildcard src/process/process_win.cpp)
LDFLAGS += -lws2_32 -lwinmm
endif
# Add files to the ZIP package when running `make dist`
# The compiled plugin is automatically added.
DISTRIBUTABLES += $(wildcard LICENSE*) res
# Include the VCV Rack plugin Makefile framework
include $(RACK_DIR)/plugin.mk