Mercurial > mplayer.hg
annotate postproc/Makefile @ 9180:5750570b4a46
10l for XYZ
author | diego |
---|---|
date | Thu, 30 Jan 2003 23:37:17 +0000 |
parents | dff74a42db56 |
children | 1e8f3293a822 |
rev | line source |
---|---|
2444 | 1 |
2 include ../config.mak | |
3 | |
7946 | 4 SWSLIB = libswscale.a |
7994
458992506962
disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents:
7956
diff
changeset
|
5 ifeq ($(SHARED_PP),yes) |
7946 | 6 SPPLIB = libpostproc.so |
7 SPPVERSION = 0.0.1 | |
7994
458992506962
disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents:
7956
diff
changeset
|
8 endif |
7946 | 9 PPLIB = libpostproc.a |
2444 | 10 |
7946 | 11 SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c |
12 SWSOBJS=$(SWSSRCS:.c=.o) | |
13 PPOBJS=postprocess.o | |
14 SPPOBJS=postprocess_pic.o | |
8231 | 15 CS_TEST_OBJS=cs_test.o rgb2rgb.o ../cpudetect.o ../mp_msg.o ../libvo/aclib.o |
2444 | 16 |
7073
b69ddd4d3bb9
removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents:
6603
diff
changeset
|
17 CFLAGS = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC) |
2444 | 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 | |
7946 | 27 all: $(SWSLIB) $(PPLIB) $(SPPLIB) |
2444 | 28 |
7946 | 29 $(SWSLIB): $(SWSOBJS) |
30 $(AR) r $(SWSLIB) $(SWSOBJS) | |
2444 | 31 |
32 clean: | |
7946 | 33 rm -f *.o *.a *~ *.so |
2444 | 34 |
35 distclean: | |
7946 | 36 rm -f Makefile.bak *.o *.a *~ *.so .depend |
2444 | 37 |
38 dep: depend | |
39 | |
40 depend: | |
8098 | 41 $(CC) -MM $(CFLAGS) $(SWSSRCS) postprocess.c 1>.depend |
2444 | 42 |
6603
6eab60ea6c11
colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents:
3143
diff
changeset
|
43 cs_test: $(CS_TEST_OBJS) |
6eab60ea6c11
colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents:
3143
diff
changeset
|
44 $(CC) $(CS_TEST_OBJS) -o cs_test |
6eab60ea6c11
colorspace converter tests (memory corruption tests at different width/src/dst)
michael
parents:
3143
diff
changeset
|
45 |
7994
458992506962
disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents:
7956
diff
changeset
|
46 ifeq ($(SHARED_PP),yes) |
7946 | 47 postprocess_pic.o: postprocess.c |
7956 | 48 $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -o $@ $< |
7946 | 49 |
50 $(SPPLIB): $(SPPOBJS) | |
51 $(CC) -shared -Wl,-soname,$(SPPLIB).0 \ | |
52 -o $(SPPLIB) $(SPPOBJS) | |
7994
458992506962
disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it
michael
parents:
7956
diff
changeset
|
53 endif |
8098 | 54 |
7946 | 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 | |
8098 | 68 |
2444 | 69 # |
70 # include dependency files if they exist | |
71 # | |
72 ifneq ($(wildcard .depend),) | |
73 include .depend | |
74 endif |