Files
UltraGrid/tools/Makefile
Martin Pulec 6ae7f268f0 video_codec: moved pixfmt convs to a separate file
Just the conversions grew to a significant amount so it is better to
split the file to two to keep the general video codec utility functions
in one file and the conversions in the another.
2023-03-16 14:26:22 +01:00

40 lines
994 B
Makefile

FLAGS ?= -O2 -g
SRCDIR ?= ..
COMMON_FLAGS = $(FLAGS) -D_GNU_SOURCE -I$(SRCDIR)/src/
MKDIR_P = mkdir -p
vpath %.c $(SRCDIR) $(SRCDIR)/tools
vpath %.cpp $(SRCDIR) $(SRCDIR)/tools
%.o : %.c
$(MKDIR_P) $(dir $@)
$(CC) $(COMMON_FLAGS) -c $< -o $@
%.o : %.cpp
$(MKDIR_P) $(dir $@)
$(CXX) -std=c++17 $(COMMON_FLAGS) -c $< -o $@
astat_test: astat.cpp src/compat/platform_pipe.o
c++ -g -DASTAT_DEBUG -DDEFINE_TEST_MAIN $(COMMON_FLAGS) $^ -pthread -o astat_test
astat_lib: astat.a
astat.a: astat.o src/compat/platform_pipe.o
ar rcs astat.a $^
convert: src/pixfmt_conv.o src/video_codec.o src/compat/platform_time.o convert.o src/debug.o src/utils/color_out.o src/utils/misc.o
$(CXX) $^ -o convert
decklink_temperature: decklink_temperature.cpp ext-deps/DeckLink/Linux/DeckLinkAPIDispatch.o
$(CXX) $^ -o $@
uyvy2yuv422p: uyvy2yuv422p.c
$(CC) -g -std=c99 -Wall $< -o $@
TARGETS=astat_lib astat_test convert decklink_temperature uyvy2yuv422p
all: $(TARGETS)
clean:
$(RM) $(TARGETS) *o