This repository has been archived by the owner on Feb 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Showing
18 changed files
with
1,844 additions
and
391 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*.a | ||
*.o | ||
*.exe | ||
*.so | ||
|
||
.directory | ||
|
||
dssi-vst_gui | ||
vsthost |
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,78 +1,106 @@ | ||
#!/usr/bin/make -f | ||
# Makefile for dssi-vst # | ||
# ------------------------------- # | ||
# Created by falkTX | ||
# | ||
|
||
DSSIDIR = /usr/local/lib/dssi | ||
LADSPADIR = /usr/local/lib/ladspa | ||
BINDIR = /usr/local/bin | ||
|
||
# To compile with the VeSTige compatibility header: | ||
CXXFLAGS = -Ivestige -Wall -fPIC | ||
|
||
# To compile with the official VST SDK v2.4r2: | ||
#CXXFLAGS = -I./vstsdk2.4/pluginterfaces/vst2.x -Wall -fPIC | ||
|
||
LDFLAGS = | ||
|
||
TARGETS = dssi-vst-server.exe.so \ | ||
dssi-vst-scanner.exe.so \ | ||
dssi-vst.so \ | ||
dssi-vst_gui \ | ||
vsthost | ||
|
||
HEADERS = remoteplugin.h \ | ||
remotepluginclient.h \ | ||
remotepluginserver.h \ | ||
remotevstclient.h \ | ||
rdwrops.h \ | ||
paths.h | ||
|
||
OBJECTS = remotevstclient.o \ | ||
remotepluginclient.o \ | ||
remotepluginserver.o \ | ||
rdwrops.o \ | ||
paths.o | ||
|
||
OBJECTS_W32 = remotepluginclient.w32.o \ | ||
remotepluginserver.w32.o \ | ||
rdwrops.w32.o \ | ||
paths.w32.o | ||
|
||
all: $(TARGETS) | ||
|
||
install: all | ||
mkdir -p $(DSSIDIR)/dssi-vst | ||
mkdir -p $(LADSPADIR) | ||
mkdir -p $(BINDIR) | ||
install dssi-vst.so $(DSSIDIR) | ||
install dssi-vst.so $(LADSPADIR) | ||
install dssi-vst-server.exe.so dssi-vst-server dssi-vst-scanner.exe.so dssi-vst-scanner dssi-vst_gui $(DSSIDIR)/dssi-vst | ||
install vsthost $(BINDIR) | ||
CXX ?= g++ | ||
WINECXX ?= wineg++ -m32 | ||
|
||
clean: | ||
rm -f $(OBJECTS) $(OBJECTS_W32) libremoteplugin.a libremoteplugin.w32.a | ||
PREFIX ?= /usr/local | ||
|
||
BIN_DIR = $(DESTDIR)$(PREFIX)/bin | ||
DSSI_DIR = $(DESTDIR)$(PREFIX)/lib/dssi | ||
LADSPA_DIR = $(DESTDIR)$(PREFIX)/lib/ladspa | ||
|
||
BUILD_FLAGS = -O2 -ffast-math -fvisibility=hidden -fPIC -mtune=generic -msse -Wall -Ivestige $(CXX_FLAGS) | ||
BUILD_FLAGS += $(shell pkg-config --cflags alsa liblo zlib) | ||
LINK_FLAGS = $(shell pkg-config --libs zlib) $(LDFLAGS) | ||
|
||
LINK_PLUGIN = -shared $(shell pkg-config --libs alsa jack) $(LINK_FLAGS) | ||
LINK_HOST = $(shell pkg-config --libs alsa jack) $(LINK_FLAGS) | ||
LINK_GUI = $(shell pkg-config --libs liblo) $(LINK_FLAGS) | ||
LINK_WINE = -m32 -L/usr/lib32/wine -L/usr/lib/i386-linux-gnu/wine -lpthread -lrt $(LINK_FLAGS) | ||
|
||
TARGETS = dssi-vst.so dssi-vst_gui vsthost dssi-vst-scanner.exe dssi-vst-server.exe | ||
|
||
# -------------------------------------------------------------- | ||
|
||
all: $(TARGETS) | ||
|
||
dssi-vst.so: dssi-vst.o remotevstclient.o libremoteplugin.unix.a | ||
$(CXX) $^ $(LINK_PLUGIN) -o $@ | ||
|
||
dssi-vst_gui: dssi-vst_gui.o rdwrops.o | ||
$(CXX) $^ $(LINK_GUI) -o $@ | ||
|
||
dssi-vst-scanner.exe: dssi-vst-scanner.wine.o libremoteplugin.wine.a | ||
$(WINECXX) $^ $(LINK_WINE) -o $@ | ||
|
||
dssi-vst-server.exe: dssi-vst-server.wine.o libremoteplugin.wine.a | ||
$(WINECXX) $^ $(LINK_WINE) -ljack -o $@ | ||
|
||
distclean: clean | ||
rm -f $(TARGETS) dssi-vst-scanner dssi-vst-server *~ *.bak | ||
vsthost: remotevstclient.o vsthost.o libremoteplugin.unix.a | ||
$(CXX) $^ $(LINK_HOST) -o $@ | ||
|
||
%.exe.so: %.cpp libremoteplugin.w32.a $(HEADERS) | ||
wineg++ -m32 $(CXXFLAGS) $< -o $* $(LDFLAGS) -L. -lremoteplugin.w32 -lpthread -lrt | ||
# -------------------------------------------------------------- | ||
|
||
libremoteplugin.a: remotepluginclient.o remotepluginserver.o rdwrops.o paths.o | ||
ar r $@ $^ | ||
paths.unix.o: paths.cpp | ||
$(CXX) $^ $(BUILD_FLAGS) -c -o $@ | ||
|
||
libremoteplugin.w32.a: remotepluginclient.w32.o remotepluginserver.w32.o rdwrops.w32.o paths.w32.o | ||
ar r $@ $^ | ||
remotepluginclient.unix.o: remotepluginclient.cpp | ||
$(CXX) $^ $(BUILD_FLAGS) -c -o $@ | ||
|
||
%.w32.o: %.cpp $(HEADERS) | ||
wineg++ -m32 $(CXXFLAGS) $< -c -o $@ | ||
remotepluginserver.unix.o: remotepluginserver.cpp | ||
$(CXX) $^ $(BUILD_FLAGS) -c -o $@ | ||
|
||
%.o: %.cpp $(HEADERS) | ||
g++ $(CXXFLAGS) $< -c | ||
rdwrops.unix.o: rdwrops.cpp | ||
$(CXX) $^ $(BUILD_FLAGS) -c -o $@ | ||
|
||
dssi-vst.so: dssi-vst.cpp libremoteplugin.a remotevstclient.o $(HEADERS) | ||
g++ -shared -Wl,-Bsymbolic -g3 $(CXXFLAGS) -o dssi-vst.so dssi-vst.cpp remotevstclient.o $(LDFLAGS) -L. -lremoteplugin -lasound | ||
libremoteplugin.unix.a: paths.unix.o remotepluginclient.unix.o remotepluginserver.unix.o rdwrops.unix.o | ||
ar rs $@ $^ | ||
|
||
vsthost: vsthost.cpp libremoteplugin.a remotevstclient.o $(HEADERS) | ||
g++ $(CXXFLAGS) vsthost.cpp remotevstclient.o -o vsthost $(LDFLAGS) -L. -lremoteplugin -ljack -lasound -lpthread | ||
# -------------------------------------------------------------- | ||
|
||
dssi-vst_gui: dssi-vst_gui.cpp rdwrops.h | ||
g++ $(CXXFLAGS) dssi-vst_gui.cpp rdwrops.o -o dssi-vst_gui $(LDFLAGS) -llo | ||
paths.wine.o: paths.cpp | ||
$(WINECXX) $^ $(BUILD_FLAGS) -c -o $@ | ||
|
||
remotepluginclient.wine.o: remotepluginclient.cpp | ||
$(WINECXX) $^ $(BUILD_FLAGS) -c -o $@ | ||
|
||
remotepluginserver.wine.o: remotepluginserver.cpp | ||
$(WINECXX) $^ $(BUILD_FLAGS) -c -o $@ | ||
|
||
rdwrops.wine.o: rdwrops.cpp | ||
$(WINECXX) $^ $(BUILD_FLAGS) -c -o $@ | ||
|
||
dssi-vst-scanner.wine.o: dssi-vst-scanner.cpp | ||
$(WINECXX) $^ $(BUILD_FLAGS) -O0 -c -o $@ | ||
|
||
dssi-vst-server.wine.o: dssi-vst-server.cpp | ||
$(WINECXX) $^ $(BUILD_FLAGS) -O0 -c -o $@ | ||
|
||
libremoteplugin.wine.a: paths.wine.o remotepluginclient.wine.o remotepluginserver.wine.o rdwrops.wine.o | ||
ar rs $@ $^ | ||
|
||
# -------------------------------------------------------------- | ||
|
||
.cpp.o: | ||
$(CXX) $< $(BUILD_FLAGS) -c -o $@ | ||
|
||
# -------------------------------------------------------------- | ||
|
||
clean: | ||
rm -f *.a *.o *.exe *.so $(TARGETS) | ||
|
||
install: | ||
install -d $(BIN_DIR) | ||
install -d $(DSSI_DIR) | ||
install -d $(DSSI_DIR)/dssi-vst | ||
install -d $(LADSPA_DIR) | ||
install -m 755 vsthost $(BIN_DIR) | ||
install -m 755 dssi-vst.so $(DSSI_DIR) | ||
install -m 755 dssi-vst.so $(LADSPA_DIR) | ||
install -m 755 dssi-vst_gui $(DSSI_DIR)/dssi-vst | ||
install -m 755 dssi-vst-scanner.exe dssi-vst-scanner.exe.so $(DSSI_DIR)/dssi-vst | ||
install -m 755 dssi-vst-server.exe dssi-vst-server.exe.so $(DSSI_DIR)/dssi-vst |
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
Oops, something went wrong.