-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile-64bitonly
78 lines (48 loc) · 2.56 KB
/
Makefile-64bitonly
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/make -f
# Makefile for LinVst #
CXX = g++
WINECXX = wineg++ -Wl,--subsystem,windows
CXX_FLAGS =
PREFIX = /usr
BIN_DIR = $(DESTDIR)$(PREFIX)/bin
VST_DIR = ./vst
BUILD_FLAGS = -fPIC -O2 -DLVRT -DEMBED -DEMBEDDRAG -DWAVES -DVESTIGE -DNEWTIME -DINOUTMEM -DCHUNKBUF -DTRACKTIONWM -DEMBEDRESIZE -DPCACHE $(CXX_FLAGS)
BUILD_FLAGS_WIN = -m64 -fPIC -O2 -DVST6432 -DEMBED -DEMBEDDRAG -DWAVES -DVESTIGE -DNEWTIME -DINOUTMEM -DCHUNKBUF -DTRACKTIONWM -DEMBEDRESIZE -DPCACHE -I/opt/wine-staging/include/wine/windows -I/opt/wine-stable/include/wine/windows -I/opt/wine-devel/include/wine/windows -I/usr/include/wine-development/windows -I/usr/include/wine-development/wine/windows -I/usr/include/wine/wine/windows
LINK_FLAGS = $(LDFLAGS)
LINK_PLUGIN = -shared -lpthread -ldl -lX11 $(LINK_FLAGS)
LINK_WINE = -L/opt/wine-stable/lib64/wine -L/opt/wine-devel/lib64/wine -L/opt/wine-staging/lib64/wine -L/opt/wine-stable/lib64/wine/x86_64-unix -L/opt/wine-devel/lib64/wine/x86_64-unix -L/opt/wine-staging/lib64/wine/x86_64-unix -L/usr/lib/x86_64-linux-gnu/wine-development -lpthread -lX11 -lshell32 -lole32 $(LINK_FLAGS)
TARGETS = linvstx.so lin-vst-server-x.exe
PATH := $(PATH):/opt/wine-stable/bin:/opt/wine-devel/bin:/opt/wine-staging/bin
# --------------------------------------------------------------
all: $(TARGETS)
linvstx.so: linvst.unix.o remotepluginclient.unix.o paths.unix.o
$(CXX) $^ $(LINK_PLUGIN) -o $@
lin-vst-server-x.exe: lin-vst-server.wine.o remotepluginserver.wine.o paths.wine.o
$(WINECXX) $^ $(LINK_WINE) -o $@
# --------------------------------------------------------------
linvst.unix.o: linvst.cpp
$(CXX) $(BUILD_FLAGS) -c $^ -o $@
remotepluginclient.unix.o: remotepluginclient.cpp
$(CXX) $(BUILD_FLAGS) -c $^ -o $@
paths.unix.o: paths.cpp
$(CXX) $(BUILD_FLAGS) -c $^ -o $@
# --------------------------------------------------------------
lin-vst-server.wine.o: lin-vst-server.cpp
$(WINECXX) $(BUILD_FLAGS_WIN) -c $^ -o $@
remotepluginserver.wine.o: remotepluginserver.cpp
$(WINECXX) $(BUILD_FLAGS_WIN) -c $^ -o $@
paths.wine.o: paths.cpp
$(WINECXX) $(BUILD_FLAGS_WIN) -c $^ -o $@
lin-vst-server.wine32.o: lin-vst-server.cpp
$(WINECXX) $(BUILD_FLAGS_WIN32) -c $^ -o $@
remotepluginserver.wine32.o: remotepluginserver.cpp
$(WINECXX) $(BUILD_FLAGS_WIN32) -c $^ -o $@
paths.wine32.o: paths.cpp
$(WINECXX) $(BUILD_FLAGS_WIN32) -c $^ -o $@
clean:
rm -fR *.o *.exe *.so vst $(TARGETS)
install:
install -d $(BIN_DIR)
install -d $(VST_DIR)
install -m 755 linvstx.so $(VST_DIR)
install -m 755 lin-vst-server-x.exe lin-vst-server-x.exe.so $(BIN_DIR)