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.

79 lines
1.8KB

  1. #FIXME: This Makefile differs from all the others for no good reason...
  2. include ../../config.mak
  3. VPATH=$(SRC_PATH)/libavcodec/libpostproc
  4. ifeq ($(SHARED_PP),yes)
  5. SPPLIBNAME = $(SLIBPREF)postproc$(SLIBSUF)
  6. SPPLIBMAJOR = $(SPPLIBNAME).$(SPPMAJOR)
  7. SPPLIB = $(SPPLIBNAME).$(SPPVERSION)
  8. LIBVERSION = $(SPPLIB)
  9. SLIBNAME = $(SLIBPREF)postproc$(SLIBSUF)
  10. endif
  11. PPLIB = $(LIBPREF)postproc$(LIBSUF)
  12. PPOBJS=postprocess.o
  13. SPPOBJS=postprocess_pic.o
  14. CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
  15. # -I/usr/X11R6/include/
  16. .SUFFIXES: .c .o
  17. # .PHONY: all clean
  18. .c.o:
  19. $(CC) -c $(CFLAGS) $(LIBOBJFLAGS) -I$(SRC_PATH)/libavcodec -I../.. -o $@ $<
  20. all: $(SWSLIB) $(PPLIB) $(SPPLIBNAME)
  21. clean:
  22. rm -f *.o *.a *~ *$(SLIBSUF) $(PPLIB) $(SPPLIBNAME)
  23. distclean:
  24. rm -f Makefile.bak *.o *.a *~ *$(SLIBSUF) .depend
  25. dep: depend
  26. depend:
  27. $(CC) -MM $(CFLAGS) postprocess.c 1>.depend
  28. ifeq ($(SHARED_PP),yes)
  29. postprocess_pic.o: postprocess.c
  30. $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $<
  31. $(SPPLIBNAME): $(SPPOBJS)
  32. $(CC) $(SHFLAGS) -o $(SPPLIBNAME) $(SPPOBJS)
  33. endif
  34. $(PPLIB): $(PPOBJS)
  35. rm -f $@
  36. $(AR) rc $@ $(PPOBJS)
  37. $(RANLIB) $@
  38. install: all
  39. ifeq ($(SHARED_PP),yes)
  40. ifeq ($(CONFIG_WIN32),yes)
  41. install $(INSTALLSTRIP) -m 755 $(SPPLIBNAME) "$(prefix)"
  42. else
  43. install -d $(libdir)
  44. install $(INSTALLSTRIP) -m 755 $(SPPLIBNAME) $(libdir)/$(SPPLIB)
  45. ln -sf $(SPPLIB) $(libdir)/$(SPPLIBNAME)
  46. ln -sf $(SPPLIB) $(libdir)/$(SPPLIBMAJOR)
  47. install -d $(libdir)/pkgconfig
  48. install -m 644 ../../libpostproc.pc $(libdir)/pkgconfig
  49. $(LDCONFIG) || true
  50. endif
  51. endif
  52. mkdir -p $(prefix)/include/postproc
  53. install -m 644 $(SRC_PATH)/libavcodec/libpostproc/postprocess.h $(prefix)/include/postproc/postprocess.h
  54. #
  55. # include dependency files if they exist
  56. #
  57. ifneq ($(wildcard .depend),)
  58. include .depend
  59. endif