2001-10-24 10:34:41 +03:00
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
|
2002-10-28 21:31:04 +02:00
|
|
|
SWSLIB = libswscale.a
|
2001-10-24 10:34:41 +03:00
|
|
|
|
2002-10-28 21:31:04 +02:00
|
|
|
SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c
|
2004-06-27 03:07:15 +03:00
|
|
|
|
2002-10-28 21:31:04 +02:00
|
|
|
SWSOBJS=$(SWSSRCS:.c=.o)
|
2001-10-24 10:34:41 +03:00
|
|
|
|
2004-06-27 03:07:15 +03:00
|
|
|
ifeq ($(TARGET_ALTIVEC),yes)
|
|
|
|
SWSOBJS += yuv2rgb_altivec.o
|
|
|
|
endif
|
|
|
|
|
2002-08-23 02:29:46 +03:00
|
|
|
CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
|
2001-10-24 10:34:41 +03:00
|
|
|
# -I/usr/X11R6/include/
|
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
2003-02-11 23:13:30 +02:00
|
|
|
$(CC) -c $(CFLAGS) -I.. -o $@ $<
|
2001-10-24 10:34:41 +03:00
|
|
|
|
2003-02-14 23:27:25 +02:00
|
|
|
all: $(SWSLIB)
|
2001-10-24 10:34:41 +03:00
|
|
|
|
2002-10-28 21:31:04 +02:00
|
|
|
$(SWSLIB): $(SWSOBJS)
|
|
|
|
$(AR) r $(SWSLIB) $(SWSOBJS)
|
2004-06-24 15:52:17 +03:00
|
|
|
$(RANLIB) $(SWSLIB)
|
2001-10-24 10:34:41 +03:00
|
|
|
|
|
|
|
clean:
|
2003-07-28 18:24:38 +03:00
|
|
|
rm -f *.o *.a *~ *.so cs_test swscale-example
|
2001-10-24 10:34:41 +03:00
|
|
|
|
|
|
|
distclean:
|
2003-07-28 18:24:38 +03:00
|
|
|
rm -f Makefile.bak *.o *.a *~ *.so .depend cs_test swscale-example
|
2001-10-24 10:34:41 +03:00
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
|
|
|
depend:
|
2003-04-09 02:46:35 +03:00
|
|
|
$(CC) -MM $(CFLAGS) $(SWSSRCS) 1>.depend
|
2001-10-24 10:34:41 +03:00
|
|
|
|
2003-05-23 23:29:36 +03:00
|
|
|
cs_test: cs_test.o $(SWSLIB)
|
|
|
|
$(CC) cs_test.o $(SWSLIB) ../cpudetect.o -DFOR_MENCODER ../mp_msg.c -o cs_test -W -Wall
|
2002-06-29 18:01:23 +03:00
|
|
|
|
2003-04-17 22:32:46 +03:00
|
|
|
swscale-example: swscale-example.o $(SWSLIB)
|
2003-04-25 20:16:55 +03:00
|
|
|
$(CC) swscale-example.o $(SWSLIB) ../libmpcodecs/img_format.o -lm -o swscale-example -W -Wall
|
2001-10-24 10:34:41 +03:00
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|
2004-06-27 03:07:15 +03:00
|
|
|
|