Fixed initialisation of tf in file_open(). Without setting the memory to 0,
[cinelerra_cv/mob.git] / quicktime / ffmpeg / libavcodec / libpostproc / Makefile
bloba12bc721e1f33123b7c92359355ac6c141319b79
2 include ../../config.mak
4 VPATH=$(SRC_PATH)/libavcodec/libpostproc
6 ifeq ($(SHARED_PP),yes)
7 SPPLIB = $(SLIBPREF)postproc$(SLIBSUF)
8 SPPMAJOR = 0
9 SPPVERSION = $(SPPMAJOR).0.1
10 endif
11 PPLIB = $(LIBPREF)postproc$(LIBSUF)
13 PPOBJS=postprocess.o
14 SPPOBJS=postprocess_pic.o
16 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
17 # -I/usr/X11R6/include/
19 .SUFFIXES: .c .o
21 # .PHONY: all clean
23 .c.o:
24 $(CC) -c $(CFLAGS) $(LIBOBJFLAGS) -I$(SRC_PATH)/libavcodec -I../.. -o $@ $<
26 all: $(SWSLIB) $(PPLIB) $(SPPLIB)
28 clean:
29 rm -f *.o *.a *~ *.so $(PPLIB) $(SPPLIB)
31 distclean:
32 rm -f Makefile.bak *.o *.a *~ *.so .depend
34 dep: depend
36 depend:
37 $(CC) -MM $(CFLAGS) postprocess.c 1>.depend
39 ifeq ($(SHARED_PP),yes)
40 postprocess_pic.o: postprocess.c
41 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $<
43 $(SPPLIB): $(SPPOBJS)
44 $(CC) -shared -Wl,-soname,$(SPPLIB).$(SPPMAJOR) \
45 -o $(SPPLIB) $(SPPOBJS)
46 endif
48 $(PPLIB): $(PPOBJS)
49 rm -f $@
50 $(AR) rc $@ $(PPOBJS)
51 $(RANLIB) $@
53 install: all
54 ifeq ($(SHARED_PP),yes)
55 ifeq ($(CONFIG_WIN32),yes)
56 install $(INSTALLSTRIP) -m 755 $(SPPLIB) "$(prefix)"
57 else
58 install -d $(libdir)
59 install $(INSTALLSTRIP) -m 755 $(SPPLIB) $(libdir)/$(SPPLIB).$(SPPVERSION)
60 ln -sf $(SPPLIB).$(SPPVERSION) $(libdir)/$(SPPLIB)
61 ln -sf $(SPPLIB).$(SPPVERSION) $(libdir)/$(SPPLIB).$(SPPMAJOR)
62 install -d $(libdir)/pkgconfig
63 install -m 644 ../../libpostproc.pc $(libdir)/pkgconfig
64 $(LDCONFIG) || true
65 endif
66 endif
67 mkdir -p $(prefix)/include/postproc
68 install -m 644 $(SRC_PATH)/libavcodec/libpostproc/postprocess.h $(prefix)/include/postproc/postprocess.h
72 # include dependency files if they exist
74 ifneq ($(wildcard .depend),)
75 include .depend
76 endif