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