mirror of https://github.com/mpv-player/mpv
25 lines
484 B
Makefile
25 lines
484 B
Makefile
|
FILTERS = showqscale telecine tile
|
||
|
COMMON = filterutils.o
|
||
|
|
||
|
OBJECTS = $(patsubst %,%.o,$(FILTERS)) $(COMMON)
|
||
|
HEADERS = $(wildcard *.h)
|
||
|
OUT = $(patsubst %,%.so,$(FILTERS))
|
||
|
|
||
|
CFLAGS ?= -Wall -Wextra -O3 -march=native -mtune=native
|
||
|
|
||
|
CPPFLAGS += -I../../libmpcodecs
|
||
|
CFLAGS += -fPIC
|
||
|
LDFLAGS += -shared -fPIC
|
||
|
|
||
|
all: $(OUT)
|
||
|
|
||
|
clean:
|
||
|
$(RM) $(OBJECTS) $(OUT)
|
||
|
|
||
|
%.so: %.o $(COMMON)
|
||
|
$(CC) $(LDFLAGS) $(LIBS) -o $@ $(COMMON) $<
|
||
|
|
||
|
# FIXME replace this by real dependency tracking
|
||
|
%.o: %.c $(HEADERS)
|
||
|
|