-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
37 lines (29 loc) · 1.08 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
SHELL:=/bin/bash -O extglob
#1.3 Remove SLUG and VERSION from the Makefile, and remove p->slug = ... and p->version = ... from your plugin’s main .cpp file, since they are now defined in plugin.json.
RACK_DIR ?= ../..
#FLAGS += -w
# Add .cpp and .c files to the build
SOURCES = \
$(wildcard lib/oscpack/ip/*.cpp) \
$(wildcard lib/oscpack/osc/*.cpp) \
$(wildcard src/*.cpp) \
$(wildcard src/*/*.cpp) \
# Careful about linking to libraries, since you can't assume much about the user's environment and library search path.
# Static libraries are fine.
include $(RACK_DIR)/arch.mk
MACHINE = $(shell $(CC) -dumpmachine)
ifneq (, $(findstring mingw, $(MACHINE)))
SOURCES += $(wildcard lib/oscpack/ip/win32/*.cpp)
LDFLAGS += -lws2_32 -lwinmm
LDFLAGS += -L$(RACK_DIR)/dep/lib
else
SOURCES += $(wildcard lib/oscpack/ip/posix/*.cpp)
endif
DISTRIBUTABLES += $(wildcard LICENSE*) \
lib/oscpack/LICENSE \
$(wildcard res/*.svg) \
$(wildcard res/*/*.svg) \
res/Fonts \
pd other
# ^ add our other folders (supplementary files) -- add the readme and changelog
include $(RACK_DIR)/plugin.mk