- Timestamp:
- Jun 29, 2016 2:10:49 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/third_party/build/yuv/Makefile
r5361 r5362 110 110 depend: 111 111 $(MAKE) -f $(RULES_MAK) APP=YUV app=libyuv $@ 112 113 114 include ../../../build.mak115 include ../../../build/common.mak116 117 export LIBDIR := ../../lib118 119 RULES_MAK := $(PJDIR)/build/rules.mak120 121 export YUV_LIB := libyuv-$(TARGET_NAME)$(LIBEXT)122 123 ifeq ($(PJ_SHARED_LIBRARIES),)124 else125 export YUV_SONAME := libyuv.$(SHLIB_SUFFIX)126 export YUV_SHLIB := $(YUV_SONAME).$(PJ_VERSION_MAJOR)127 endif128 129 ###############################################################################130 # Gather all flags.131 #132 export _CFLAGS := $(CC_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \133 $(CFLAGS) $(CC_INC). $(CC_INC)../../yuv/include \134 $(CC_INC)../../../pjlib/include135 export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \136 $(HOST_CXXFLAGS) $(CXXFLAGS)137 export _LDFLAGS := $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \138 $(LDFLAGS)139 140 export YUV_SRCDIR = ../../yuv/source141 export YUV_OBJS = \142 compare.o \143 compare_common.o \144 compare_gcc.o \145 compare_neon64.o \146 compare_neon.o \147 compare_win.o \148 convert_argb.o \149 convert.o \150 convert_from_argb.o \151 convert_from.o \152 convert_jpeg.o \153 convert_to_argb.o \154 convert_to_i420.o \155 cpu_id.o \156 mjpeg_decoder.o \157 mjpeg_validate.o \158 planar_functions.o \159 rotate_any.o \160 rotate_argb.o \161 rotate.o \162 rotate_common.o \163 rotate_gcc.o \164 rotate_mips.o \165 rotate_neon64.o \166 rotate_neon.o \167 rotate_win.o \168 row_any.o \169 row_common.o \170 row_gcc.o \171 row_mips.o \172 row_neon64.o \173 row_neon.o \174 row_win.o \175 scale_any.o \176 scale_argb.o \177 scale.o \178 scale_common.o \179 scale_gcc.o \180 scale_mips.o \181 scale_neon64.o \182 scale_neon.o \183 scale_win.o \184 video_common.o185 186 export YUV_CFLAGS = -fomit-frame-pointer $(_CFLAGS)187 export YUV_CXXFLAGS = $(YUV_CFLAGS)188 189 190 export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT191 ###############################################################################192 # Main entry193 #194 # $(TARGET) is defined in os-$(OS_NAME).mak file in current directory.195 #196 TARGETS := $(YUV_LIB) $(YUV_SONAME)197 198 all: $(TARGETS)199 200 doc:201 cd .. && doxygen docs/doxygen.cfg202 203 dep: depend204 distclean: realclean205 206 .PHONY: all dep depend clean realclean distclean207 .PHONY: $(TARGETS)208 .PHONE: $(YUV_LIB) $(YUV_SONAME)209 210 libyuv: $(YUV_LIB)211 $(YUV_SONAME): $(YUV_LIB)212 $(YUV_LIB) $(YUV_SONAME):213 $(MAKE) -f $(RULES_MAK) APP=YUV app=libyuv $(subst /,$(HOST_PSEP),$(LIBDIR)/$@)214 215 clean print_lib:216 $(MAKE) -f $(RULES_MAK) APP=YUV app=libyuv $@217 218 realclean:219 $(subst @@,$(subst /,$(HOST_PSEP),.yuv-$(TARGET_NAME).depend),$(HOST_RMR))220 221 $(MAKE) -f $(RULES_MAK) APP=YUV app=libyuv $@222 223 depend:224 $(MAKE) -f $(RULES_MAK) APP=YUV app=libyuv $@225 226 227 include ../../../build.mak228 include ../../../build/common.mak229 230 export LIBDIR := ../../lib231 232 RULES_MAK := $(PJDIR)/build/rules.mak233 234 export YUV_LIB := libyuv-$(TARGET_NAME)$(LIBEXT)235 236 ifeq ($(PJ_SHARED_LIBRARIES),)237 else238 export YUV_SONAME := libyuv.$(SHLIB_SUFFIX)239 export YUV_SHLIB := $(YUV_SONAME).$(PJ_VERSION_MAJOR)240 endif241 242 ###############################################################################243 # Gather all flags.244 #245 export _CFLAGS := $(CC_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \246 $(CFLAGS) $(CC_INC). $(CC_INC)../../yuv/include \247 $(CC_INC)../../../pjlib/include248 export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \249 $(HOST_CXXFLAGS) $(CXXFLAGS)250 export _LDFLAGS := $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \251 $(LDFLAGS)252 253 export YUV_SRCDIR = ../../yuv/source254 export YUV_OBJS = \255 compare.o \256 compare_common.o \257 compare_gcc.o \258 compare_neon64.o \259 compare_neon.o \260 compare_win.o \261 convert_argb.o \262 convert.o \263 convert_from_argb.o \264 convert_from.o \265 convert_jpeg.o \266 convert_to_argb.o \267 convert_to_i420.o \268 cpu_id.o \269 mjpeg_decoder.o \270 mjpeg_validate.o \271 planar_functions.o \272 rotate_any.o \273 rotate_argb.o \274 rotate.o \275 rotate_common.o \276 rotate_gcc.o \277 rotate_mips.o \278 rotate_neon64.o \279 rotate_neon.o \280 rotate_win.o \281 row_any.o \282 row_common.o \283 row_gcc.o \284 row_mips.o \285 row_neon64.o \286 row_neon.o \287 row_win.o \288 scale_any.o \289 scale_argb.o \290 scale.o \291 scale_common.o \292 scale_gcc.o \293 scale_mips.o \294 scale_neon64.o \295 scale_neon.o \296 scale_win.o \297 video_common.o298 299 export YUV_CFLAGS = -fomit-frame-pointer $(_CFLAGS)300 export YUV_CXXFLAGS = $(YUV_CFLAGS)301 302 303 export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT304 ###############################################################################305 # Main entry306 #307 # $(TARGET) is defined in os-$(OS_NAME).mak file in current directory.308 #309 TARGETS := $(YUV_LIB) $(YUV_SONAME)310 311 all: $(TARGETS)312 313 doc:314 cd .. && doxygen docs/doxygen.cfg315 316 dep: depend317 distclean: realclean318 319 .PHONY: all dep depend clean realclean distclean320 .PHONY: $(TARGETS)321 .PHONE: $(YUV_LIB) $(YUV_SONAME)322 323 libyuv: $(YUV_LIB)324 $(YUV_SONAME): $(YUV_LIB)325 $(YUV_LIB) $(YUV_SONAME):326 $(MAKE) -f $(RULES_MAK) APP=YUV app=libyuv $(subst /,$(HOST_PSEP),$(LIBDIR)/$@)327 328 clean print_lib:329 $(MAKE) -f $(RULES_MAK) APP=YUV app=libyuv $@330 331 realclean:332 $(subst @@,$(subst /,$(HOST_PSEP),.yuv-$(TARGET_NAME).depend),$(HOST_RMR))333 334 $(MAKE) -f $(RULES_MAK) APP=YUV app=libyuv $@335 336 depend:337 $(MAKE) -f $(RULES_MAK) APP=YUV app=libyuv $@338 339
Note: See TracChangeset
for help on using the changeset viewer.