-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.mk
More file actions
25 lines (22 loc) · 699 Bytes
/
Copy pathplugin.mk
File metadata and controls
25 lines (22 loc) · 699 Bytes
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
ifndef URACK_DIR
$(error URACK_DIR is not set)
endif
ifndef RACK_DIR
$(error RACK_DIR is not set)
endif
# Add URack files to the build
SOURCES += $(wildcard $(URACK_DIR)/src/*.cpp)
FLAGS += -I$(URACK_DIR)/include -Wfatal-errors
# Add OSC lib src
# TODO this could probably be linked statically
SOURCES += $(wildcard $(URACK_DIR)/lib/oscpack/ip/*.cpp)
SOURCES += $(wildcard $(URACK_DIR)/lib/oscpack/osc/*.cpp)
# Add OSC lib platform specific src
include $(RACK_DIR)/arch.mk
ifeq ($(ARCH), win)
SOURCES += $(wildcard $(URACK_DIR)/lib/oscpack/ip/win32/*.cpp)
LDFLAGS += -lws2_32 -lwinmm
LDFLAGS += -L$(RACK_DIR)/dep/lib
else
SOURCES += $(wildcard $(URACK_DIR)/lib/oscpack/ip/posix/*.cpp)
endif