-
Notifications
You must be signed in to change notification settings - Fork 1
/
MakefileOSX
31 lines (25 loc) · 940 Bytes
/
MakefileOSX
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
SLUG = CabbageRack
VERSION = 0.5.0
# FLAGS will be passed to both the C and C++ compiler
FLAGS +=
CFLAGS +=
CXXFLAGS += -I /Library/Frameworks/CsoundLib64.framework/Versions/6.0/Headers
LDFLAGS += -F /Library/Frameworks/ -framework CsoundLib64 -rpath
# Careful about linking to libraries, since you can't assume much about the user's environment and library search path.
# Static libraries are fine.
# Add .cpp and .c files to the build
SOURCES = $(wildcard src/*.cpp)
# Must include the VCV plugin Makefile framework
include ../../plugin.mk
# Convenience target for including files in the distributable release
DIST_NAME = Template
.PHONY: dist
dist: all
ifndef VERSION
$(error VERSION must be defined when making distributables)
endif
mkdir -p dist/$(DIST_NAME)
cp LICENSE* dist/$(DIST_NAME)/
cp $(TARGET) dist/$(DIST_NAME)/
cp -R res dist/$(DIST_NAME)/
cd dist && zip -5 -r $(DIST_NAME)-$(VERSION)-$(ARCH).zip $(DIST_NAME)