Mercurial > libavcodec.hg
comparison libpostproc/Makefile @ 1069:8528d0b9e508 libavcodec
moving postprocess to ffmpeg/libavcodec
author | michaelni |
---|---|
date | Fri, 14 Feb 2003 21:27:25 +0000 |
parents | 54aa0bb40e97 |
children | db903b6fd197 |
comparison
equal
deleted
inserted
replaced
1068:a5be963709d1 | 1069:8528d0b9e508 |
---|---|
1 | 1 |
2 include ../config.mak | 2 include ../../config.mak |
3 | 3 |
4 SWSLIB = libswscale.a | |
5 ifeq ($(SHARED_PP),yes) | 4 ifeq ($(SHARED_PP),yes) |
6 SPPLIB = libpostproc.so | 5 SPPLIB = libpostproc.so |
7 SPPVERSION = 0.0.1 | 6 SPPVERSION = 0.0.1 |
8 endif | 7 endif |
9 PPLIB = libpostproc.a | 8 PPLIB = libpostproc.a |
10 | 9 |
11 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c | |
12 SWSOBJS=$(SWSSRCS:.c=.o) | |
13 PPOBJS=postprocess.o | 10 PPOBJS=postprocess.o |
14 SPPOBJS=postprocess_pic.o | 11 SPPOBJS=postprocess_pic.o |
15 CS_TEST_OBJS=cs_test.o rgb2rgb.o ../cpudetect.o ../mp_msg.o ../libvo/aclib.o | |
16 | 12 |
17 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC) | 13 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC) |
18 # -I/usr/X11R6/include/ | 14 # -I/usr/X11R6/include/ |
19 | 15 |
20 .SUFFIXES: .c .o | 16 .SUFFIXES: .c .o |
21 | 17 |
22 # .PHONY: all clean | 18 # .PHONY: all clean |
23 | 19 |
24 .c.o: | 20 .c.o: |
25 $(CC) -c $(CFLAGS) -I.. -o $@ $< | 21 $(CC) -c $(CFLAGS) -I.. -I../.. -o $@ $< |
26 | 22 |
27 all: $(SWSLIB) $(PPLIB) $(SPPLIB) | 23 all: $(SWSLIB) $(PPLIB) $(SPPLIB) |
28 | |
29 $(SWSLIB): $(SWSOBJS) | |
30 $(AR) r $(SWSLIB) $(SWSOBJS) | |
31 | 24 |
32 clean: | 25 clean: |
33 rm -f *.o *.a *~ *.so | 26 rm -f *.o *.a *~ *.so |
34 | 27 |
35 distclean: | 28 distclean: |
36 rm -f Makefile.bak *.o *.a *~ *.so .depend | 29 rm -f Makefile.bak *.o *.a *~ *.so .depend |
37 | 30 |
38 dep: depend | 31 dep: depend |
39 | 32 |
40 depend: | 33 depend: |
41 $(CC) -MM $(CFLAGS) $(SWSSRCS) postprocess.c 1>.depend | 34 $(CC) -MM $(CFLAGS) postprocess.c 1>.depend |
42 | |
43 cs_test: $(CS_TEST_OBJS) | |
44 $(CC) $(CS_TEST_OBJS) -o cs_test | |
45 | 35 |
46 ifeq ($(SHARED_PP),yes) | 36 ifeq ($(SHARED_PP),yes) |
47 postprocess_pic.o: postprocess.c | 37 postprocess_pic.o: postprocess.c |
48 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -o $@ $< | 38 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $< |
49 | 39 |
50 $(SPPLIB): $(SPPOBJS) | 40 $(SPPLIB): $(SPPOBJS) |
51 $(CC) -shared -Wl,-soname,$(SPPLIB).0 \ | 41 $(CC) -shared -Wl,-soname,$(SPPLIB).0 \ |
52 -o $(SPPLIB) $(SPPOBJS) | 42 -o $(SPPLIB) $(SPPOBJS) |
53 endif | 43 endif |