Statistics
| Branch: | Revision:

ffmpeg / postproc / Makefile @ f1846835

History | View | Annotate | Download (857 Bytes)

1

    
2
include ../config.mak
3

    
4
SWSLIB = libswscale.a
5

    
6
SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c
7
SWSOBJS=$(SWSSRCS:.c=.o)
8

    
9
CFLAGS  = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
10
# -I/usr/X11R6/include/
11

    
12
.SUFFIXES: .c .o
13

    
14
# .PHONY: all clean
15

    
16
.c.o:
17
	$(CC) -c $(CFLAGS) -I.. -o $@ $<
18

    
19
all:    $(SWSLIB)
20

    
21
$(SWSLIB):     $(SWSOBJS)
22
	$(AR) r $(SWSLIB) $(SWSOBJS)
23

    
24
clean:
25
	rm -f *.o *.a *~ *.so
26

    
27
distclean:
28
	rm -f Makefile.bak *.o *.a *~ *.so .depend
29

    
30
dep:    depend
31

    
32
depend:
33
	$(CC) -MM $(CFLAGS) $(SWSSRCS) 1>.depend
34

    
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
37

    
38
swscale-example: swscale-example.o $(SWSLIB)
39
	$(CC) swscale-example.o $(SWSLIB) ../libmpcodecs/img_format.o -lm -o swscale-example -W -Wall
40
#
41
# include dependency files if they exist
42
#
43
ifneq ($(wildcard .depend),)
44
include .depend
45
endif