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.

80 lines
1.7KB

  1. include ../../config.mak
  2. VPATH=$(SRC_PATH)/libavcodec/libpostproc
  3. LIB = $(LIBPREF)postproc$(LIBSUF)
  4. ifeq ($(SHARED_PP),yes)
  5. LIBVERSION=$(SPPVERSION)
  6. LIBMAJOR=$(SPPMAJOR)
  7. NAME=postproc
  8. SLIBNAME = $(SLIBPREF)postproc$(SLIBSUF)
  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 *.a *~ *$(SLIBSUF) $(LIB) $(SLIBNAME)
  21. distclean:
  22. rm -f Makefile.bak *.o *.a *~ *$(SLIBSUF) .depend
  23. dep: depend
  24. depend:
  25. $(CC) -MM $(CFLAGS) postprocess.c 1>.depend
  26. ifeq ($(SHARED_PP),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: all
  37. ifeq ($(SHARED_PP),yes)
  38. ifeq ($(CONFIG_WIN32),yes)
  39. install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
  40. else
  41. install -d $(libdir)
  42. install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
  43. $(libdir)/$(SLIBNAME_WITH_VERSION)
  44. ln -sf $(SLIBNAME_WITH_VERSION) \
  45. $(libdir)/$(SLIBNAME_WITH_MAJOR)
  46. ln -sf $(SLIBNAME_WITH_VERSION) \
  47. $(libdir)/$(SLIBNAME)
  48. $(LDCONFIG) || true
  49. endif
  50. endif
  51. mkdir -p $(prefix)/include/postproc
  52. install -m 644 $(SRC_PATH)/libavcodec/libpostproc/postprocess.h $(prefix)/include/postproc/postprocess.h
  53. install -d $(libdir)/pkgconfig
  54. install -m 644 ../../libpostproc.pc $(libdir)/pkgconfig
  55. #
  56. # include dependency files if they exist
  57. #
  58. ifneq ($(wildcard .depend),)
  59. include .depend
  60. endif