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.

78 lines
1.5KB

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