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-14 17:54:58 +02:00
|
|
|
NAME=postproc
|
2006-01-14 20:07:36 +02:00
|
|
|
ifeq ($(BUILD_SHARED),yes)
|
2006-01-14 05:39:02 +02:00
|
|
|
LIBVERSION=$(SPPVERSION)
|
|
|
|
LIBMAJOR=$(SPPMAJOR)
|
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-15 02:28:36 +02:00
|
|
|
rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
|
2003-02-14 23:27:25 +02:00
|
|
|
|
2006-01-15 02:28:36 +02:00
|
|
|
distclean: clean
|
2006-01-27 01:42:30 +02:00
|
|
|
rm -f .depend
|
2003-02-14 23:27:25 +02:00
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(CC) -MM $(CFLAGS) postprocess.c 1>.depend
|
|
|
|
|
2006-01-14 20:07:36 +02:00
|
|
|
ifeq ($(BUILD_SHARED),yes)
|
2003-02-14 23:27:25 +02:00
|
|
|
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
|
|
|
|
2006-02-11 20:50:45 +02:00
|
|
|
|
|
|
|
install-lib-shared: $(SLIBNAME)
|
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
|
2006-01-14 05:39:02 +02: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 19:24:11 +03:00
|
|
|
endif
|
2006-02-11 18:50:45 +02:00
|
|
|
|
2006-02-11 20:50:45 +02:00
|
|
|
install-lib-static: $(LIB)
|
2006-02-11 18:50:45 +02:00
|
|
|
install -m 644 $(LIB) "$(libdir)"
|
|
|
|
|
|
|
|
install-headers:
|
2006-02-11 22:40:01 +02:00
|
|
|
install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h
|
2006-02-11 21:30:55 +02:00
|
|
|
install -m 644 $(SRC_PATH)/libpostproc.pc $(libdir)/pkgconfig
|
2003-02-14 23:27:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|