Statistics
| Branch: | Revision:

ffmpeg / libavcodec / libpostproc / Makefile @ fa30d082

History | View | Annotate | Download (1.55 KB)

1

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

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

    
6
LIB = $(LIBPREF)postproc$(LIBSUF)
7
ifeq ($(SHARED_PP),yes)
8
SLIBNAME = $(SLIBPREF)postproc$(SLIBSUF)
9
endif
10

    
11
OBJS=postprocess.o
12
SOBJS=postprocess_pic.o
13

    
14
CFLAGS  = $(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:
22
	$(CC) -c $(CFLAGS) $(LIBOBJFLAGS) -I$(SRC_PATH)/libavcodec -I../.. -o $@ $<
23

    
24
all:    $(SWSLIB) $(LIB) $(SLIBNAME)
25

    
26
clean:
27
	rm -f *.o *.a *~ *$(SLIBSUF) $(LIB) $(SLIBNAME)
28

    
29
distclean:
30
	rm -f Makefile.bak *.o *.a *~ *$(SLIBSUF) .depend
31

    
32
dep:    depend
33

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

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

    
41
$(SLIBNAME): $(SOBJS)
42
	$(CC) $(SHFLAGS) -o $(SLIBNAME) $(SOBJS)
43
endif
44

    
45
$(LIB): $(OBJS)
46
	rm -f $@
47
	$(AR) rc $@ $(OBJS)
48
	$(RANLIB) $@
49

    
50
install: all
51
ifeq ($(SHARED_PP),yes)
52
ifeq ($(CONFIG_WIN32),yes)
53
	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
54
else
55
	install -d $(libdir)
56
	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) $(libdir)/libpostproc-$(VERSION)$(SLIBSUF)
57
	ln -sf $(SLIBPREF)postproc-$(VERSION)$(SLIBSUF) $(libdir)/$(SLIBNAME)
58
	$(LDCONFIG) || true
59
endif
60
endif
61
	mkdir -p $(prefix)/include/postproc
62
	install -m 644 $(SRC_PATH)/libavcodec/libpostproc/postprocess.h $(prefix)/include/postproc/postprocess.h
63
	install -d $(libdir)/pkgconfig
64
	install -m 644 ../../libpostproc.pc $(libdir)/pkgconfig
65

    
66

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