2013-12-10 09:19:42 +01:00
|
|
|
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)
|
2013-12-10 11:57:32 +01:00
|
|
|
ifeq ($(USE_ASM), Yes)
|
2013-12-10 09:19:42 +01:00
|
|
|
H264ENC_ASM_SRCS=\
|
|
|
|
|
|
|
|
H264ENC_OBJS += $(H264ENC_ASM_SRCS:.asm=.o)
|
|
|
|
endif
|
|
|
|
|
|
|
|
OBJS += $(H264ENC_OBJS)
|
2014-01-08 15:33:35 +01:00
|
|
|
$(H264ENC_SRCDIR)/%.o: $(H264ENC_SRCDIR)/%.cpp
|
|
|
|
$(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(H264ENC_CFLAGS) $(H264ENC_INCLUDES) -c -o $@ $<
|
2013-12-10 09:19:42 +01:00
|
|
|
|
2014-01-08 15:33:35 +01:00
|
|
|
$(H264ENC_SRCDIR)/%.o: $(H264ENC_SRCDIR)/%.asm
|
|
|
|
$(ASM) $(ASMFLAGS) $(ASM_INCLUDES) $(H264ENC_ASMFLAGS) $(H264ENC_ASM_INCLUDES) -o $@ $<
|
2013-12-10 09:19:42 +01:00
|
|
|
|
2014-01-08 15:18:01 +01:00
|
|
|
h264enc: $(H264ENC_OBJS) $(LIBS) $(H264ENC_LIBS) $(H264ENC_DEPS)
|
2013-12-10 09:19:42 +01:00
|
|
|
$(CXX) -o $@ $(H264ENC_OBJS) $(H264ENC_LDFLAGS) $(H264ENC_LIBS) $(LDFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
binaries: h264enc
|
|
|
|
BINARIES += h264enc
|