You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
1.6KB

  1. include ../../config.mak
  2. VPATH=$(SRC_PATH)/libavcodec/libpostproc
  3. # Overload incdir, postproc include files go in a different directory.
  4. incdir=$(prefix)/include/postproc
  5. NAME=postproc
  6. ifeq ($(BUILD_SHARED),yes)
  7. LIBVERSION=$(SPPVERSION)
  8. LIBMAJOR=$(SPPMAJOR)
  9. endif
  10. OBJS=postprocess.o
  11. SOBJS=postprocess_pic.o
  12. CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
  13. # -I/usr/X11R6/include/
  14. .SUFFIXES: .c .o
  15. # .PHONY: all clean
  16. .c.o:
  17. $(CC) -c $(CFLAGS) $(LIBOBJFLAGS) -I$(SRC_PATH)/libavcodec -I../.. -o $@ $<
  18. all: $(SWSLIB) $(LIB) $(SLIBNAME)
  19. clean:
  20. rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
  21. distclean: clean
  22. rm -f .depend
  23. dep: depend
  24. depend:
  25. $(CC) -MM $(CFLAGS) postprocess.c 1>.depend
  26. ifeq ($(BUILD_SHARED),yes)
  27. postprocess_pic.o: postprocess.c
  28. $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $<
  29. $(SLIBNAME): $(SOBJS)
  30. $(CC) $(SHFLAGS) -o $(SLIBNAME) $(SOBJS)
  31. endif
  32. $(LIB): $(OBJS)
  33. rm -f $@
  34. $(AR) rc $@ $(OBJS)
  35. $(RANLIB) $@
  36. install-lib-shared: $(SLIBNAME)
  37. ifeq ($(CONFIG_WIN32),yes)
  38. install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
  39. else
  40. install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
  41. $(libdir)/$(SLIBNAME_WITH_VERSION)
  42. ln -sf $(SLIBNAME_WITH_VERSION) \
  43. $(libdir)/$(SLIBNAME_WITH_MAJOR)
  44. ln -sf $(SLIBNAME_WITH_VERSION) \
  45. $(libdir)/$(SLIBNAME)
  46. endif
  47. install-lib-static: $(LIB)
  48. install -m 644 $(LIB) "$(libdir)"
  49. install-headers:
  50. install -d "$(incdir)"
  51. install -m 644 postprocess.h "$(incdir)/postprocess.h"
  52. install -m 644 $(SRC_PATH)/libpostproc.pc "$(libdir)/pkgconfig"
  53. #
  54. # include dependency files if they exist
  55. #
  56. ifneq ($(wildcard .depend),)
  57. include .depend
  58. endif