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)
|
2003-02-14 23:27:25 +02:00
|
|
|
SPPVERSION = 0.0.1
|
|
|
|
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-02-04 05:29:50 +02:00
|
|
|
$(CC) -c $(CFLAGS) -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)
|
|
|
|
$(CC) -shared -Wl,-soname,$(SPPLIB).0 \
|
|
|
|
-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)
|
|
|
|
install $(INSTALLSTRIP) -m 755 $(SPPLIB) "$(prefix)"
|
|
|
|
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)
|
2003-02-14 23:27:25 +02: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
|
|
|
|
install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|