-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rich Jones
committed
Dec 12, 2017
1 parent
a8a244a
commit 5f8194a
Showing
1 changed file
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,29 @@ | ||
# FLAGS will be passed to both the C and C++ compiler | ||
FLAGS += | ||
CFLAGS += | ||
CXXFLAGS += | ||
|
||
# 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) | ||
|
||
|
||
# Must include the VCV plugin Makefile framework | ||
include ../../plugin.mk | ||
|
||
|
||
# Convenience target for including files in the distributable release | ||
DIST_NAME = RJModules | ||
.PHONY: dist | ||
dist: all | ||
mkdir -p dist/RJModules | ||
cp LICENSE* dist/RJModules/ | ||
cp $(TARGET) dist/RJModules/ | ||
cp -R res dist/RJModules/ | ||
ifndef VERSION | ||
$(error VERSION must be defined when making distributables) | ||
endif | ||
mkdir -p dist/$(DIST_NAME) | ||
cp LICENSE* README* 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)<Paste> |