annotate libpostproc/Makefile @ 900:52c26a143399 libavcodec

100l (sad8x8_x2 had params in wrong order)
author michaelni
date Tue, 03 Dec 2002 11:07:41 +0000
parents 47f44f256a3c
children 54aa0bb40e97
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
1
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
2 include ../config.mak
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
3
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
4 SWSLIB = libswscale.a
812
607e867a8be4 disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents: 790
diff changeset
5 ifeq ($(SHARED_PP),yes)
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
6 SPPLIB = libpostproc.so
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
7 SPPVERSION = 0.0.1
812
607e867a8be4 disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents: 790
diff changeset
8 endif
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
9 PPLIB = libpostproc.a
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
10
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
11 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
12 SWSOBJS=$(SWSSRCS:.c=.o)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
13 PPOBJS=postprocess.o
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
14 SPPOBJS=postprocess_pic.o
873
47f44f256a3c fixing compilation of cs_test
michael
parents: 834
diff changeset
15 CS_TEST_OBJS=cs_test.o rgb2rgb.o ../cpudetect.o ../mp_msg.o ../libvo/aclib.o
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
16
610
015b33f3e750 removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents: 508
diff changeset
17 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
18 # -I/usr/X11R6/include/
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
19
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
20 .SUFFIXES: .c .o
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
21
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
22 # .PHONY: all clean
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
23
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
24 .c.o:
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
25 $(CC) -c $(CFLAGS) -o $@ $<
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
26
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
27 all: $(SWSLIB) $(PPLIB) $(SPPLIB)
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
28
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
29 $(SWSLIB): $(SWSOBJS)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
30 $(AR) r $(SWSLIB) $(SWSOBJS)
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
31
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
32 clean:
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
33 rm -f *.o *.a *~ *.so
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
34
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
35 distclean:
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
36 rm -f Makefile.bak *.o *.a *~ *.so .depend
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
37
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
38 dep: depend
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
39
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
40 depend:
834
d73ad03912f5 fixing dependancies
michael
parents: 812
diff changeset
41 $(CC) -MM $(CFLAGS) $(SWSSRCS) postprocess.c 1>.depend
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
42
508
8f9fa4ec9cbb colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents: 170
diff changeset
43 cs_test: $(CS_TEST_OBJS)
8f9fa4ec9cbb colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents: 170
diff changeset
44 $(CC) $(CS_TEST_OBJS) -o cs_test
8f9fa4ec9cbb colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents: 170
diff changeset
45
812
607e867a8be4 disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents: 790
diff changeset
46 ifeq ($(SHARED_PP),yes)
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
47 postprocess_pic.o: postprocess.c
790
b9156f8e6747 -fomit-frame-pointer is needed for the PIC code
michael
parents: 787
diff changeset
48 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -o $@ $<
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
49
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
50 $(SPPLIB): $(SPPOBJS)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
51 $(CC) -shared -Wl,-soname,$(SPPLIB).0 \
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
52 -o $(SPPLIB) $(SPPOBJS)
812
607e867a8be4 disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents: 790
diff changeset
53 endif
834
d73ad03912f5 fixing dependancies
michael
parents: 812
diff changeset
54
787
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
55 $(PPLIB): $(PPOBJS)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
56 $(AR) r $(PPLIB) $(PPOBJS)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
57
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
58 install: all
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
59 ifeq ($(SHARED_PP),yes)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
60 install -d $(prefix)/lib
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
61 install -s -m 755 $(SPPLIB) $(prefix)/lib/$(SPPLIB).$(SPPVERSION)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
62 ln -sf $(SPPLIB).$(SPPVERSION) $(prefix)/lib/$(SPPLIB)
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
63 ldconfig || true
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
64 mkdir -p $(prefix)/include/postproc
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
65 install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
66 endif
4914252c963a postprocessing cleanup:
michael
parents: 610
diff changeset
67
834
d73ad03912f5 fixing dependancies
michael
parents: 812
diff changeset
68
127
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
69 #
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
70 # include dependency files if they exist
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
71 #
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
72 ifneq ($(wildcard .depend),)
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
73 include .depend
2fe8f116576c Independed compilation of SUBDIRS
nick
parents:
diff changeset
74 endif