2003-02-14 21:27:25 +00:00
|
|
|
|
|
|
|
include ../../config.mak
|
|
|
|
|
2005-02-04 03:29:50 +00:00
|
|
|
VPATH=$(SRC_PATH)/libavcodec/libpostproc
|
|
|
|
|
2006-02-11 20:53:55 +00:00
|
|
|
# Overload incdir, postproc include files go in a different directory.
|
|
|
|
incdir=$(prefix)/include/postproc
|
|
|
|
|
2006-01-14 15:54:58 +00:00
|
|
|
NAME=postproc
|
2006-01-14 18:07:36 +00:00
|
|
|
ifeq ($(BUILD_SHARED),yes)
|
2006-01-14 03:39:02 +00:00
|
|
|
LIBVERSION=$(SPPVERSION)
|
|
|
|
LIBMAJOR=$(SPPMAJOR)
|
2003-02-14 21:27:25 +00:00
|
|
|
endif
|
|
|
|
|
2006-01-13 00:53:36 +00:00
|
|
|
OBJS=postprocess.o
|
|
|
|
SOBJS=postprocess_pic.o
|
2003-02-14 21:27:25 +00:00
|
|
|
|
|
|
|
CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
|
|
|
|
# -I/usr/X11R6/include/
|
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
2005-06-27 00:55:29 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(LIBOBJFLAGS) -I$(SRC_PATH)/libavcodec -I../.. -o $@ $<
|
2003-02-14 21:27:25 +00:00
|
|
|
|
2006-01-13 00:53:36 +00:00
|
|
|
all: $(SWSLIB) $(LIB) $(SLIBNAME)
|
2003-02-14 21:27:25 +00:00
|
|
|
|
|
|
|
clean:
|
2006-01-15 00:28:36 +00:00
|
|
|
rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
|
2003-02-14 21:27:25 +00:00
|
|
|
|
2006-01-15 00:28:36 +00:00
|
|
|
distclean: clean
|
2006-01-26 23:42:30 +00:00
|
|
|
rm -f .depend
|
2003-02-14 21:27:25 +00:00
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(CC) -MM $(CFLAGS) postprocess.c 1>.depend
|
|
|
|
|
2006-01-14 18:07:36 +00:00
|
|
|
ifeq ($(BUILD_SHARED),yes)
|
2003-02-14 21:27:25 +00:00
|
|
|
postprocess_pic.o: postprocess.c
|
|
|
|
$(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $<
|
|
|
|
|
2006-01-13 00:53:36 +00:00
|
|
|
$(SLIBNAME): $(SOBJS)
|
|
|
|
$(CC) $(SHFLAGS) -o $(SLIBNAME) $(SOBJS)
|
2003-02-14 21:27:25 +00:00
|
|
|
endif
|
|
|
|
|
2006-01-13 00:53:36 +00:00
|
|
|
$(LIB): $(OBJS)
|
2003-05-11 11:26:35 +00:00
|
|
|
rm -f $@
|
2006-01-13 00:53:36 +00:00
|
|
|
$(AR) rc $@ $(OBJS)
|
2003-05-11 11:26:35 +00:00
|
|
|
$(RANLIB) $@
|
2003-02-14 21:27:25 +00:00
|
|
|
|
2006-02-11 18:50:45 +00:00
|
|
|
|
|
|
|
install-lib-shared: $(SLIBNAME)
|
2004-10-05 17:43:10 +00:00
|
|
|
ifeq ($(CONFIG_WIN32),yes)
|
2006-01-13 00:53:36 +00:00
|
|
|
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
|
2004-10-05 17:43:10 +00:00
|
|
|
else
|
2006-01-14 03:39:02 +00: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)
|
2004-07-10 16:24:11 +00:00
|
|
|
endif
|
2006-02-11 16:50:45 +00:00
|
|
|
|
2006-02-11 18:50:45 +00:00
|
|
|
install-lib-static: $(LIB)
|
2006-02-11 16:50:45 +00:00
|
|
|
install -m 644 $(LIB) "$(libdir)"
|
|
|
|
|
|
|
|
install-headers:
|
2006-02-11 20:54:40 +00:00
|
|
|
install -d "$(incdir)"
|
|
|
|
install -m 644 postprocess.h "$(incdir)/postprocess.h"
|
|
|
|
install -m 644 $(SRC_PATH)/libpostproc.pc "$(libdir)/pkgconfig"
|
2003-02-14 21:27:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|