2003-02-14 23:27:25 +02:00
|
|
|
|
|
|
|
include ../../config.mak
|
|
|
|
|
2005-02-04 05:29:50 +02:00
|
|
|
VPATH=$(SRC_PATH)/libavcodec/libpostproc
|
|
|
|
|
2006-01-13 02:53:36 +02:00
|
|
|
LIB = $(LIBPREF)postproc$(LIBSUF)
|
2003-02-14 23:27:25 +02:00
|
|
|
ifeq ($(SHARED_PP),yes)
|
2006-01-12 02:00:00 +02:00
|
|
|
SLIBNAME = $(SLIBPREF)postproc$(SLIBSUF)
|
2003-02-14 23:27:25 +02:00
|
|
|
endif
|
|
|
|
|
2006-01-13 02:53:36 +02:00
|
|
|
OBJS=postprocess.o
|
|
|
|
SOBJS=postprocess_pic.o
|
2003-02-14 23:27:25 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
2006-01-13 02:53:36 +02:00
|
|
|
all: $(SWSLIB) $(LIB) $(SLIBNAME)
|
2003-02-14 23:27:25 +02:00
|
|
|
|
|
|
|
clean:
|
2006-01-13 02:53:36 +02:00
|
|
|
rm -f *.o *.a *~ *$(SLIBSUF) $(LIB) $(SLIBNAME)
|
2003-02-14 23:27:25 +02:00
|
|
|
|
|
|
|
distclean:
|
2005-09-26 13:05:13 +03:00
|
|
|
rm -f Makefile.bak *.o *.a *~ *$(SLIBSUF) .depend
|
2003-02-14 23:27:25 +02:00
|
|
|
|
|
|
|
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 $@ $<
|
|
|
|
|
2006-01-13 02:53:36 +02:00
|
|
|
$(SLIBNAME): $(SOBJS)
|
|
|
|
$(CC) $(SHFLAGS) -o $(SLIBNAME) $(SOBJS)
|
2003-02-14 23:27:25 +02:00
|
|
|
endif
|
|
|
|
|
2006-01-13 02:53:36 +02:00
|
|
|
$(LIB): $(OBJS)
|
2003-05-11 14:26:35 +03:00
|
|
|
rm -f $@
|
2006-01-13 02:53:36 +02:00
|
|
|
$(AR) rc $@ $(OBJS)
|
2003-05-11 14:26:35 +03:00
|
|
|
$(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)
|
2006-01-13 02:53:36 +02:00
|
|
|
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
|
2004-10-05 20:43:10 +03:00
|
|
|
else
|
2005-03-16 21:11:58 +02:00
|
|
|
install -d $(libdir)
|
2006-01-13 02:53:36 +02:00
|
|
|
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) $(libdir)/libpostproc-$(VERSION)$(SLIBSUF)
|
|
|
|
ln -sf $(SLIBPREF)postproc-$(VERSION)$(SLIBSUF) $(libdir)/$(SLIBNAME)
|
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
|
2006-01-13 02:53:36 +02:00
|
|
|
install -d $(libdir)/pkgconfig
|
|
|
|
install -m 644 ../../libpostproc.pc $(libdir)/pkgconfig
|
2003-02-14 23:27:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|