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