Statistics
| Branch: | Revision:

ffmpeg / postproc / Makefile @ 6d606c4f

History | View | Annotate | Download (994 Bytes)

1 44d01eea Nick Kurshev
2
include ../config.mak
3
4 9c9e467d Michael Niedermayer
SWSLIB = libswscale.a
5 44d01eea Nick Kurshev
6 9c9e467d Michael Niedermayer
SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c
7 a31de956 Michael Niedermayer
8 9c9e467d Michael Niedermayer
SWSOBJS=$(SWSSRCS:.c=.o)
9 44d01eea Nick Kurshev
10 a31de956 Michael Niedermayer
ifeq ($(TARGET_ALTIVEC),yes)
11
SWSOBJS +=  yuv2rgb_altivec.o
12
endif
13
14 b77eec85 Joey Parrish
CFLAGS  = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
15 44d01eea Nick Kurshev
# -I/usr/X11R6/include/
16
17
.SUFFIXES: .c .o
18
19
# .PHONY: all clean
20
21
.c.o:
22 9858f773 Michael Niedermayer
	$(CC) -c $(CFLAGS) -I.. -o $@ $<
23 44d01eea Nick Kurshev
24 bba9b16c Michael Niedermayer
all:    $(SWSLIB)
25 44d01eea Nick Kurshev
26 9c9e467d Michael Niedermayer
$(SWSLIB):     $(SWSOBJS)
27
	$(AR) r $(SWSLIB) $(SWSOBJS)
28 5ea951b7 Alex Beregszaszi
	$(RANLIB) $(SWSLIB)
29 44d01eea Nick Kurshev
30
clean:
31 7855ef1c Alex Beregszaszi
	rm -f *.o *.a *~ *.so cs_test swscale-example
32 44d01eea Nick Kurshev
33
distclean:
34 7855ef1c Alex Beregszaszi
	rm -f Makefile.bak *.o *.a *~ *.so .depend cs_test swscale-example
35 44d01eea Nick Kurshev
36
dep:    depend
37
38
depend:
39 8553d9f4 Andreas Ă–man
	$(CC) -MM $(CFLAGS) $(SWSSRCS) 1>.depend
40 44d01eea Nick Kurshev
41 f1846835 Alex Beregszaszi
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 a28ea2c0 Michael Niedermayer
44 c9b99ea6 Michael Niedermayer
swscale-example: swscale-example.o $(SWSLIB)
45 700490a4 Michael Niedermayer
	$(CC) swscale-example.o $(SWSLIB) ../libmpcodecs/img_format.o -lm -o swscale-example -W -Wall
46 44d01eea Nick Kurshev
#
47
# include dependency files if they exist
48
#
49
ifneq ($(wildcard .depend),)
50
include .depend
51
endif