Mercurial > mplayer.hg
comparison subdir.mak @ 29671:3f5e7b22b2a6
sync with FFmpeg build: BUILD_STATIC --> CONFIG_STATIC
author | diego |
---|---|
date | Thu, 24 Sep 2009 09:47:36 +0000 |
parents | cfdba9b5abba |
children | bc094de7968e |
comparison
equal
deleted
inserted
replaced
29670:2e3751815a21 | 29671:3f5e7b22b2a6 |
---|---|
3 include $(SUBDIR)../common.mak | 3 include $(SUBDIR)../common.mak |
4 | 4 |
5 LIBVERSION := $(lib$(NAME)_VERSION) | 5 LIBVERSION := $(lib$(NAME)_VERSION) |
6 LIBMAJOR := $(lib$(NAME)_VERSION_MAJOR) | 6 LIBMAJOR := $(lib$(NAME)_VERSION_MAJOR) |
7 | 7 |
8 ifeq ($(BUILD_STATIC),yes) | 8 ifeq ($(CONFIG_STATIC),yes) |
9 all: $(SUBDIR)$(LIBNAME) | 9 all: $(SUBDIR)$(LIBNAME) |
10 | 10 |
11 install-libs: install-lib$(NAME)-static | 11 install-libs: install-lib$(NAME)-static |
12 | 12 |
13 $(SUBDIR)$(LIBNAME): $(OBJS) | 13 $(SUBDIR)$(LIBNAME): $(OBJS) |
16 $(RANLIB) $@ | 16 $(RANLIB) $@ |
17 endif | 17 endif |
18 | 18 |
19 INCINSTDIR := $(INCDIR)/lib$(NAME) | 19 INCINSTDIR := $(INCDIR)/lib$(NAME) |
20 | 20 |
21 THIS_LIB := $(SUBDIR)$($(BUILD_SHARED:yes=S)LIBNAME) | 21 THIS_LIB := $(SUBDIR)$($(CONFIG_SHARED:yes=S)LIBNAME) |
22 | 22 |
23 define RULES | 23 define RULES |
24 $(SUBDIR)%$(EXESUF): $(SUBDIR)%.o | 24 $(SUBDIR)%$(EXESUF): $(SUBDIR)%.o |
25 $(CC) $(FFLDFLAGS) -o $$@ $$^ -l$(FULLNAME) $(FFEXTRALIBS) $$(ELIBS) | 25 $(CC) $(FFLDFLAGS) -o $$@ $$^ -l$(FULLNAME) $(FFEXTRALIBS) $$(ELIBS) |
26 | 26 |
42 | 42 |
43 distclean:: clean | 43 distclean:: clean |
44 rm -f $(addprefix $(SUBDIR),$(DISTCLEANSUFFIXES)) \ | 44 rm -f $(addprefix $(SUBDIR),$(DISTCLEANSUFFIXES)) \ |
45 $(addprefix $(SUBDIR), $(foreach suffix,$(DISTCLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS)))) | 45 $(addprefix $(SUBDIR), $(foreach suffix,$(DISTCLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS)))) |
46 | 46 |
47 ifdef BUILD_SHARED | 47 ifdef CONFIG_SHARED |
48 all: $(SUBDIR)$(SLIBNAME) | 48 all: $(SUBDIR)$(SLIBNAME) |
49 | 49 |
50 install-libs: install-lib$(NAME)-shared | 50 install-libs: install-lib$(NAME)-shared |
51 | 51 |
52 $(SUBDIR)$(SLIBNAME): $(SUBDIR)$(SLIBNAME_WITH_MAJOR) | 52 $(SUBDIR)$(SLIBNAME): $(SUBDIR)$(SLIBNAME_WITH_MAJOR) |