annotate postproc/Makefile @ 14641:3942af0dcca6

sync 1.867
author wight
date Fri, 04 Feb 2005 08:51:38 +0000
parents d2aef091743c
children ce1ba8fd57e7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
1
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
2 include ../config.mak
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
3
7946
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
4 SWSLIB = libswscale.a
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
5
7946
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
6 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c
12698
d2aef091743c altivec yuv->rgb converter
michael
parents: 12632
diff changeset
7
7946
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
8 SWSOBJS=$(SWSSRCS:.c=.o)
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
9
12698
d2aef091743c altivec yuv->rgb converter
michael
parents: 12632
diff changeset
10 ifeq ($(TARGET_ALTIVEC),yes)
d2aef091743c altivec yuv->rgb converter
michael
parents: 12632
diff changeset
11 SWSOBJS += yuv2rgb_altivec.o
d2aef091743c altivec yuv->rgb converter
michael
parents: 12632
diff changeset
12 endif
d2aef091743c altivec yuv->rgb converter
michael
parents: 12632
diff changeset
13
7073
b69ddd4d3bb9 removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents: 6603
diff changeset
14 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
15 # -I/usr/X11R6/include/
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
16
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
17 .SUFFIXES: .c .o
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
18
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
19 # .PHONY: all clean
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
20
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
21 .c.o:
9402
1e8f3293a822 avoid #include "../
michael
parents: 8231
diff changeset
22 $(CC) -c $(CFLAGS) -I.. -o $@ $<
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
23
9426
c9dcb67e9638 moving postprocess code to libavcodec
michael
parents: 9402
diff changeset
24 all: $(SWSLIB)
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
25
7946
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
26 $(SWSLIB): $(SWSOBJS)
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
27 $(AR) r $(SWSLIB) $(SWSOBJS)
12632
80973aa180a5 ranlib cleanup by Dan Christiansen
alex
parents: 10496
diff changeset
28 $(RANLIB) $(SWSLIB)
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
29
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
30 clean:
10496
5fd0864becc3 remove cs_test and swscale-example too
alex
parents: 10174
diff changeset
31 rm -f *.o *.a *~ *.so cs_test swscale-example
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
32
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
33 distclean:
10496
5fd0864becc3 remove cs_test and swscale-example too
alex
parents: 10174
diff changeset
34 rm -f Makefile.bak *.o *.a *~ *.so .depend cs_test swscale-example
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
35
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
36 dep: depend
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
37
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
38 depend:
9885
98712065a08d 10l patch by (Andreas Hess <jaska at gmx dot net>)
michael
parents: 9426
diff changeset
39 $(CC) -MM $(CFLAGS) $(SWSSRCS) 1>.depend
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
40
10174
276403619c9a cs_test cleanup and fix compilation if gui enabled
alex
parents: 9987
diff changeset
41 cs_test: cs_test.o $(SWSLIB)
276403619c9a cs_test cleanup and fix compilation if gui enabled
alex
parents: 9987
diff changeset
42 $(CC) cs_test.o $(SWSLIB) ../cpudetect.o -DFOR_MENCODER ../mp_msg.c -o cs_test -W -Wall
6603
6eab60ea6c11 colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents: 3143
diff changeset
43
9921
61057de81510 mplayer idependant (not really yet) swscale example
michael
parents: 9885
diff changeset
44 swscale-example: swscale-example.o $(SWSLIB)
9987
988c2ffc5bc1 remove remaining cpudetect dependancy
michael
parents: 9921
diff changeset
45 $(CC) swscale-example.o $(SWSLIB) ../libmpcodecs/img_format.o -lm -o swscale-example -W -Wall
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
46 #
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
47 # include dependency files if they exist
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
48 #
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
49 ifneq ($(wildcard .depend),)
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
50 include .depend
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
51 endif
12698
d2aef091743c altivec yuv->rgb converter
michael
parents: 12632
diff changeset
52