Revision 37736979 Makefile

View differences:

Makefile
7 7
VPATH=$(SRC_PATH)
8 8

  
9 9
CFLAGS= $(OPTFLAGS) -Wall -g -I. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libav -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
10
LDFLAGS= -g
10
LDFLAGS+= -g -Wl,--warn-common
11

  
11 12
ifeq ($(TARGET_GPROF),yes)
12 13
CFLAGS+=-p
13 14
LDFLAGS+=-p
......
40 41
	$(MAKE) -C libavcodec all
41 42
	$(MAKE) -C libav all
42 43

  
43
ffmpeg$(EXE): ffmpeg.o $(DEP_LIBS)
44
ffmpeg_g$(EXE): ffmpeg.o $(DEP_LIBS)
44 45
	$(CC) $(LDFLAGS) -o $@ ffmpeg.o -L./libavcodec -L./libav \
45 46
              -lavformat -lavcodec $(EXTRALIBS)
46 47

  
48
ffmpeg$(EXE): ffmpeg_g$(EXE)
49
	$(STRIP) -o $@ $<
50

  
47 51
ffserver$(EXE): ffserver.o $(DEP_LIBS)
48
	$(CC) $(LDFLAGS) -o $@ ffserver.o -L./libavcodec -L./libav \
49
              -lavformat -lavcodec $(EXTRALIBS)
52
	$(CC) $(LDFLAGS) -Wl,-E -o $@ ffserver.o -L./libavcodec -L./libav \
53
              -lavformat -lavcodec -ldl $(EXTRALIBS) 
50 54

  
51 55
ffplay: ffmpeg$(EXE)
52 56
	ln -sf $< $@
......
59 63
	install -s -m 755 $(PROG) $(prefix)/bin
60 64
	ln -sf ffmpeg $(prefix)/bin/ffplay 
61 65

  
66
installlib:
67
	$(MAKE) -C libavcodec installlib
68
	$(MAKE) -C libav installlib
69

  
62 70
dep:	depend
63 71

  
64 72
depend:
......
68 76
	$(MAKE) -C libavcodec clean
69 77
	$(MAKE) -C libav clean
70 78
	$(MAKE) -C tests clean
71
	rm -f *.o *~ .depend gmon.out TAGS $(PROG) 
79
	rm -f *.o *~ .depend gmon.out TAGS ffmpeg_g$(EXE) $(PROG) 
72 80

  
73 81
distclean: clean
74 82
	$(MAKE) -C libavcodec distclean

Also available in: Unified diff