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

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