printf -> mp_msg
[mplayer/glamo.git] / postproc / Makefile
blob9dc3eb604bd3a41d0f5e8aec84122d8d7761a6d2
2 include ../config.mak
4 SWSLIB = libswscale.a
6 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c
7 SWSOBJS=$(SWSSRCS:.c=.o)
9 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
10 # -I/usr/X11R6/include/
12 .SUFFIXES: .c .o
14 # .PHONY: all clean
16 .c.o:
17 $(CC) -c $(CFLAGS) -I.. -o $@ $<
19 all: $(SWSLIB)
21 $(SWSLIB): $(SWSOBJS)
22 $(AR) r $(SWSLIB) $(SWSOBJS)
24 clean:
25 rm -f *.o *.a *~ *.so cs_test swscale-example
27 distclean:
28 rm -f Makefile.bak *.o *.a *~ *.so .depend cs_test swscale-example
30 dep: depend
32 depend:
33 $(CC) -MM $(CFLAGS) $(SWSSRCS) 1>.depend
35 cs_test: cs_test.o $(SWSLIB)
36 $(CC) cs_test.o $(SWSLIB) ../cpudetect.o -DFOR_MENCODER ../mp_msg.c -o cs_test -W -Wall
38 swscale-example: swscale-example.o $(SWSLIB)
39 $(CC) swscale-example.o $(SWSLIB) ../libmpcodecs/img_format.o -lm -o swscale-example -W -Wall
41 # include dependency files if they exist
43 ifneq ($(wildcard .depend),)
44 include .depend
45 endif