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.

73 lines
1.5KB

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