This repository was archived by the owner on Sep 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmakefile
53 lines (42 loc) · 1.95 KB
/
makefile
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
CC = g++
CFLAGS = -fPIC -c -I$(VSTSDK) -D__cdecl=""
LFLAGS = -shared -Wl,-soname,$(TARGET) -o $(TARGET)
VSTSDK = VST3_SDK
SRCS = src/biquad.cpp src/biquadDouble.cpp src/bitcrush.cpp src/eaxreverb.cpp src/LinearResampler.cpp src/main.cpp src/resampler.cpp src/ReverbEffect.cpp src/ReverbEffectDouble.cpp src/silence.cpp src/ZOHResampler.cpp $(VSTSDK)/public.sdk/source/vst2.x/audioeffect.cpp $(VSTSDK)/public.sdk/source/vst2.x/audioeffectx.cpp $(VSTSDK)/public.sdk/source/vst2.x/vstplugmain.cpp
OBJS = audioeffect.o audioeffectx.o biquad.o biquadDouble.o bitcrush.o eaxreverb.o LinearResampler.o main.o resampler.o ReverbEffect.o ReverbEffectDouble.o silence.o vstplugmain.o ZOHResampler.o
TARGET = EAXReverb.so
INSTDIR = /usr/lib/vst
all: compile link
compile: $(SRCS)
$(CC) $(CFLAGS) $(SRCS)
link: $(OBJS)
$(CC) $(LFLAGS) $(OBJS)
install: $(TARGET)
mkdir $(INSTDIR)
cp $(TARGET) $(INSTDIR)
uninstall: $(INSTDIR)/$(TARGET)
rm $(INSTDIR)/$(TARGET)
compress: $(TARGET)
gzip $(TARGET)
decompress: $(TARGET).gz
gzip -d $(TARGET).gz
.PHONY: clean help license
clean:
rm -f $(OBJS) $(TARGET)
help:
@echo supported commands:
@echo make: compile and link the library
@echo make compile: compile source files into object code
@echo make link: link object code into shared library
@echo make install: install the library onto the system
@echo make uninstall: remove the library from the system
@echo make compress: compress the library into a gzip archive
@echo make decompress: decompress the library from a gzip archive
@echo make clean: remove object code and compiled library from working directory
@echo make license: display license
@echo make help: list supported commands
license:
@echo "This library is free software; you can redistribute it and/or"
@echo "modify it under the terms of the GNU Lesser General Public"
@echo "License as published by the Free Software Foundation; either"
@echo "version 2.1 of the License, or (at your option) any later version."