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.

30 lines
748B

  1. include ../config.mak
  2. NAME=swscale
  3. ifeq ($(BUILD_SHARED),yes)
  4. LIBVERSION=$(SWSVERSION)
  5. LIBMAJOR=$(SWSMAJOR)
  6. EXTRALIBS := -L../libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
  7. endif
  8. # NOTE: -I.. is needed to include config.h
  9. CFLAGS=-I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil $(OPTFLAGS) \
  10. -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
  11. -D_GNU_SOURCE
  12. OBJS= swscale.o rgb2rgb.o yuv2rgb.o
  13. ifeq ($(TARGET_ALTIVEC),yes)
  14. OBJS+= yuv2rgb_altivec.o
  15. endif
  16. HEADERS = swscale.h rgb2rgb.h
  17. include $(SRC_PATH)/common.mak
  18. cs_test: cs_test.c
  19. $(CC) $(CFLAGS) -o $@ $^ -L. -lswscale -L$(SRC_PATH)/libavutil -lavutil -lm
  20. swscale-example: swscale-example.c
  21. $(CC) $(CFLAGS) -o $@ $^ -L. -lswscale -L$(SRC_PATH)/libavutil -lavutil -lm