forked from dnjulek/VapourSynth-PlaneStatsMod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (19 loc) · 526 Bytes
/
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
CXX := g++
CXXFLAGS := -O2 -Wall -std=c++20
LDFLAGS := -shared
DESTDIR :=
PREFIX := /usr/lib/vapoursynth
INCLUDE := -I/usr/include/vapoursynth/
TARGET := libvsplanestatsmod.so
SRC := src/shared.cpp src/PlaneAverage.cpp src/PlaneMinMax.cpp
OBJ := $(patsubst %.cpp, %.o, $(SRC))
all: $(OBJ)
$(CXX) -o $(TARGET) $^ $(LDFLAGS)
%.o: %.cpp
$(CXX) $(CXXFLAGS) $(INCLUDE) -c $< -o $@
install:
install -Dm644 "$(TARGET)" "$(DESTDIR)$(PREFIX)/$(TARGET)"
uninstall:
rm -f "$(DESTDIR)$(PREFIX)/$(TARGET)"
clean:
rm -f "$(OBJ)"