Makefile 560 Bytes
Newer Older
1
include ../config.mak
Fabrice Bellard's avatar
Fabrice Bellard committed
2 3 4 5 6

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

CFLAGS= $(OPTFLAGS) -Wall -g -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H
Fabrice Bellard's avatar
merge  
Fabrice Bellard committed
7

Fabrice Bellard's avatar
Fabrice Bellard committed
8
OBJS= rm.o mpeg.o asf.o avienc.o jpeg.o swf.o wav.o raw.o \
Fabrice Bellard's avatar
merge  
Fabrice Bellard committed
9 10
	 avidec.o ffm.o \
	 avio.o aviobuf.o utils.o \
Fabrice Bellard's avatar
Fabrice Bellard committed
11
	 file.o img.o au.o gif.o mov.o crc.o
Fabrice Bellard's avatar
Fabrice Bellard committed
12 13 14 15

ifeq ($(CONFIG_GRAB),yes)
OBJS+= grab.o audio.o 
endif
Fabrice Bellard's avatar
merge  
Fabrice Bellard committed
16

Fabrice Bellard's avatar
Fabrice Bellard committed
17 18 19 20
ifneq ($(CONFIG_WIN32),yes)
OBJS+= udp.o http.o
endif

Fabrice Bellard's avatar
merge  
Fabrice Bellard committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34
LIB= libav.a

all: $(LIB)

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

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

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