Revision 782e83e2

View differences:

libavfilter/Makefile
1
CC = gcc
2
CFLAGS = -g -I../libavcodec -I../libavutil
3
LIBS = ../libavcodec/libavcodec.a ../libavutil/libavutil.a -lm -lSDL
4

  
5
OBJECTS = avfilter.o          \
6
          avfiltergraph.o     \
7
          vsrc_dummy.o        \
8
		  vsrc_ppm.o          \
9
		  vo_sdl.o            \
10
		  vf_crop.o           \
11
		  vf_passthrough.o    \
12
		  vf_rgb2bgr.o        \
13
		  vf_slicify.o        \
14

  
15
all: filter_test
16

  
17
clean:
18
	rm -f filter_test $(OBJECTS)
19

  
20
filter_test: $(OBJECTS) filter_test.c
21
	$(CC) $(CFLAGS) $^ -o $@ $(LIBS)
22

  
23
$(OBJECTS): %.o: %.c
24
	$(CC) $(CFLAGS) -c $<
1
include ../config.mak
2

  
3
CFLAGS+=-I$(SRC_PATH)/libavcodec
4

  
5
OBJS = avfilter.o \
6
       avfiltergraph.o \
7

  
8
# TODO: real conditional compilation
9
OBJS-yes = vsrc_dummy.o \
10
           vsrc_ppm.o \
11
           vo_sdl.o \
12
           vf_crop.o \
13
           vf_passthrough.o \
14
           vf_rgb2bgr.o \
15
           vf_slicify.o \
16

  
17
HEADERS = avfilter.h
18

  
19
EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
20

  
21
NAME=avfilter
22
LIBVERSION=$(LAVFILTERVERSION)
23
LIBMAJOR=$(LAVFILTERMAJOR)
24

  
25
include ../common.mak
26

  
27
clean::
28
	rm -f \
29
	   filter_test $(TESTS)
30

  
31
tests: filter_test
32

  
33
filter_test: filter_test.o $(LIB)
34
	$(CC) $(CFLAGS) $< -o $@ $(LIB) -lm -lSDL
35

  
36
.PHONY: tests

Also available in: Unified diff