Mercurial > libavcodec.hg
annotate libpostproc/Makefile @ 865:704f13bfc652 libavcodec
* minor warning fix
| author | kabi |
|---|---|
| date | Thu, 14 Nov 2002 19:04:40 +0000 |
| parents | d73ad03912f5 |
| children | 47f44f256a3c |
| rev | line source |
|---|---|
| 127 | 1 |
| 2 include ../config.mak | |
| 3 | |
| 787 | 4 SWSLIB = libswscale.a |
|
812
607e867a8be4
disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents:
790
diff
changeset
|
5 ifeq ($(SHARED_PP),yes) |
| 787 | 6 SPPLIB = libpostproc.so |
| 7 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
|
8 endif |
| 787 | 9 PPLIB = libpostproc.a |
| 127 | 10 |
| 787 | 11 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c |
| 12 SWSOBJS=$(SWSSRCS:.c=.o) | |
| 13 PPOBJS=postprocess.o | |
| 14 SPPOBJS=postprocess_pic.o | |
|
508
8f9fa4ec9cbb
colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents:
170
diff
changeset
|
15 CS_TEST_OBJS=cs_test.o rgb2rgb.o ../cpudetect.o ../mp_msg.o |
| 127 | 16 |
|
610
015b33f3e750
removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents:
508
diff
changeset
|
17 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC) |
| 127 | 18 # -I/usr/X11R6/include/ |
| 19 | |
| 20 .SUFFIXES: .c .o | |
| 21 | |
| 22 # .PHONY: all clean | |
| 23 | |
| 24 .c.o: | |
| 25 $(CC) -c $(CFLAGS) -o $@ $< | |
| 26 | |
| 787 | 27 all: $(SWSLIB) $(PPLIB) $(SPPLIB) |
| 127 | 28 |
| 787 | 29 $(SWSLIB): $(SWSOBJS) |
| 30 $(AR) r $(SWSLIB) $(SWSOBJS) | |
| 127 | 31 |
| 32 clean: | |
| 787 | 33 rm -f *.o *.a *~ *.so |
| 127 | 34 |
| 35 distclean: | |
| 787 | 36 rm -f Makefile.bak *.o *.a *~ *.so .depend |
| 127 | 37 |
| 38 dep: depend | |
| 39 | |
| 40 depend: | |
| 834 | 41 $(CC) -MM $(CFLAGS) $(SWSSRCS) postprocess.c 1>.depend |
| 127 | 42 |
|
508
8f9fa4ec9cbb
colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents:
170
diff
changeset
|
43 cs_test: $(CS_TEST_OBJS) |
|
8f9fa4ec9cbb
colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents:
170
diff
changeset
|
44 $(CC) $(CS_TEST_OBJS) -o cs_test |
|
8f9fa4ec9cbb
colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents:
170
diff
changeset
|
45 |
|
812
607e867a8be4
disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents:
790
diff
changeset
|
46 ifeq ($(SHARED_PP),yes) |
| 787 | 47 postprocess_pic.o: postprocess.c |
| 790 | 48 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -o $@ $< |
| 787 | 49 |
| 50 $(SPPLIB): $(SPPOBJS) | |
| 51 $(CC) -shared -Wl,-soname,$(SPPLIB).0 \ | |
| 52 -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
|
53 endif |
| 834 | 54 |
| 787 | 55 $(PPLIB): $(PPOBJS) |
| 56 $(AR) r $(PPLIB) $(PPOBJS) | |
| 57 | |
| 58 install: all | |
| 59 ifeq ($(SHARED_PP),yes) | |
| 60 install -d $(prefix)/lib | |
| 61 install -s -m 755 $(SPPLIB) $(prefix)/lib/$(SPPLIB).$(SPPVERSION) | |
| 62 ln -sf $(SPPLIB).$(SPPVERSION) $(prefix)/lib/$(SPPLIB) | |
| 63 ldconfig || true | |
| 64 mkdir -p $(prefix)/include/postproc | |
| 65 install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h | |
| 66 endif | |
| 67 | |
| 834 | 68 |
| 127 | 69 # |
| 70 # include dependency files if they exist | |
| 71 # | |
| 72 ifneq ($(wildcard .depend),) | |
| 73 include .depend | |
| 74 endif |
