2003-02-14 22:27:25 +01:00
|
|
|
|
|
|
|
include ../../config.mak
|
|
|
|
|
2005-02-04 04:29:50 +01:00
|
|
|
VPATH=$(SRC_PATH)/libavcodec/libpostproc
|
|
|
|
|
2006-01-13 01:53:36 +01:00
|
|
|
LIB = $(LIBPREF)postproc$(LIBSUF)
|
2003-02-14 22:27:25 +01:00
|
|
|
ifeq ($(SHARED_PP),yes)
|
2006-01-14 04:39:02 +01:00
|
|
|
LIBVERSION=$(SPPVERSION)
|
|
|
|
LIBMAJOR=$(SPPMAJOR)
|
|
|
|
NAME=postproc
|
2006-01-12 01:00:00 +01:00
|
|
|
SLIBNAME = $(SLIBPREF)postproc$(SLIBSUF)
|
2003-02-14 22:27:25 +01:00
|
|
|
endif
|
|
|
|
|
2006-01-13 01:53:36 +01:00
|
|
|
OBJS=postprocess.o
|
|
|
|
SOBJS=postprocess_pic.o
|
2003-02-14 22:27:25 +01:00
|
|
|
|
|
|
|
CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
|
|
|
|
# -I/usr/X11R6/include/
|
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
2005-06-27 02:55:29 +02:00
|
|
|
$(CC) -c $(CFLAGS) $(LIBOBJFLAGS) -I$(SRC_PATH)/libavcodec -I../.. -o $@ $<
|
2003-02-14 22:27:25 +01:00
|
|
|
|
2006-01-13 01:53:36 +01:00
|
|
|
all: $(SWSLIB) $(LIB) $(SLIBNAME)
|
2003-02-14 22:27:25 +01:00
|
|
|
|
|
|
|
clean:
|
2006-01-13 01:53:36 +01:00
|
|
|
rm -f *.o *.a *~ *$(SLIBSUF) $(LIB) $(SLIBNAME)
|
2003-02-14 22:27:25 +01:00
|
|
|
|
|
|
|
distclean:
|
2005-09-26 12:05:13 +02:00
|
|
|
rm -f Makefile.bak *.o *.a *~ *$(SLIBSUF) .depend
|
2003-02-14 22:27:25 +01: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 01:53:36 +01:00
|
|
|
$(SLIBNAME): $(SOBJS)
|
|
|
|
$(CC) $(SHFLAGS) -o $(SLIBNAME) $(SOBJS)
|
2003-02-14 22:27:25 +01:00
|
|
|
endif
|
|
|
|
|
2006-01-13 01:53:36 +01:00
|
|
|
$(LIB): $(OBJS)
|
2003-05-11 13:26:35 +02:00
|
|
|
rm -f $@
|
2006-01-13 01:53:36 +01:00
|
|
|
$(AR) rc $@ $(OBJS)
|
2003-05-11 13:26:35 +02:00
|
|
|
$(RANLIB) $@
|
2003-02-14 22:27:25 +01:00
|
|
|
|
|
|
|
install: all
|
|
|
|
ifeq ($(SHARED_PP),yes)
|
2004-10-05 19:43:10 +02:00
|
|
|
ifeq ($(CONFIG_WIN32),yes)
|
2006-01-13 01:53:36 +01:00
|
|
|
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
|
2004-10-05 19:43:10 +02:00
|
|
|
else
|
2005-03-16 20:11:58 +01:00
|
|
|
install -d $(libdir)
|
2006-01-14 04:39:02 +01:00
|
|
|
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
|
|
|
|
$(libdir)/$(SLIBNAME_WITH_VERSION)
|
|
|
|
ln -sf $(SLIBNAME_WITH_VERSION) \
|
|
|
|
$(libdir)/$(SLIBNAME_WITH_MAJOR)
|
|
|
|
ln -sf $(SLIBNAME_WITH_VERSION) \
|
|
|
|
$(libdir)/$(SLIBNAME)
|
2005-05-23 01:58:58 +02:00
|
|
|
$(LDCONFIG) || true
|
2004-10-05 19:43:10 +02:00
|
|
|
endif
|
2004-07-10 18:24:11 +02:00
|
|
|
endif
|
2003-02-14 22:27:25 +01:00
|
|
|
mkdir -p $(prefix)/include/postproc
|
2005-05-18 16:05:17 +02:00
|
|
|
install -m 644 $(SRC_PATH)/libavcodec/libpostproc/postprocess.h $(prefix)/include/postproc/postprocess.h
|
2006-01-13 01:53:36 +01:00
|
|
|
install -d $(libdir)/pkgconfig
|
|
|
|
install -m 644 ../../libpostproc.pc $(libdir)/pkgconfig
|
2003-02-14 22:27:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|