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.

46 lines
905B

  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. clean:
  15. rm -f *.o *.a *~ *.so cs_test swscale-example
  16. distclean:
  17. rm -f Makefile.bak *.o *.a *~ *.so .depend cs_test swscale-example
  18. dep: depend
  19. depend:
  20. $(CC) -MM $(CFLAGS) $(SWSSRCS) 1>.depend
  21. cs_test: cs_test.o $(SWSLIB)
  22. $(CC) cs_test.o $(SWSLIB) ../cpudetect.o -DFOR_MENCODER ../mp_msg.c -o cs_test -W -Wall
  23. swscale-example: swscale-example.o $(SWSLIB)
  24. $(CC) swscale-example.o $(SWSLIB) ../libmpcodecs/img_format.o -lm -o swscale-example -W -Wall
  25. #
  26. # include dependency files if they exist
  27. #
  28. ifneq ($(wildcard .depend),)
  29. include .depend
  30. endif