mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 10:34:05 +00:00
Add making symlinks to make install.
Running "make install" now creates symlinks libkvazaar.so and libkvazaar.so.X pointing to libkvazaar.so.X.Y.Z.
This commit is contained in:
parent
c94d91061c
commit
9cfbd55ea8
28
src/Makefile
28
src/Makefile
|
@ -8,20 +8,26 @@ INCDIR = $(PREFIX)/include
|
||||||
LIBDIR = $(PREFIX)/lib
|
LIBDIR = $(PREFIX)/lib
|
||||||
DLLDIR = $(BINDIR)
|
DLLDIR = $(BINDIR)
|
||||||
|
|
||||||
PROG = ./kvazaar
|
# Library version number
|
||||||
DEBUG = ./kvazaar_debug
|
VER_MAJOR = 0
|
||||||
TESTS = ./kvazaar_tests
|
VER_MINOR = 0
|
||||||
LIB = ./libkvazaar.so.0.0.0
|
VER_RELEASE = 0
|
||||||
SONAME = libkvazaar.so.0
|
|
||||||
DLL = ./kvazaar.dll
|
PROG = kvazaar
|
||||||
IMPLIB = ./libkvazaar.dll.a
|
DEBUG = kvazaar_debug
|
||||||
INC = ./kvazaar.h \
|
TESTS = kvazaar_tests
|
||||||
./kvazaar_version.h
|
SO = libkvazaar.so
|
||||||
|
LIB = $(SO).$(VER_MAJOR).$(VER_MINOR).$(VER_RELEASE)
|
||||||
|
DLL = kvazaar.dll
|
||||||
|
IMPLIB = libkvazaar.dll.a
|
||||||
|
INC = kvazaar.h \
|
||||||
|
kvazaar_version.h
|
||||||
|
|
||||||
# Compilers and other tools
|
# Compilers and other tools
|
||||||
AS = yasm
|
AS = yasm
|
||||||
LD = gcc
|
LD = gcc
|
||||||
INSTALL = install
|
INSTALL = install
|
||||||
|
LN_S = ln -s
|
||||||
|
|
||||||
# Do not use variable length arrays because they don't work in Visual Studio 2013.
|
# Do not use variable length arrays because they don't work in Visual Studio 2013.
|
||||||
WARNINGS = -Wall -Wtype-limits -Wvla
|
WARNINGS = -Wall -Wtype-limits -Wvla
|
||||||
|
@ -212,7 +218,7 @@ $(PROG): $(RELEASE_OBJS)
|
||||||
$(LD) $^ $(LDFLAGS) -o $@
|
$(LD) $^ $(LDFLAGS) -o $@
|
||||||
|
|
||||||
$(LIB): $(RELEASE_OBJS)
|
$(LIB): $(RELEASE_OBJS)
|
||||||
$(LD) $^ $(LDFLAGS) -shared -Wl,-soname,$(SONAME) -o $@
|
$(LD) $^ $(LDFLAGS) -shared -Wl,-soname,$(SO).$(VER_MAJOR) -o $@
|
||||||
|
|
||||||
$(DLL): $(RELEASE_OBJS)
|
$(DLL): $(RELEASE_OBJS)
|
||||||
$(LD) $^ $(LDFLAGS) -shared -Wl,--out-implib,$(IMPLIB) -o $@
|
$(LD) $^ $(LDFLAGS) -shared -Wl,--out-implib,$(IMPLIB) -o $@
|
||||||
|
@ -248,6 +254,8 @@ install-lib: $(LIB)
|
||||||
$(INSTALL) -d $(DESTDIR)$(LIBDIR)
|
$(INSTALL) -d $(DESTDIR)$(LIBDIR)
|
||||||
$(INSTALL) -m644 $(INC) -t $(DESTDIR)$(INCDIR)
|
$(INSTALL) -m644 $(INC) -t $(DESTDIR)$(INCDIR)
|
||||||
$(INSTALL) -m644 $(LIB) -t $(DESTDIR)$(LIBDIR)
|
$(INSTALL) -m644 $(LIB) -t $(DESTDIR)$(LIBDIR)
|
||||||
|
$(LN_S) -f -T $(LIB) $(DESTDIR)$(LIBDIR)/$(SO).$(VER_MAJOR)
|
||||||
|
$(LN_S) -f -T $(LIB) $(DESTDIR)$(LIBDIR)/$(SO)
|
||||||
|
|
||||||
install-dll: $(DLL)
|
install-dll: $(DLL)
|
||||||
$(INSTALL) -d $(DESTDIR)$(DLLDIR)
|
$(INSTALL) -d $(DESTDIR)$(DLLDIR)
|
||||||
|
|
Loading…
Reference in a new issue