aboutsummaryrefslogtreecommitdiffstats
path: root/libav/Makefile
blob: ecb91e142ff5594dad7b4cd52bba30484d2cf3d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
include ../config.mak

VPATH=$(SRC_PATH)/libav
PWD=$(shell pwd)

CFLAGS= $(OPTFLAGS) -Wall -g -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H

OBJS= utils.o 

# mux and demuxes
OBJS+=mpeg.o mpegts.o ffm.o crc.o img.o raw.o rm.o asf.o \
      avienc.o avidec.o wav.o swf.o au.o gif.o mov.o jpeg.o
# file I/O
OBJS+= avio.o aviobuf.o file.o 

ifeq ($(CONFIG_GRAB),yes)
OBJS+= grab.o audio.o 
endif

ifneq ($(CONFIG_WIN32),yes)
OBJS+= udp.o http.o
endif

LIB= libav.a

all: $(LIB)

$(LIB): $(OBJS)
	rm -f $@
	$(AR) rcs $@ $(OBJS)

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $< 

clean: 
	rm -f *.o *~ *.a