Revision 1db54e20

View differences:

Makefile
11 11
       -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
12 12
LDFLAGS+= -g
13 13

  
14
ifeq ($(TARGET_GPROF),yes)
15
CFLAGS+=-p
16
LDFLAGS+=-p
17
endif
18

  
19 14
MANPAGES=doc/ffmpeg.1
20 15
PROGS_G+=ffmpeg_g$(EXESUF)
21 16
PROGS+=ffmpeg$(EXESUF)
common.mak
5 5
SRC_DIR = $(SRC_PATH)/lib$(NAME)
6 6
VPATH = $(SRC_DIR)
7 7

  
8
ifeq ($(TARGET_GPROF),yes)
9
CFLAGS+=-p
10
LDFLAGS+=-p
11
endif
12

  
13 8
SRCS := $(OBJS:.o=.c) $(ASM_OBJS:.o=.S) $(CPPOBJS:.o=.cpp)
14 9
OBJS := $(OBJS) $(ASM_OBJS) $(CPPOBJS)
15 10
STATIC_OBJS := $(OBJS) $(STATIC_OBJS)
configure
1448 1448
    fi
1449 1449
fi
1450 1450

  
1451
if test "$gprof" = "yes" ; then
1452
    CFLAGS="$CFLAGS -p"
1453
    LDFLAGS="$LDFLAGS -p"
1454
fi
1455

  
1451 1456
if test x"$bindir" = x""; then
1452 1457
    bindir="${prefix}/bin"
1453 1458
fi
......
1680 1685
  fi
1681 1686
fi
1682 1687
if test "$gprof" = "yes" ; then
1683
  echo "TARGET_GPROF=yes" >> config.mak
1684 1688
  echo "#define HAVE_GPROF 1" >> $TMPH
1685 1689
fi
1686 1690
if test "$localtime_r" = "yes" ; then

Also available in: Unified diff