Mercurial > libavcodec.hg
comparison libpostproc/Makefile @ 812:607e867a8be4 libavcodec
disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
| author | michael |
|---|---|
| date | Thu, 31 Oct 2002 10:21:44 +0000 |
| parents | b9156f8e6747 |
| children | d73ad03912f5 |
comparison
equal
deleted
inserted
replaced
| 811:972c8ee102d6 | 812:607e867a8be4 |
|---|---|
| 1 | 1 |
| 2 include ../config.mak | 2 include ../config.mak |
| 3 | 3 |
| 4 SWSLIB = libswscale.a | 4 SWSLIB = libswscale.a |
| 5 ifeq ($(SHARED_PP),yes) | |
| 5 SPPLIB = libpostproc.so | 6 SPPLIB = libpostproc.so |
| 6 SPPVERSION = 0.0.1 | 7 SPPVERSION = 0.0.1 |
| 8 endif | |
| 7 PPLIB = libpostproc.a | 9 PPLIB = libpostproc.a |
| 8 | 10 |
| 9 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c | 11 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c |
| 10 SWSOBJS=$(SWSSRCS:.c=.o) | 12 SWSOBJS=$(SWSSRCS:.c=.o) |
| 11 PPOBJS=postprocess.o | 13 PPOBJS=postprocess.o |
| 39 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | 41 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
| 40 | 42 |
| 41 cs_test: $(CS_TEST_OBJS) | 43 cs_test: $(CS_TEST_OBJS) |
| 42 $(CC) $(CS_TEST_OBJS) -o cs_test | 44 $(CC) $(CS_TEST_OBJS) -o cs_test |
| 43 | 45 |
| 46 ifeq ($(SHARED_PP),yes) | |
| 44 postprocess_pic.o: postprocess.c | 47 postprocess_pic.o: postprocess.c |
| 45 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -o $@ $< | 48 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -o $@ $< |
| 46 | 49 |
| 47 $(SPPLIB): $(SPPOBJS) | 50 $(SPPLIB): $(SPPOBJS) |
| 48 $(CC) -shared -Wl,-soname,$(SPPLIB).0 \ | 51 $(CC) -shared -Wl,-soname,$(SPPLIB).0 \ |
| 49 -o $(SPPLIB) $(SPPOBJS) | 52 -o $(SPPLIB) $(SPPOBJS) |
| 50 | 53 endif |
| 54 | |
| 51 $(PPLIB): $(PPOBJS) | 55 $(PPLIB): $(PPOBJS) |
| 52 $(AR) r $(PPLIB) $(PPOBJS) | 56 $(AR) r $(PPLIB) $(PPOBJS) |
| 53 | 57 |
| 54 install: all | 58 install: all |
| 55 ifeq ($(SHARED_PP),yes) | 59 ifeq ($(SHARED_PP),yes) |
