blob: bf2a8594322f2046c12d8265fcf5b9f36e996544 (
plain)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
VST_BASE = vstsdk2.4
VST_SRC_BASE = ${VST_BASE}/public.sdk/source/vst2.x/
VST_SRC = \
${VST_SRC_BASE}/audioeffectx.cpp \
${VST_SRC_BASE}/audioeffect.cpp \
${VST_SRC_BASE}/vstplugmain.cpp
VST_CFLAGS=-I$(VST_BASE)
top_srcdir=..
DG_BASE = ..
DG_SRC = \
${DG_BASE}/src/audiofile.cc \
${DG_BASE}/src/audioinputenginemidi.cc \
${DG_BASE}/src/configuration.cc \
${DG_BASE}/src/channel.cc \
${DG_BASE}/src/channelmixer.cc \
${DG_BASE}/src/drumgizmo.cc \
${DG_BASE}/src/drumkit.cc \
${DG_BASE}/src/drumkitloader.cc \
${DG_BASE}/src/drumkitparser.cc \
${DG_BASE}/src/events.cc \
${DG_BASE}/src/instrument.cc \
${DG_BASE}/src/instrumentparser.cc \
${DG_BASE}/src/midimapparser.cc \
${DG_BASE}/src/midimapper.cc \
${DG_BASE}/src/mutex.cc \
${DG_BASE}/src/path.cc \
${DG_BASE}/src/sample.cc \
${DG_BASE}/src/saxparser.cc \
${DG_BASE}/src/semaphore.cc \
${DG_BASE}/src/thread.cc \
${DG_BASE}/src/velocity.cc
DG_CFLAGS = -I../include -I../src -DSSE -msse -msse2
GUI_SRC = \
$(DG_BASE)/plugingui/plugingui.cc \
$(DG_BASE)/plugingui/globalcontext.cc \
$(DG_BASE)/plugingui/label.cc \
$(DG_BASE)/plugingui/eventhandler.cc \
$(DG_BASE)/plugingui/font.cc \
$(DG_BASE)/plugingui/window.cc \
$(DG_BASE)/plugingui/nativewindow_win32.cc \
$(DG_BASE)/plugingui/widget.cc \
$(DG_BASE)/plugingui/colour.cc \
$(DG_BASE)/plugingui/painter.cc \
$(DG_BASE)/plugingui/button.cc \
$(DG_BASE)/plugingui/pixelbuffer.cc \
$(DG_BASE)/plugingui/lineedit.cc \
$(DG_BASE)/plugingui/led.cc \
$(DG_BASE)/plugingui/checkbox.cc \
$(DG_BASE)/plugingui/slider.cc \
$(DG_BASE)/plugingui/listbox.cc \
$(DG_BASE)/plugingui/listboxthin.cc \
$(DG_BASE)/plugingui/listboxbasic.cc \
$(DG_BASE)/plugingui/verticalline.cc \
$(DG_BASE)/plugingui/knob.cc \
$(DG_BASE)/plugingui/filebrowser.cc \
$(DG_BASE)/plugingui/combobox.cc \
$(DG_BASE)/plugingui/progressbar.cc \
$(DG_BASE)/plugingui/resource.cc \
$(DG_BASE)/plugingui/resource_data.cc \
$(DG_BASE)/plugingui/image.cc
GUI_CFLAGS=-I../plugingui -DUSE_THREAD
GUI_LIBS=-lgdi32 -lsetupapi -lws2_32
DBG_SRC = \
$(top_srcdir)/hugin/hugin.c \
$(top_srcdir)/hugin/hugin_syslog.c
DBG_CFLAGS=-I../hugin -DWITH_HUG_SYSLOG -DWITH_HUG_MUTEX
MSYS=/local
EXPAT_BASE=${MSYS}
EXPAT_CFLAGS=-I${EXPAT_BASE}/include
EXPAT_LIBS=-L${EXPAT_BASE}/lib -lexpat
SNDFILE_BASE=${MSYS}
SNDFILE_CFLAGS=-I${SNDFILE_BASE}/include
SNDFILE_LIBS=-L${SNDFILE_BASE}/lib -lsndfile
PNG_BASE=${MSYS}
PNG_CFLAGS=-I${SNDFILE_BASE}/include
PNG_LIBS=-L${SNDFILE_BASE}/lib -lpng -lz
SRC = \
drumgizmo_vst.cc \
input_vst.cc \
output_vst.cc
all:
gcc $(DBG_CFLAGS) $(top_srcdir)/hugin/hugin.c -c
gcc $(DBG_CFLAGS) $(top_srcdir)/hugin/hugin_syslog.c -c
g++ -static -static-libgcc -O2 -g -Wall -DWIN32 $(DBG_CFLAGS) $(PNG_CFLAGS) $(DG_CFLAGS) $(DG_LIBS) $(VST_CFLAGS) hugin.o hugin_syslog.o $(DG_SRC) $(VST_SRC) ${SRC} ${GUI_SRC} ${GUI_CFLAGS} $(GUI_LIBS) $(EXPAT_CFLAGS) $(EXPAT_LIBS) $(SNDFILE_CFLAGS) $(SNDFILE_LIBS) $(PNG_LIBS) -shared -o drumgizmo_vst.dll -Wl,--out-implib,libdrumgizmo_vst.a
clean:
del -f drumgizmo_vst.dll libdrumgizmo_vst.a
|