Revision fa30d082 libavcodec/libpostproc/Makefile

View differences:

libavcodec/libpostproc/Makefile
1
#FIXME: This Makefile differs from all the others for no good reason...
2 1

  
3 2
include ../../config.mak
4 3

  
5 4
VPATH=$(SRC_PATH)/libavcodec/libpostproc
6 5

  
6
LIB = $(LIBPREF)postproc$(LIBSUF)
7 7
ifeq ($(SHARED_PP),yes)
8
SPPLIBNAME = $(SLIBPREF)postproc$(SLIBSUF)
9
SPPLIBMAJOR = $(SPPLIBNAME).$(SPPMAJOR)
10
SPPLIB = $(SPPLIBNAME).$(SPPVERSION)
11
LIBVERSION = $(SPPLIB)
12 8
SLIBNAME = $(SLIBPREF)postproc$(SLIBSUF)
13 9
endif
14
PPLIB = $(LIBPREF)postproc$(LIBSUF)
15 10

  
16
PPOBJS=postprocess.o
17
SPPOBJS=postprocess_pic.o
11
OBJS=postprocess.o
12
SOBJS=postprocess_pic.o
18 13

  
19 14
CFLAGS  = $(OPTFLAGS) $(MLIB_INC) -I. -I.. $(EXTRA_INC)
20 15
# -I/usr/X11R6/include/
......
26 21
.c.o:
27 22
	$(CC) -c $(CFLAGS) $(LIBOBJFLAGS) -I$(SRC_PATH)/libavcodec -I../.. -o $@ $<
28 23

  
29
all:    $(SWSLIB) $(PPLIB) $(SPPLIBNAME)
24
all:    $(SWSLIB) $(LIB) $(SLIBNAME)
30 25

  
31 26
clean:
32
	rm -f *.o *.a *~ *$(SLIBSUF) $(PPLIB) $(SPPLIBNAME)
27
	rm -f *.o *.a *~ *$(SLIBSUF) $(LIB) $(SLIBNAME)
33 28

  
34 29
distclean:
35 30
	rm -f Makefile.bak *.o *.a *~ *$(SLIBSUF) .depend
......
43 38
postprocess_pic.o: postprocess.c
44 39
	$(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $<
45 40

  
46
$(SPPLIBNAME): $(SPPOBJS)
47
	$(CC) $(SHFLAGS) -o $(SPPLIBNAME) $(SPPOBJS)
41
$(SLIBNAME): $(SOBJS)
42
	$(CC) $(SHFLAGS) -o $(SLIBNAME) $(SOBJS)
48 43
endif
49 44

  
50
$(PPLIB): $(PPOBJS)
45
$(LIB): $(OBJS)
51 46
	rm -f $@
52
	$(AR) rc $@ $(PPOBJS)
47
	$(AR) rc $@ $(OBJS)
53 48
	$(RANLIB) $@
54 49

  
55 50
install: all
56 51
ifeq ($(SHARED_PP),yes)
57 52
ifeq ($(CONFIG_WIN32),yes)
58
	install $(INSTALLSTRIP) -m 755 $(SPPLIBNAME) "$(prefix)"
53
	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
59 54
else
60 55
	install -d $(libdir)
61
	install $(INSTALLSTRIP) -m 755 $(SPPLIBNAME) $(libdir)/$(SPPLIB)
62
	ln -sf $(SPPLIB) $(libdir)/$(SPPLIBNAME)
63
	ln -sf $(SPPLIB) $(libdir)/$(SPPLIBMAJOR)
64
	install -d $(libdir)/pkgconfig
65
	install -m 644 ../../libpostproc.pc $(libdir)/pkgconfig
56
	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) $(libdir)/libpostproc-$(VERSION)$(SLIBSUF)
57
	ln -sf $(SLIBPREF)postproc-$(VERSION)$(SLIBSUF) $(libdir)/$(SLIBNAME)
66 58
	$(LDCONFIG) || true
67 59
endif
68 60
endif
69 61
	mkdir -p $(prefix)/include/postproc
70 62
	install -m 644 $(SRC_PATH)/libavcodec/libpostproc/postprocess.h $(prefix)/include/postproc/postprocess.h
63
	install -d $(libdir)/pkgconfig
64
	install -m 644 ../../libpostproc.pc $(libdir)/pkgconfig
71 65

  
72 66

  
73 67
#

Also available in: Unified diff