avutil: Remove unused arbitrary precision integer code.
[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
71c61f62 14FFEXTRALIBS := $(addprefix -l,$(addsuffix $(BUILDSUF),$(FFLIBS))) $(EXTRALIBS)
798b2646 15FFLDFLAGS := $(addprefix -Llib,$(ALLFFLIBS)) $(LDFLAGS)
8b2121e3 16
43a0cb7c 17EXAMPLES := $(addprefix $(SUBDIR),$(addsuffix -example$(EXESUF),$(EXAMPLES)))
7acc0104 18OBJS := $(addprefix $(SUBDIR),$(sort $(OBJS)))
2f97b12e 19TESTOBJS := $(addprefix $(SUBDIR),$(TESTOBJS) $(TESTPROGS:%=%-test.o))
7304c2c4 20TESTPROGS := $(addprefix $(SUBDIR),$(addsuffix -test$(EXESUF),$(TESTPROGS)))
de4070b5
MR
21HOSTOBJS := $(addprefix $(SUBDIR),$(addsuffix .o,$(HOSTPROGS)))
22HOSTPROGS := $(addprefix $(SUBDIR),$(addsuffix $(HOSTEXESUF),$(HOSTPROGS)))
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))
f89c1402 27SKIPHEADERS += $(addprefix $(ARCH)/,$(ARCH_HEADERS))
9b55e2e7 28SKIPHEADERS := $(addprefix $(SUBDIR),$(SKIPHEADERS-) $(SKIPHEADERS))
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))