annotate Makefile @ 28:07191bec33a2 libavutil

move common parts of makefiles into common.mak
author mru
date Mon, 13 Feb 2006 12:53:25 +0000
parents 3e908b79ab11
children 664e2d2b92b9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
1 #
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
2 # libavutil Makefile
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
3 #
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
4 include ../config.mak
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
5
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
6 # NOTE: -I.. is needed to include config.h
22
3b56407b3f96 On MinGW it is not possible to build shared and static libraries at once.
diego
parents: 21
diff changeset
7 CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -DBUILD_AVUTIL -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
0
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
8
21
734ef282845e Simplify LDFLAGS handling for MinGW.
diego
parents: 20
diff changeset
9 #FIXME: This should be in configure/config.mak
734ef282845e Simplify LDFLAGS handling for MinGW.
diego
parents: 20
diff changeset
10 ifeq ($(CONFIG_WIN32),yes)
22
3b56407b3f96 On MinGW it is not possible to build shared and static libraries at once.
diego
parents: 21
diff changeset
11 LDFLAGS=-Wl,--output-def,$(@:.dll=.def),--out-implib,lib$(SLIBNAME:$(SLIBSUF)=.dll.a)
21
734ef282845e Simplify LDFLAGS handling for MinGW.
diego
parents: 20
diff changeset
12 endif
734ef282845e Simplify LDFLAGS handling for MinGW.
diego
parents: 20
diff changeset
13
0
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
14 OBJS= mathematics.o \
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
15 integer.o \
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
16 rational.o \
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
17 intfloat_readwrite.o \
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
18
28
07191bec33a2 move common parts of makefiles into common.mak
mru
parents: 27
diff changeset
19 HEADERS = avutil.h common.h mathematics.h integer.h rational.h \
07191bec33a2 move common parts of makefiles into common.mak
mru
parents: 27
diff changeset
20 intfloat_readwrite.h
0
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
21
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
22 ifeq ($(TARGET_ARCH_SPARC64),yes)
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
23 CFLAGS+= -mcpu=ultrasparc -mtune=ultrasparc
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
24 endif
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
25
17
314e61f57c42 Move library name generation to configure, simplifies build system a bit more.
diego
parents: 16
diff changeset
26 NAME=avutil
28
07191bec33a2 move common parts of makefiles into common.mak
mru
parents: 27
diff changeset
27 SUBDIR = libavutil
0
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
28 ifeq ($(BUILD_SHARED),yes)
16
0e94608e337f Create symbolic links for all library sonames and clean up Makefiles.
diego
parents: 14
diff changeset
29 LIBVERSION=$(LAVUVERSION)
0e94608e337f Create symbolic links for all library sonames and clean up Makefiles.
diego
parents: 14
diff changeset
30 LIBMAJOR=$(LAVUMAJOR)
0
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
31 endif
ee8f44bb7c4d libavutil: Utility code from libavcodec moved to a separate library.
al
parents:
diff changeset
32
28
07191bec33a2 move common parts of makefiles into common.mak
mru
parents: 27
diff changeset
33 include $(SRC_PATH)/common.mak