Remove obsolete big-endian FIXMEs.
[libav.git] / libavcodec / libpostproc / Makefile
CommitLineData
bba9b16c
MN
1
2include ../../config.mak
3
9a0a8d42
JM
4VPATH=$(SRC_PATH)/libavcodec/libpostproc
5
a44a8bb8
DB
6# Overload incdir, postproc include files go in a different directory.
7incdir=$(prefix)/include/postproc
8
4bdd05e7 9NAME=postproc
ba64106a 10ifeq ($(BUILD_SHARED),yes)
f3b60109
DB
11LIBVERSION=$(SPPVERSION)
12LIBMAJOR=$(SPPMAJOR)
bba9b16c 13endif
bba9b16c 14
fa30d082
DB
15OBJS=postprocess.o
16SOBJS=postprocess_pic.o
bba9b16c
MN
17
18CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
19# -I/usr/X11R6/include/
20
21.SUFFIXES: .c .o
22
23# .PHONY: all clean
24
25.c.o:
80581e98 26 $(CC) -c $(CFLAGS) $(LIBOBJFLAGS) -I$(SRC_PATH)/libavcodec -I../.. -o $@ $<
bba9b16c 27
fa30d082 28all: $(SWSLIB) $(LIB) $(SLIBNAME)
bba9b16c
MN
29
30clean:
29a10be0 31 rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
bba9b16c 32
29a10be0 33distclean: clean
04c07634 34 rm -f .depend
bba9b16c
MN
35
36dep: depend
37
38depend:
39 $(CC) -MM $(CFLAGS) postprocess.c 1>.depend
40
ba64106a 41ifeq ($(BUILD_SHARED),yes)
bba9b16c
MN
42postprocess_pic.o: postprocess.c
43 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $<
44
fa30d082
DB
45$(SLIBNAME): $(SOBJS)
46 $(CC) $(SHFLAGS) -o $(SLIBNAME) $(SOBJS)
bba9b16c
MN
47endif
48
fa30d082 49$(LIB): $(OBJS)
04431ca1 50 rm -f $@
fa30d082 51 $(AR) rc $@ $(OBJS)
04431ca1 52 $(RANLIB) $@
bba9b16c 53
b12f8273
DB
54
55install-lib-shared: $(SLIBNAME)
91378af4 56ifeq ($(CONFIG_WIN32),yes)
fa30d082 57 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
91378af4 58else
f3b60109
DB
59 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
60 $(libdir)/$(SLIBNAME_WITH_VERSION)
61 ln -sf $(SLIBNAME_WITH_VERSION) \
62 $(libdir)/$(SLIBNAME_WITH_MAJOR)
63 ln -sf $(SLIBNAME_WITH_VERSION) \
64 $(libdir)/$(SLIBNAME)
91378af4 65endif
c86eb7ae 66
b12f8273 67install-lib-static: $(LIB)
c86eb7ae
DB
68 install -m 644 $(LIB) "$(libdir)"
69
70install-headers:
26d46911
DB
71 install -d "$(incdir)"
72 install -m 644 postprocess.h "$(incdir)/postprocess.h"
73 install -m 644 $(SRC_PATH)/libpostproc.pc "$(libdir)/pkgconfig"
bba9b16c
MN
74
75
76#
77# include dependency files if they exist
78#
79ifneq ($(wildcard .depend),)
80include .depend
81endif