shithub: openh264

ref: 616dc87feb637f72b881936e5d55d5ea78f5812a
dir: /codec/console/enc/targets.mk/

View raw version
H264ENC_PREFIX=H264ENC
H264ENC_SRCDIR=codec/console/enc
H264ENC_CPP_SRCS=\
	$(H264ENC_SRCDIR)/./src/read_config.cpp\
	$(H264ENC_SRCDIR)/./src/welsenc.cpp\

H264ENC_OBJS += $(H264ENC_CPP_SRCS:.cpp=.o)
ifeq ($(USE_ASM), Yes)
H264ENC_ASM_SRCS=\

H264ENC_OBJS += $(H264ENC_ASM_SRCS:.asm=.o)
endif

OBJS += $(H264ENC_OBJS)
$(H264ENC_SRCDIR)/./src/read_config.o: $(H264ENC_SRCDIR)/./src/read_config.cpp
	$(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(H264ENC_CFLAGS) $(H264ENC_INCLUDES) -c -o $(H264ENC_SRCDIR)/./src/read_config.o $(H264ENC_SRCDIR)/./src/read_config.cpp

$(H264ENC_SRCDIR)/./src/welsenc.o: $(H264ENC_SRCDIR)/./src/welsenc.cpp
	$(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(H264ENC_CFLAGS) $(H264ENC_INCLUDES) -c -o $(H264ENC_SRCDIR)/./src/welsenc.o $(H264ENC_SRCDIR)/./src/welsenc.cpp

h264enc: $(H264ENC_OBJS) $(LIBS) $(H264ENC_LIBS)
	$(CXX) -o $@  $(H264ENC_OBJS) $(H264ENC_LDFLAGS) $(H264ENC_LIBS) $(LDFLAGS) $(LIBS)

binaries: h264enc
BINARIES += h264enc