2003-02-14 23:27:25 +02:00
|
|
|
|
|
|
|
include ../../config.mak
|
|
|
|
|
2005-02-04 05:29:50 +02:00
|
|
|
VPATH=$(SRC_PATH)/libavcodec/libpostproc
|
|
|
|
|
2003-02-14 23:27:25 +02:00
|
|
|
ifeq ($(SHARED_PP),yes)
|
2004-10-05 20:43:10 +03:00
|
|
|
SPPLIB = $(SLIBPREF)postproc$(SLIBSUF)
|
2005-05-18 17:05:17 +03:00
|
|
|
SPPMAJOR = 0
|
|
|
|
SPPVERSION = $(SPPMAJOR).0.1
|
2003-02-14 23:27:25 +02:00
|
|
|
endif
|
2004-10-05 20:43:10 +03:00
|
|
|
PPLIB = $(LIBPREF)postproc$(LIBSUF)
|
2003-02-14 23:27:25 +02:00
|
|
|
|
|
|
|
PPOBJS=postprocess.o
|
|
|
|
SPPOBJS=postprocess_pic.o
|
|
|
|
|
|
|
|
CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
|
|
|
|
# -I/usr/X11R6/include/
|
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
2005-06-27 03:55:29 +03:00
|
|
|
$(CC) -c $(CFLAGS) $(LIBOBJFLAGS) -I$(SRC_PATH)/libavcodec -I../.. -o $@ $<
|
2003-02-14 23:27:25 +02:00
|
|
|
|
|
|
|
all: $(SWSLIB) $(PPLIB) $(SPPLIB)
|
|
|
|
|
|
|
|
clean:
|
2004-10-05 20:43:10 +03:00
|
|
|
rm -f *.o *.a *~ *.so $(PPLIB) $(SPPLIB)
|
2003-02-14 23:27:25 +02:00
|
|
|
|
|
|
|
distclean:
|
|
|
|
rm -f Makefile.bak *.o *.a *~ *.so .depend
|
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(CC) -MM $(CFLAGS) postprocess.c 1>.depend
|
|
|
|
|
|
|
|
ifeq ($(SHARED_PP),yes)
|
|
|
|
postprocess_pic.o: postprocess.c
|
|
|
|
$(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $<
|
|
|
|
|
|
|
|
$(SPPLIB): $(SPPOBJS)
|
2005-05-18 17:05:17 +03:00
|
|
|
$(CC) -shared -Wl,-soname,$(SPPLIB).$(SPPMAJOR) \
|
2003-02-14 23:27:25 +02:00
|
|
|
-o $(SPPLIB) $(SPPOBJS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(PPLIB): $(PPOBJS)
|
2003-05-11 14:26:35 +03:00
|
|
|
rm -f $@
|
|
|
|
$(AR) rc $@ $(PPOBJS)
|
|
|
|
$(RANLIB) $@
|
2003-02-14 23:27:25 +02:00
|
|
|
|
|
|
|
install: all
|
|
|
|
ifeq ($(SHARED_PP),yes)
|
2004-10-05 20:43:10 +03:00
|
|
|
ifeq ($(CONFIG_WIN32),yes)
|
2005-03-23 16:10:22 +02:00
|
|
|
install $(INSTALLSTRIP) -m 755 $(SPPLIB) "$(prefix)"
|
2004-10-05 20:43:10 +03:00
|
|
|
else
|
2005-03-16 21:11:58 +02:00
|
|
|
install -d $(libdir)
|
|
|
|
install $(INSTALLSTRIP) -m 755 $(SPPLIB) $(libdir)/$(SPPLIB).$(SPPVERSION)
|
|
|
|
ln -sf $(SPPLIB).$(SPPVERSION) $(libdir)/$(SPPLIB)
|
2005-05-18 17:05:17 +03:00
|
|
|
ln -sf $(SPPLIB).$(SPPVERSION) $(libdir)/$(SPPLIB).$(SPPMAJOR)
|
2005-05-19 03:17:50 +03:00
|
|
|
install -d $(libdir)/pkgconfig
|
|
|
|
install -m 644 ../../libpostproc.pc $(libdir)/pkgconfig
|
2005-05-23 02:58:58 +03:00
|
|
|
$(LDCONFIG) || true
|
2004-10-05 20:43:10 +03:00
|
|
|
endif
|
2004-07-10 19:24:11 +03:00
|
|
|
endif
|
2003-02-14 23:27:25 +02:00
|
|
|
mkdir -p $(prefix)/include/postproc
|
2005-05-18 17:05:17 +03:00
|
|
|
install -m 644 $(SRC_PATH)/libavcodec/libpostproc/postprocess.h $(prefix)/include/postproc/postprocess.h
|
2003-02-14 23:27:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|