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