Add a "make install" target
This commit is contained in:
parent
f5fd72f61e
commit
45689f832b
6
Makefile
6
Makefile
@ -12,6 +12,7 @@ CFLAGS_M32=-m32
|
|||||||
CFLAGS_M64=-m64
|
CFLAGS_M64=-m64
|
||||||
BUILDTYPE=Release
|
BUILDTYPE=Release
|
||||||
V=Yes
|
V=Yes
|
||||||
|
PREFIX=/usr/local
|
||||||
|
|
||||||
ifeq (, $(ENABLE64BIT))
|
ifeq (, $(ENABLE64BIT))
|
||||||
ifeq ($(ARCH), x86_64)
|
ifeq ($(ARCH), x86_64)
|
||||||
@ -136,6 +137,11 @@ $(LIBPREFIX)wels.$(LIBSUFFIX): $(ENCODER_OBJS) $(DECODER_OBJS) $(PROCESSING_OBJS
|
|||||||
rm -f $@
|
rm -f $@
|
||||||
$(AR) $(AR_OPTS) $+
|
$(AR) $(AR_OPTS) $+
|
||||||
|
|
||||||
|
install: $(LIBPREFIX)wels.$(LIBSUFFIX)
|
||||||
|
mkdir -p $(PREFIX)/lib
|
||||||
|
mkdir -p $(PREFIX)/include/wels
|
||||||
|
install -m 644 $(LIBPREFIX)wels.$(LIBSUFFIX) $(PREFIX)/lib
|
||||||
|
install -m 644 codec/api/svc/codec*.h $(PREFIX)/include/wels
|
||||||
|
|
||||||
ifeq ($(HAVE_GTEST),Yes)
|
ifeq ($(HAVE_GTEST),Yes)
|
||||||
include build/gtest-targets.mk
|
include build/gtest-targets.mk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user