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.

47 lines
926B

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