Statistics
| Branch: | Revision:

ffmpeg / libavcodec / libpostproc / Makefile @ 9a0a8d42

History | View | Annotate | Download (1.43 KB)

1

    
2
include ../../config.mak
3

    
4
VPATH=$(SRC_PATH)/libavcodec/libpostproc
5

    
6
ifeq ($(SHARED_PP),yes)
7
SPPLIB = $(SLIBPREF)postproc$(SLIBSUF)
8
SPPVERSION = 0.0.1
9
endif
10
PPLIB = $(LIBPREF)postproc$(LIBSUF)
11

    
12
PPOBJS=postprocess.o
13
SPPOBJS=postprocess_pic.o
14

    
15
CFLAGS  = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
16
# -I/usr/X11R6/include/
17

    
18
.SUFFIXES: .c .o
19

    
20
# .PHONY: all clean
21

    
22
.c.o:
23
	$(CC) -c $(CFLAGS) -I$(SRC_PATH)/libavcodec -I../.. -o $@ $<
24

    
25
all:    $(SWSLIB) $(PPLIB) $(SPPLIB)
26

    
27
clean:
28
	rm -f *.o *.a *~ *.so $(PPLIB) $(SPPLIB)
29

    
30
distclean:
31
	rm -f Makefile.bak *.o *.a *~ *.so .depend
32

    
33
dep:    depend
34

    
35
depend:
36
	$(CC) -MM $(CFLAGS) postprocess.c 1>.depend
37

    
38
ifeq ($(SHARED_PP),yes)
39
postprocess_pic.o: postprocess.c
40
	$(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $<
41

    
42
$(SPPLIB): $(SPPOBJS)
43
	$(CC) -shared -Wl,-soname,$(SPPLIB).0 \
44
	-o $(SPPLIB) $(SPPOBJS)
45
endif
46

    
47
$(PPLIB): $(PPOBJS)
48
	rm -f $@
49
	$(AR) rc $@ $(PPOBJS)
50
	$(RANLIB) $@
51

    
52
install: all
53
ifeq ($(SHARED_PP),yes)
54
ifeq ($(CONFIG_WIN32),yes)
55
       install $(INSTALLSTRIP) -m 755 $(SPPLIB) "$(prefix)"
56
else
57
	install -d $(prefix)/lib
58
	install $(INSTALLSTRIP) -m 755 $(SPPLIB) $(prefix)/lib/$(SPPLIB).$(SPPVERSION)
59
	ln -sf $(SPPLIB).$(SPPVERSION) $(prefix)/lib/$(SPPLIB)
60
	ldconfig || true
61
endif
62
endif
63
	mkdir -p $(prefix)/include/postproc
64
	install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h
65

    
66

    
67
#
68
# include dependency files if they exist
69
#
70
ifneq ($(wildcard .depend),)
71
include .depend
72
endif