minor consistency fix
[libav.git] / libavcodec / libpostproc / Makefile
CommitLineData
fb3d46da 1#FIXME: This Makefile differs from all the others for no good reason...
bba9b16c
MN
2
3include ../../config.mak
4
9a0a8d42
JM
5VPATH=$(SRC_PATH)/libavcodec/libpostproc
6
bba9b16c 7ifeq ($(SHARED_PP),yes)
4e159595 8SPPLIBNAME = $(SLIBPREF)postproc$(SLIBSUF)
32504425
DB
9SPPLIBMAJOR = $(SPPLIBNAME).$(SPPMAJOR)
10SPPLIB = $(SPPLIBNAME).$(SPPVERSION)
11LIBVERSION = $(SPPLIB)
fb3d46da 12SLIBNAME = $(SLIBPREF)postproc$(SLIBSUF)
bba9b16c 13endif
91378af4 14PPLIB = $(LIBPREF)postproc$(LIBSUF)
bba9b16c
MN
15
16PPOBJS=postprocess.o
17SPPOBJS=postprocess_pic.o
18
19CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
20# -I/usr/X11R6/include/
21
22.SUFFIXES: .c .o
23
24# .PHONY: all clean
25
26.c.o:
80581e98 27 $(CC) -c $(CFLAGS) $(LIBOBJFLAGS) -I$(SRC_PATH)/libavcodec -I../.. -o $@ $<
bba9b16c 28
4e159595 29all: $(SWSLIB) $(PPLIB) $(SPPLIBNAME)
bba9b16c
MN
30
31clean:
4e159595 32 rm -f *.o *.a *~ *$(SLIBSUF) $(PPLIB) $(SPPLIBNAME)
bba9b16c
MN
33
34distclean:
4e159595 35 rm -f Makefile.bak *.o *.a *~ *$(SLIBSUF) .depend
bba9b16c
MN
36
37dep: depend
38
39depend:
40 $(CC) -MM $(CFLAGS) postprocess.c 1>.depend
41
42ifeq ($(SHARED_PP),yes)
43postprocess_pic.o: postprocess.c
44 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $<
45
4e159595
DB
46$(SPPLIBNAME): $(SPPOBJS)
47 $(CC) $(SHFLAGS) -o $(SPPLIBNAME) $(SPPOBJS)
bba9b16c
MN
48endif
49
50$(PPLIB): $(PPOBJS)
04431ca1
DC
51 rm -f $@
52 $(AR) rc $@ $(PPOBJS)
53 $(RANLIB) $@
bba9b16c
MN
54
55install: all
56ifeq ($(SHARED_PP),yes)
91378af4 57ifeq ($(CONFIG_WIN32),yes)
4e159595 58 install $(INSTALLSTRIP) -m 755 $(SPPLIBNAME) "$(prefix)"
91378af4 59else
cc973ecb 60 install -d $(libdir)
4e159595
DB
61 install $(INSTALLSTRIP) -m 755 $(SPPLIBNAME) $(libdir)/$(SPPLIB)
62 ln -sf $(SPPLIB) $(libdir)/$(SPPLIBNAME)
63 ln -sf $(SPPLIB) $(libdir)/$(SPPLIBMAJOR)
def4272a
AJ
64 install -d $(libdir)/pkgconfig
65 install -m 644 ../../libpostproc.pc $(libdir)/pkgconfig
f39e56a8 66 $(LDCONFIG) || true
06983da7 67endif
91378af4 68endif
bba9b16c 69 mkdir -p $(prefix)/include/postproc
7919d97e 70 install -m 644 $(SRC_PATH)/libavcodec/libpostproc/postprocess.h $(prefix)/include/postproc/postprocess.h
bba9b16c
MN
71
72
73#
74# include dependency files if they exist
75#
76ifneq ($(wildcard .depend),)
77include .depend
78endif