annotate postproc/Makefile @ 9180:5750570b4a46

10l for XYZ
author diego
date Thu, 30 Jan 2003 23:37:17 +0000
parents dff74a42db56
children 1e8f3293a822
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
7994
458992506962 disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents: 7956
diff changeset
5 ifeq ($(SHARED_PP),yes)
7946
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
6 SPPLIB = libpostproc.so
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
7 SPPVERSION = 0.0.1
7994
458992506962 disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents: 7956
diff changeset
8 endif
7946
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
9 PPLIB = libpostproc.a
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
10
7946
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
11 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
12 SWSOBJS=$(SWSSRCS:.c=.o)
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
13 PPOBJS=postprocess.o
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
14 SPPOBJS=postprocess_pic.o
8231
dff74a42db56 fixing compilation of cs_test
michael
parents: 8098
diff changeset
15 CS_TEST_OBJS=cs_test.o rgb2rgb.o ../cpudetect.o ../mp_msg.o ../libvo/aclib.o
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
16
7073
b69ddd4d3bb9 removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents: 6603
diff changeset
17 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
18 # -I/usr/X11R6/include/
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
19
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
20 .SUFFIXES: .c .o
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
21
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
22 # .PHONY: all clean
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
23
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
24 .c.o:
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
25 $(CC) -c $(CFLAGS) -o $@ $<
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
26
7946
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
27 all: $(SWSLIB) $(PPLIB) $(SPPLIB)
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
28
7946
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
29 $(SWSLIB): $(SWSOBJS)
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
30 $(AR) r $(SWSLIB) $(SWSOBJS)
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
31
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
32 clean:
7946
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
33 rm -f *.o *.a *~ *.so
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
34
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
35 distclean:
7946
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
36 rm -f Makefile.bak *.o *.a *~ *.so .depend
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
37
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
38 dep: depend
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
39
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
40 depend:
8098
2fa1e3aa518a fixing dependancies
michael
parents: 7994
diff changeset
41 $(CC) -MM $(CFLAGS) $(SWSSRCS) postprocess.c 1>.depend
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
42
6603
6eab60ea6c11 colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents: 3143
diff changeset
43 cs_test: $(CS_TEST_OBJS)
6eab60ea6c11 colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents: 3143
diff changeset
44 $(CC) $(CS_TEST_OBJS) -o cs_test
6eab60ea6c11 colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents: 3143
diff changeset
45
7994
458992506962 disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents: 7956
diff changeset
46 ifeq ($(SHARED_PP),yes)
7946
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
47 postprocess_pic.o: postprocess.c
7956
2d04cdfd7186 -fomit-frame-pointer is needed for the PIC code
michael
parents: 7946
diff changeset
48 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -o $@ $<
7946
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
49
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
50 $(SPPLIB): $(SPPOBJS)
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
51 $(CC) -shared -Wl,-soname,$(SPPLIB).0 \
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
52 -o $(SPPLIB) $(SPPOBJS)
7994
458992506962 disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents: 7956
diff changeset
53 endif
8098
2fa1e3aa518a fixing dependancies
michael
parents: 7994
diff changeset
54
7946
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
55 $(PPLIB): $(PPOBJS)
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
56 $(AR) r $(PPLIB) $(PPOBJS)
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
57
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
58 install: all
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
59 ifeq ($(SHARED_PP),yes)
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
60 install -d $(prefix)/lib
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
61 install -s -m 755 $(SPPLIB) $(prefix)/lib/$(SPPLIB).$(SPPVERSION)
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
62 ln -sf $(SPPLIB).$(SPPVERSION) $(prefix)/lib/$(SPPLIB)
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
63 ldconfig || true
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
64 mkdir -p $(prefix)/include/postproc
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
65 install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
66 endif
f483ab704252 postprocessing cleanup:
michael
parents: 7073
diff changeset
67
8098
2fa1e3aa518a fixing dependancies
michael
parents: 7994
diff changeset
68
2444
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
69 #
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
70 # include dependency files if they exist
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
71 #
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
72 ifneq ($(wildcard .depend),)
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
73 include .depend
ec8ff6ea4af6 Independed compilation of SUBDIRS
nick
parents:
diff changeset
74 endif