|
|
|
@ -4,9 +4,16 @@ include ../../config.mak |
|
|
|
|
VPATH=$(SRC_PATH)/libavcodec/libpostproc
|
|
|
|
|
|
|
|
|
|
ifeq ($(SHARED_PP),yes) |
|
|
|
|
SPPLIB = $(SLIBPREF)postproc$(SLIBSUF)
|
|
|
|
|
SPPMAJOR = 0
|
|
|
|
|
SPPVERSION = $(SPPMAJOR).0.1
|
|
|
|
|
SPPLIBNAME = $(SLIBPREF)postproc$(SLIBSUF)
|
|
|
|
|
ifeq ($(CONFIG_DARWIN),yes) |
|
|
|
|
SPPLIBMAJOR = $(SLIBPREF)postproc.$(SPPMAJOR)$(SLIBSUF)
|
|
|
|
|
SPPLIB = $(SLIBPREF)postproc.$(SPPVERSION)$(SLIBSUF)
|
|
|
|
|
SHFLAGS += -Wl,-install_name,$(libdir)/$(SPPLIBNAME),-current_version,$(SPPVERSION),-compatibility_version,$(SPPVERSION)
|
|
|
|
|
else |
|
|
|
|
SPPLIBMAJOR = $(SPPLIBNAME).$(SPPMAJOR)
|
|
|
|
|
SPPLIB = $(SPPLIBNAME).$(SPPVERSION)
|
|
|
|
|
SHFLAGS = -shared -Wl,-soname,$(SPPLIB)
|
|
|
|
|
endif |
|
|
|
|
endif |
|
|
|
|
PPLIB = $(LIBPREF)postproc$(LIBSUF)
|
|
|
|
|
|
|
|
|
@ -23,13 +30,13 @@ CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC) |
|
|
|
|
.c.o: |
|
|
|
|
$(CC) -c $(CFLAGS) $(LIBOBJFLAGS) -I$(SRC_PATH)/libavcodec -I../.. -o $@ $<
|
|
|
|
|
|
|
|
|
|
all: $(SWSLIB) $(PPLIB) $(SPPLIB) |
|
|
|
|
all: $(SWSLIB) $(PPLIB) $(SPPLIBNAME) |
|
|
|
|
|
|
|
|
|
clean: |
|
|
|
|
rm -f *.o *.a *~ *.so $(PPLIB) $(SPPLIB)
|
|
|
|
|
rm -f *.o *.a *~ *$(SLIBSUF) $(PPLIB) $(SPPLIBNAME)
|
|
|
|
|
|
|
|
|
|
distclean: |
|
|
|
|
rm -f Makefile.bak *.o *.a *~ *.so .depend
|
|
|
|
|
rm -f Makefile.bak *.o *.a *~ *$(SLIBSUF) .depend
|
|
|
|
|
|
|
|
|
|
dep: depend |
|
|
|
|
|
|
|
|
@ -40,9 +47,8 @@ ifeq ($(SHARED_PP),yes) |
|
|
|
|
postprocess_pic.o: postprocess.c |
|
|
|
|
$(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $<
|
|
|
|
|
|
|
|
|
|
$(SPPLIB): $(SPPOBJS) |
|
|
|
|
$(CC) -shared -Wl,-soname,$(SPPLIB).$(SPPMAJOR) \
|
|
|
|
|
-o $(SPPLIB) $(SPPOBJS)
|
|
|
|
|
$(SPPLIBNAME): $(SPPOBJS) |
|
|
|
|
$(CC) $(SHFLAGS) -o $(SPPLIBNAME) $(SPPOBJS)
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
$(PPLIB): $(PPOBJS) |
|
|
|
@ -53,12 +59,12 @@ $(PPLIB): $(PPOBJS) |
|
|
|
|
install: all |
|
|
|
|
ifeq ($(SHARED_PP),yes) |
|
|
|
|
ifeq ($(CONFIG_WIN32),yes) |
|
|
|
|
install $(INSTALLSTRIP) -m 755 $(SPPLIB) "$(prefix)"
|
|
|
|
|
install $(INSTALLSTRIP) -m 755 $(SPPLIBNAME) "$(prefix)"
|
|
|
|
|
else |
|
|
|
|
install -d $(libdir)
|
|
|
|
|
install $(INSTALLSTRIP) -m 755 $(SPPLIB) $(libdir)/$(SPPLIB).$(SPPVERSION)
|
|
|
|
|
ln -sf $(SPPLIB).$(SPPVERSION) $(libdir)/$(SPPLIB)
|
|
|
|
|
ln -sf $(SPPLIB).$(SPPVERSION) $(libdir)/$(SPPLIB).$(SPPMAJOR)
|
|
|
|
|
install $(INSTALLSTRIP) -m 755 $(SPPLIBNAME) $(libdir)/$(SPPLIB)
|
|
|
|
|
ln -sf $(SPPLIB) $(libdir)/$(SPPLIBNAME)
|
|
|
|
|
ln -sf $(SPPLIB) $(libdir)/$(SPPLIBMAJOR)
|
|
|
|
|
install -d $(libdir)/pkgconfig
|
|
|
|
|
install -m 644 ../../libpostproc.pc $(libdir)/pkgconfig
|
|
|
|
|
$(LDCONFIG) || true
|
|
|
|
|