]> git.sesse.net Git - ffmpeg/blob - postproc/Makefile
get ride of perl and sort in ffserver regtest (and avoid problem with behavior of...
[ffmpeg] / postproc / Makefile
1
2 include ../config.mak
3
4 SWSLIB = libswscale.a
5
6 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c
7
8 SWSOBJS=$(SWSSRCS:.c=.o)
9
10 ifeq ($(TARGET_ALTIVEC),yes)
11 SWSOBJS +=  yuv2rgb_altivec.o
12 endif
13
14 CFLAGS  = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
15 # -I/usr/X11R6/include/
16
17 .SUFFIXES: .c .o
18
19 # .PHONY: all clean
20
21 .c.o:
22         $(CC) -c $(CFLAGS) -I.. -o $@ $<
23
24 all:    $(SWSLIB)
25
26 $(SWSLIB):     $(SWSOBJS)
27         $(AR) r $(SWSLIB) $(SWSOBJS)
28         $(RANLIB) $(SWSLIB)
29
30 clean:
31         rm -f *.o *.a *~ *.so cs_test swscale-example
32
33 distclean: clean
34         rm -f .depend
35
36 dep:    depend
37
38 depend:
39         $(CC) -MM $(CFLAGS) $(SWSSRCS) 1>.depend
40
41 cs_test: cs_test.o $(SWSLIB)
42         $(CC) cs_test.o $(SWSLIB) ../cpudetect.o -DFOR_MENCODER ../mp_msg.c -o cs_test -W -Wall
43
44 swscale-example: swscale-example.o $(SWSLIB)
45         $(CC) swscale-example.o $(SWSLIB) ../libmpcodecs/img_format.o -lm -o swscale-example -W -Wall
46 #
47 # include dependency files if they exist
48 #
49 ifneq ($(wildcard .depend),)
50 include .depend
51 endif
52