|
|
@@ -8,14 +8,14 @@ ifdef RELEASE |
|
|
|
FLAGS += -DRELEASE=$(RELEASE) |
|
|
|
endif |
|
|
|
|
|
|
|
SOURCES = $(wildcard src/*.cpp src/*/*.cpp) \ |
|
|
|
ext/nanovg/src/nanovg.c |
|
|
|
SOURCES += $(wildcard src/*.cpp src/*/*.cpp) |
|
|
|
SOURCES += dep/nanovg/src/nanovg.c |
|
|
|
|
|
|
|
|
|
|
|
include arch.mk |
|
|
|
|
|
|
|
ifeq ($(ARCH), lin) |
|
|
|
SOURCES += ext/osdialog/osdialog_gtk2.c |
|
|
|
SOURCES += dep/osdialog/osdialog_gtk2.c |
|
|
|
CFLAGS += $(shell pkg-config --cflags gtk+-2.0) |
|
|
|
LDFLAGS += -rdynamic \ |
|
|
|
-lpthread -lGL -ldl \ |
|
|
@@ -25,7 +25,7 @@ ifeq ($(ARCH), lin) |
|
|
|
endif |
|
|
|
|
|
|
|
ifeq ($(ARCH), mac) |
|
|
|
SOURCES += ext/osdialog/osdialog_mac.m |
|
|
|
SOURCES += dep/osdialog/osdialog_mac.m |
|
|
|
CXXFLAGS += -DAPPLE -stdlib=libc++ |
|
|
|
LDFLAGS += -stdlib=libc++ -lpthread -ldl \ |
|
|
|
-framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo \ |
|
|
@@ -35,7 +35,7 @@ ifeq ($(ARCH), mac) |
|
|
|
endif |
|
|
|
|
|
|
|
ifeq ($(ARCH), win) |
|
|
|
SOURCES += ext/osdialog/osdialog_win.c |
|
|
|
SOURCES += dep/osdialog/osdialog_win.c |
|
|
|
LDFLAGS += -static-libgcc -static-libstdc++ -lpthread \ |
|
|
|
-Wl,--export-all-symbols,--out-implib,libRack.a -mwindows \ |
|
|
|
-lgdi32 -lopengl32 -lcomdlg32 -lole32 \ |
|
|
@@ -94,6 +94,8 @@ include compile.mk |
|
|
|
|
|
|
|
dist: all |
|
|
|
rm -rf dist |
|
|
|
|
|
|
|
# Rack distribution |
|
|
|
$(MAKE) -C plugins/Fundamental dist |
|
|
|
|
|
|
|
ifeq ($(ARCH), mac) |
|
|
@@ -184,6 +186,14 @@ ifeq ($(ARCH), lin) |
|
|
|
cd dist && zip -5 -r Rack-$(VERSION)-$(ARCH).zip Rack |
|
|
|
endif |
|
|
|
|
|
|
|
# Rack SDK distribution |
|
|
|
mkdir -p dist/Rack-SDK |
|
|
|
cp -R include dist/Rack-SDK/ |
|
|
|
cp *.mk dist/Rack-SDK/ |
|
|
|
mkdir -p dist/Rack-SDK/dep/ |
|
|
|
cp -R dep/include dist/Rack-SDK/dep/ |
|
|
|
cd dist && zip -5 -r Rack-SDK-$(VERSION)-$(ARCH).zip Rack-SDK |
|
|
|
|
|
|
|
|
|
|
|
# Obviously this will only work if you have the private keys to my server |
|
|
|
UPLOAD_URL = vortico@vcvrack.com:files/ |
|
|
|