Add new yuv444 pixfmts to avcodec_align_dimensions2
[libav.git] / common.mak
CommitLineData
8b2121e3
MR
1#
2# common bits used by all libraries
3#
4
451db983
MR
5# first so "all" becomes default target
6all: all-yes
0e32c8c6 7
c5662879
DB
8OBJS-$(HAVE_MMX) += $(MMX-OBJS-yes)
9
6ccf540f
DB
10OBJS += $(OBJS-yes)
11FFLIBS := $(FFLIBS-yes) $(FFLIBS)
12TESTPROGS += $(TESTPROGS-yes)
8b2121e3 13
deb3ed01
MR
14FFEXTRALIBS := $(FFLIBS:%=-l%$(BUILDSUF)) $(EXTRALIBS)
15FFLDFLAGS := $(ALLFFLIBS:%=-Llib%) $(LDFLAGS)
8b2121e3 16
deb3ed01
MR
17EXAMPLES := $(EXAMPLES:%=$(SUBDIR)%-example$(EXESUF))
18OBJS := $(sort $(OBJS:%=$(SUBDIR)%))
19TESTOBJS := $(TESTOBJS:%=$(SUBDIR)%) $(TESTPROGS:%=$(SUBDIR)%-test.o)
20TESTPROGS := $(TESTPROGS:%=$(SUBDIR)%-test$(EXESUF))
21HOSTOBJS := $(HOSTPROGS:%=$(SUBDIR)%.o)
22HOSTPROGS := $(HOSTPROGS:%=$(SUBDIR)%$(HOSTEXESUF))
8b2121e3 23
798b2646 24DEP_LIBS := $(foreach NAME,$(FFLIBS),lib$(NAME)/$($(CONFIG_SHARED:yes=S)LIBNAME))
76ca42a8 25
7b5e8a27 26ALLHEADERS := $(subst $(SRC_DIR)/,$(SUBDIR),$(wildcard $(SRC_DIR)/*.h $(SRC_DIR)/$(ARCH)/*.h))
deb3ed01
MR
27SKIPHEADERS += $(ARCH_HEADERS:%=$(ARCH)/%) $(SKIPHEADERS-)
28SKIPHEADERS := $(SKIPHEADERS:%=$(SUBDIR)%)
95f2c769 29checkheaders: $(filter-out $(SKIPHEADERS:.h=.ho),$(ALLHEADERS:.h=.ho))
8b2121e3 30
de4070b5
MR
31$(HOSTOBJS): %.o: %.c
32 $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
33
34$(HOSTPROGS): %$(HOSTEXESUF): %.o
35 $(HOSTCC) $(HOSTLDFLAGS) -o $@ $< $(HOSTLIBS)
36
a482e61b 37CLEANSUFFIXES = *.d *.o *~ *.ho *.map *.ver
79de9c83 38DISTCLEANSUFFIXES = *.pc
8e8a67fa 39LIBSUFFIXES = *.a *.lib *.so *.so.* *.dylib *.dll *.def *.dll.a *.exp
76a448ed 40
2f97b12e 41-include $(wildcard $(OBJS:.o=.d) $(TESTOBJS:.o=.d))