Help debugging by keeping symbols ans line numbers patch by (Michel Bardiaux <mbardia...
[libav.git] / libavcodec / libpostproc / Makefile
CommitLineData
bba9b16c
MN
1
2include ../../config.mak
3
4ifeq ($(SHARED_PP),yes)
5SPPLIB = libpostproc.so
6SPPVERSION = 0.0.1
7endif
8PPLIB = libpostproc.a
9
10PPOBJS=postprocess.o
11SPPOBJS=postprocess_pic.o
12
13CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
14# -I/usr/X11R6/include/
15
16.SUFFIXES: .c .o
17
18# .PHONY: all clean
19
20.c.o:
21 $(CC) -c $(CFLAGS) -I.. -I../.. -o $@ $<
22
23all: $(SWSLIB) $(PPLIB) $(SPPLIB)
24
25clean:
26 rm -f *.o *.a *~ *.so
27
28distclean:
29 rm -f Makefile.bak *.o *.a *~ *.so .depend
30
31dep: depend
32
33depend:
34 $(CC) -MM $(CFLAGS) postprocess.c 1>.depend
35
36ifeq ($(SHARED_PP),yes)
37postprocess_pic.o: postprocess.c
38 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $<
39
40$(SPPLIB): $(SPPOBJS)
41 $(CC) -shared -Wl,-soname,$(SPPLIB).0 \
42 -o $(SPPLIB) $(SPPOBJS)
43endif
44
45$(PPLIB): $(PPOBJS)
04431ca1
DC
46 rm -f $@
47 $(AR) rc $@ $(PPOBJS)
48 $(RANLIB) $@
bba9b16c
MN
49
50install: all
51ifeq ($(SHARED_PP),yes)
52 install -d $(prefix)/lib
96cc9e5c 53 install $(INSTALLSTRIP) -m 755 $(SPPLIB) $(prefix)/lib/$(SPPLIB).$(SPPVERSION)
bba9b16c
MN
54 ln -sf $(SPPLIB).$(SPPVERSION) $(prefix)/lib/$(SPPLIB)
55 ldconfig || true
06983da7 56endif
bba9b16c
MN
57 mkdir -p $(prefix)/include/postproc
58 install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h
bba9b16c
MN
59
60
61#
62# include dependency files if they exist
63#
64ifneq ($(wildcard .depend),)
65include .depend
66endif