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.

45 lines
710B

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