mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
work into the ffmpeg build system
Commited in SoC by Bobby Bingham on 2007-07-24 17:59:16 Originally committed as revision 11946 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
52bfefeb45
commit
782e83e21b
@ -1,24 +1,36 @@
|
|||||||
CC = gcc
|
include ../config.mak
|
||||||
CFLAGS = -g -I../libavcodec -I../libavutil
|
|
||||||
LIBS = ../libavcodec/libavcodec.a ../libavutil/libavutil.a -lm -lSDL
|
|
||||||
|
|
||||||
OBJECTS = avfilter.o \
|
CFLAGS+=-I$(SRC_PATH)/libavcodec
|
||||||
avfiltergraph.o \
|
|
||||||
vsrc_dummy.o \
|
|
||||||
vsrc_ppm.o \
|
|
||||||
vo_sdl.o \
|
|
||||||
vf_crop.o \
|
|
||||||
vf_passthrough.o \
|
|
||||||
vf_rgb2bgr.o \
|
|
||||||
vf_slicify.o \
|
|
||||||
|
|
||||||
all: filter_test
|
OBJS = avfilter.o \
|
||||||
|
avfiltergraph.o \
|
||||||
|
|
||||||
clean:
|
# TODO: real conditional compilation
|
||||||
rm -f filter_test $(OBJECTS)
|
OBJS-yes = vsrc_dummy.o \
|
||||||
|
vsrc_ppm.o \
|
||||||
|
vo_sdl.o \
|
||||||
|
vf_crop.o \
|
||||||
|
vf_passthrough.o \
|
||||||
|
vf_rgb2bgr.o \
|
||||||
|
vf_slicify.o \
|
||||||
|
|
||||||
filter_test: $(OBJECTS) filter_test.c
|
HEADERS = avfilter.h
|
||||||
$(CC) $(CFLAGS) $^ -o $@ $(LIBS)
|
|
||||||
|
|
||||||
$(OBJECTS): %.o: %.c
|
EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
|
||||||
$(CC) $(CFLAGS) -c $<
|
|
||||||
|
NAME=avfilter
|
||||||
|
LIBVERSION=$(LAVFILTERVERSION)
|
||||||
|
LIBMAJOR=$(LAVFILTERMAJOR)
|
||||||
|
|
||||||
|
include ../common.mak
|
||||||
|
|
||||||
|
clean::
|
||||||
|
rm -f \
|
||||||
|
filter_test $(TESTS)
|
||||||
|
|
||||||
|
tests: filter_test
|
||||||
|
|
||||||
|
filter_test: filter_test.o $(LIB)
|
||||||
|
$(CC) $(CFLAGS) $< -o $@ $(LIB) -lm -lSDL
|
||||||
|
|
||||||
|
.PHONY: tests
|
||||||
|
Loading…
Reference in New Issue
Block a user