Skip to content
Snippets Groups Projects
Makefile 1.29 KiB
Newer Older
  • Learn to ignore specific revisions
  • Clément Bœsch's avatar
    Clément Bœsch committed
    # use pkg-config for getting CFLAGS and LDLIBS
    
    FFMPEG_LIBS=    libavdevice                        \
                    libavformat                        \
                    libavfilter                        \
                    libavcodec                         \
    
    CFLAGS += -Wall -g
    
    CFLAGS := $(shell pkg-config --cflags $(FFMPEG_LIBS)) $(CFLAGS)
    LDLIBS := $(shell pkg-config --libs $(FFMPEG_LIBS)) $(LDLIBS)
    
                    demuxing                           \
    
                    filtering_video                    \
                    filtering_audio                    \
                    metadata                           \
                    muxing                             \
    
                    resampling_audio                   \
    
                    scaling_video                      \
    
    
    OBJS=$(addsuffix .o,$(EXAMPLES))
    
    
    # the following examples make explicit use of the math library
    decoding_encoding: LDLIBS += -lm
    muxing:            LDLIBS += -lm
    
    
    	$(RM) test*.pgm test.h264 test.mp2 test.sw test.mpg
    
    	$(RM) $(EXAMPLES) $(OBJS)