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.

53 lines
947B

  1. include ../config.mak
  2. SWSLIB = libswscale.a
  3. SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c
  4. SWSOBJS=$(SWSSRCS:.c=.o)
  5. ifeq ($(TARGET_ALTIVEC),yes)
  6. SWSOBJS += yuv2rgb_altivec.o
  7. endif
  8. CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
  9. # -I/usr/X11R6/include/
  10. .SUFFIXES: .c .o
  11. # .PHONY: all clean
  12. .c.o:
  13. $(CC) -c $(CFLAGS) -I.. -o $@ $<
  14. all: $(SWSLIB)
  15. $(SWSLIB): $(SWSOBJS)
  16. $(AR) r $(SWSLIB) $(SWSOBJS)
  17. $(RANLIB) $(SWSLIB)
  18. clean:
  19. rm -f *.o *.a *~ *.so cs_test swscale-example
  20. distclean: clean
  21. rm -f .depend
  22. dep: depend
  23. depend:
  24. $(CC) -MM $(CFLAGS) $(SWSSRCS) 1>.depend
  25. cs_test: cs_test.o $(SWSLIB)
  26. $(CC) cs_test.o $(SWSLIB) ../cpudetect.o -DFOR_MENCODER ../mp_msg.c -o cs_test -W -Wall
  27. swscale-example: swscale-example.o $(SWSLIB)
  28. $(CC) swscale-example.o $(SWSLIB) ../libmpcodecs/img_format.o -lm -o swscale-example -W -Wall
  29. #
  30. # include dependency files if they exist
  31. #
  32. ifneq ($(wildcard .depend),)
  33. include .depend
  34. endif