Mercurial > libavcodec.hg
annotate libpostproc/Makefile @ 1167:35b80080b2db libavcodec
support for DV aspect ratio and erroneous audio patch by (Dan Dennedy (dan at dennedy dot org) and Roman Shaposhnick <rvs at sun dot com>)
author | michaelni |
---|---|
date | Fri, 04 Apr 2003 13:45:45 +0000 |
parents | 8528d0b9e508 |
children | db903b6fd197 |
rev | line source |
---|---|
127 | 1 |
1069 | 2 include ../../config.mak |
127 | 3 |
812
607e867a8be4
disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents:
790
diff
changeset
|
4 ifeq ($(SHARED_PP),yes) |
787 | 5 SPPLIB = libpostproc.so |
6 SPPVERSION = 0.0.1 | |
812
607e867a8be4
disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents:
790
diff
changeset
|
7 endif |
787 | 8 PPLIB = libpostproc.a |
127 | 9 |
787 | 10 PPOBJS=postprocess.o |
11 SPPOBJS=postprocess_pic.o | |
127 | 12 |
610
015b33f3e750
removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents:
508
diff
changeset
|
13 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC) |
127 | 14 # -I/usr/X11R6/include/ |
15 | |
16 .SUFFIXES: .c .o | |
17 | |
18 # .PHONY: all clean | |
19 | |
20 .c.o: | |
1069 | 21 $(CC) -c $(CFLAGS) -I.. -I../.. -o $@ $< |
127 | 22 |
787 | 23 all: $(SWSLIB) $(PPLIB) $(SPPLIB) |
127 | 24 |
25 clean: | |
787 | 26 rm -f *.o *.a *~ *.so |
127 | 27 |
28 distclean: | |
787 | 29 rm -f Makefile.bak *.o *.a *~ *.so .depend |
127 | 30 |
31 dep: depend | |
32 | |
33 depend: | |
1069 | 34 $(CC) -MM $(CFLAGS) postprocess.c 1>.depend |
508
8f9fa4ec9cbb
colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents:
170
diff
changeset
|
35 |
812
607e867a8be4
disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents:
790
diff
changeset
|
36 ifeq ($(SHARED_PP),yes) |
787 | 37 postprocess_pic.o: postprocess.c |
1069 | 38 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $< |
787 | 39 |
40 $(SPPLIB): $(SPPOBJS) | |
41 $(CC) -shared -Wl,-soname,$(SPPLIB).0 \ | |
42 -o $(SPPLIB) $(SPPOBJS) | |
812
607e867a8be4
disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents:
790
diff
changeset
|
43 endif |
834 | 44 |
787 | 45 $(PPLIB): $(PPOBJS) |
46 $(AR) r $(PPLIB) $(PPOBJS) | |
47 | |
48 install: all | |
49 ifeq ($(SHARED_PP),yes) | |
50 install -d $(prefix)/lib | |
51 install -s -m 755 $(SPPLIB) $(prefix)/lib/$(SPPLIB).$(SPPVERSION) | |
52 ln -sf $(SPPLIB).$(SPPVERSION) $(prefix)/lib/$(SPPLIB) | |
53 ldconfig || true | |
54 mkdir -p $(prefix)/include/postproc | |
55 install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h | |
56 endif | |
57 | |
834 | 58 |
127 | 59 # |
60 # include dependency files if they exist | |
61 # | |
62 ifneq ($(wildcard .depend),) | |
63 include .depend | |
64 endif |