-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (28 loc) · 696 Bytes
/
Makefile
File metadata and controls
40 lines (28 loc) · 696 Bytes
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
NAME = plujain-ramp
# installation path
INSTALL_PATH = /usr/local/lib/lv2
COMPLETE_INSTALL_PATH = $(DESTDIR)$(INSTALL_PATH)/$(NAME).lv2
# compiler and linker
CXX ?= g++
# flags
CXXFLAGS += -I. -c -ffast-math -fPIC -DPIC -Wall -fvisibility=hidden
LDFLAGS += -shared -lm
# libs
LIBS =
# remove command
RM = rm -f
# sources and objects
SRC = $(wildcard src/*.cpp)
OBJ = $(SRC:.cpp=.o)
# plugin name
PLUGIN = ramp.so
$(PLUGIN): $(OBJ)
$(CXX) $(LDFLAGS) $(OBJ) -o $(PLUGIN) $(LIBS)
%.o: %.cpp
$(CXX) $(CXXFLAGS) -o $@ $<
clean:
$(RM) src/*.o $(PLUGIN) $(PLUGIN2)
install:
mkdir -p $(COMPLETE_INSTALL_PATH)
cp $(PLUGIN) $(COMPLETE_INSTALL_PATH)
cp ttl/*.ttl $(COMPLETE_INSTALL_PATH)