Revision cabad2ad Makefile

View differences:

Makefile
20 20

  
21 21
ifeq ($(BUILD_SHARED),yes)
22 22
FFMPEG_LIB=-Llibavcodec -lffmpeg
23
DEP_FFMPEG_LIB=
23 24
else
24 25
FFMPEG_LIB=libavcodec/libavcodec.a
26
DEP_FFMPEG_LIB=libavcodec/libavcodec.a
25 27
endif
26 28

  
27 29
all: lib $(PROG)
......
30 32
	$(MAKE) -C libavcodec all
31 33
	$(MAKE) -C libav all
32 34

  
33
ffmpeg$(EXE): ffmpeg.o libav/libav.a 
35
ffmpeg$(EXE): ffmpeg.o libav/libav.a $(DEP_FFMPEG_LIB)
34 36
	$(CC) $(LDFLAGS) -lm -o $@ $^ $(FFMPEG_LIB)
35 37

  
36
ffserver$(EXE): ffserver.o libav/libav.a 
38
ffserver$(EXE): ffserver.o libav/libav.a $(DEP_FFMPEG_LIB)
37 39
	$(CC) $(LDFLAGS) -lm -o $@ $^ $(FFMPEG_LIB)
38 40

  
39 41
ffplay: ffmpeg$(EXE)

Also available in: Unified diff