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