annotate libswscale/Makefile @ 18861:8579acff875e

Move postproc ---> libswscale
author lucabe
date Fri, 30 Jun 2006 12:00:31 +0000
parents
children f0e9de2b3780
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18861
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
1
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
2 include ../config.mak
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
3
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
4 SWSLIB = libswscale.a
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
5
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
6 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
7
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
8 SWSOBJS=$(SWSSRCS:.c=.o)
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
9
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
10 ifeq ($(TARGET_ALTIVEC),yes)
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
11 SWSOBJS += yuv2rgb_altivec.o
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
12 endif
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
13
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
14 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
15 # -I/usr/X11R6/include/
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
16
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
17 .SUFFIXES: .c .o
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
18
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
19 # .PHONY: all clean
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
20
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
21 .c.o:
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
22 $(CC) -c $(CFLAGS) -I.. -o $@ $<
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
23
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
24 all: $(SWSLIB)
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
25
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
26 $(SWSLIB): $(SWSOBJS)
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
27 $(AR) r $(SWSLIB) $(SWSOBJS)
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
28 $(RANLIB) $(SWSLIB)
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
29
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
30 clean:
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
31 rm -f *.o *.a *~ *.so cs_test swscale-example
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
32
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
33 distclean: clean
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
34 rm -f .depend
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
35
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
36 dep: depend
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
37
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
38 depend:
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
39 $(CC) -MM $(CFLAGS) $(SWSSRCS) 1>.depend
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
40
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
41 cs_test: cs_test.o $(SWSLIB)
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
42 $(CC) cs_test.o $(SWSLIB) ../cpudetect.o -DFOR_MENCODER ../mp_msg.c -o cs_test -W -Wall
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
43
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
44 swscale-example: swscale-example.o $(SWSLIB)
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
45 $(CC) swscale-example.o $(SWSLIB) ../libmpcodecs/img_format.o -lm -o swscale-example -W -Wall
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
46 #
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
47 # include dependency files if they exist
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
48 #
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
49 ifneq ($(wildcard .depend),)
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
50 include .depend
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
51 endif
8579acff875e Move postproc ---> libswscale
lucabe
parents:
diff changeset
52