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
|
|
|
|
SWSOBJS=$(SWSSRCS:.c=.o)
|
2002-11-18 12:39:22 +02:00
|
|
|
CS_TEST_OBJS=cs_test.o rgb2rgb.o ../cpudetect.o ../mp_msg.o ../libvo/aclib.o
|
2001-10-24 10:34:41 +03:00
|
|
|
|
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)
|
2001-10-24 10:34:41 +03:00
|
|
|
|
|
|
|
clean:
|
2002-10-28 21:31:04 +02:00
|
|
|
rm -f *.o *.a *~ *.so
|
2001-10-24 10:34:41 +03:00
|
|
|
|
|
|
|
distclean:
|
2002-10-28 21:31:04 +02:00
|
|
|
rm -f Makefile.bak *.o *.a *~ *.so .depend
|
2001-10-24 10:34:41 +03:00
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
|
|
|
depend:
|
2002-11-04 12:01:15 +02:00
|
|
|
$(CC) -MM $(CFLAGS) $(SWSSRCS) postprocess.c 1>.depend
|
2001-10-24 10:34:41 +03:00
|
|
|
|
2002-06-29 18:01:23 +03:00
|
|
|
cs_test: $(CS_TEST_OBJS)
|
|
|
|
$(CC) $(CS_TEST_OBJS) -o cs_test
|
|
|
|
|
2001-10-24 10:34:41 +03:00
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|