Statistics
| Branch: | Revision:

ffmpeg / libavcodec / libpostproc / Makefile @ fa30d082

History | View | Annotate | Download (1.55 KB)

1 bba9b16c Michael Niedermayer
2
include ../../config.mak
3
4 9a0a8d42 James A. Morrison
VPATH=$(SRC_PATH)/libavcodec/libpostproc
5
6 fa30d082 Diego Biurrun
LIB = $(LIBPREF)postproc$(LIBSUF)
7 bba9b16c Michael Niedermayer
ifeq ($(SHARED_PP),yes)
8 fb3d46da Diego Biurrun
SLIBNAME = $(SLIBPREF)postproc$(SLIBSUF)
9 bba9b16c Michael Niedermayer
endif
10
11 fa30d082 Diego Biurrun
OBJS=postprocess.o
12
SOBJS=postprocess_pic.o
13 bba9b16c Michael Niedermayer
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 80581e98 Michael Niedermayer
	$(CC) -c $(CFLAGS) $(LIBOBJFLAGS) -I$(SRC_PATH)/libavcodec -I../.. -o $@ $<
23 bba9b16c Michael Niedermayer
24 fa30d082 Diego Biurrun
all:    $(SWSLIB) $(LIB) $(SLIBNAME)
25 bba9b16c Michael Niedermayer
26
clean:
27 fa30d082 Diego Biurrun
	rm -f *.o *.a *~ *$(SLIBSUF) $(LIB) $(SLIBNAME)
28 bba9b16c Michael Niedermayer
29
distclean:
30 4e159595 Diego Biurrun
	rm -f Makefile.bak *.o *.a *~ *$(SLIBSUF) .depend
31 bba9b16c Michael Niedermayer
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 fa30d082 Diego Biurrun
$(SLIBNAME): $(SOBJS)
42
	$(CC) $(SHFLAGS) -o $(SLIBNAME) $(SOBJS)
43 bba9b16c Michael Niedermayer
endif
44
45 fa30d082 Diego Biurrun
$(LIB): $(OBJS)
46 04431ca1 Dan Christiansen
	rm -f $@
47 fa30d082 Diego Biurrun
	$(AR) rc $@ $(OBJS)
48 04431ca1 Dan Christiansen
	$(RANLIB) $@
49 bba9b16c Michael Niedermayer
50
install: all
51
ifeq ($(SHARED_PP),yes)
52 91378af4 Frantisek Dvorak
ifeq ($(CONFIG_WIN32),yes)
53 fa30d082 Diego Biurrun
	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
54 91378af4 Frantisek Dvorak
else
55 cc973ecb Luca Barbato
	install -d $(libdir)
56 fa30d082 Diego Biurrun
	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) $(libdir)/libpostproc-$(VERSION)$(SLIBSUF)
57
	ln -sf $(SLIBPREF)postproc-$(VERSION)$(SLIBSUF) $(libdir)/$(SLIBNAME)
58 f39e56a8 Jacob Meuser
	$(LDCONFIG) || true
59 06983da7 Brendan Kehoe
endif
60 91378af4 Frantisek Dvorak
endif
61 bba9b16c Michael Niedermayer
	mkdir -p $(prefix)/include/postproc
62 7919d97e Måns Rullgård
	install -m 644 $(SRC_PATH)/libavcodec/libpostproc/postprocess.h $(prefix)/include/postproc/postprocess.h
63 fa30d082 Diego Biurrun
	install -d $(libdir)/pkgconfig
64
	install -m 644 ../../libpostproc.pc $(libdir)/pkgconfig
65 bba9b16c Michael Niedermayer
66
67
#
68
# include dependency files if they exist
69
#
70
ifneq ($(wildcard .depend),)
71
include .depend
72
endif