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
891B

  1. include ../config.mak
  2. SWSLIB = libswscale.a
  3. SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c
  4. SWSOBJS=$(SWSSRCS:.c=.o)
  5. CS_TEST_OBJS=cs_test.o rgb2rgb.o ../cpudetect.o ../mp_msg.o ../libvo/aclib.o
  6. CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
  7. # -I/usr/X11R6/include/
  8. .SUFFIXES: .c .o
  9. # .PHONY: all clean
  10. .c.o:
  11. $(CC) -c $(CFLAGS) -I.. -o $@ $<
  12. all: $(SWSLIB)
  13. $(SWSLIB): $(SWSOBJS)
  14. $(AR) r $(SWSLIB) $(SWSOBJS)
  15. clean:
  16. rm -f *.o *.a *~ *.so
  17. distclean:
  18. rm -f Makefile.bak *.o *.a *~ *.so .depend
  19. dep: depend
  20. depend:
  21. $(CC) -MM $(CFLAGS) $(SWSSRCS) 1>.depend
  22. cs_test: $(CS_TEST_OBJS)
  23. $(CC) $(CS_TEST_OBJS) -o cs_test
  24. swscale-example: swscale-example.o $(SWSLIB)
  25. $(CC) swscale-example.o $(SWSLIB) ../cpudetect.o ../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