Merge pull request #267 from mstorsjo/install
Add a "make install" target
This commit is contained in:
commit
e366f5779b
14
Makefile
14
Makefile
@ -12,6 +12,7 @@ CFLAGS_M32=-m32
|
||||
CFLAGS_M64=-m64
|
||||
BUILDTYPE=Release
|
||||
V=Yes
|
||||
PREFIX=/usr/local
|
||||
|
||||
ifeq (, $(ENABLE64BIT))
|
||||
ifeq ($(ARCH), x86_64)
|
||||
@ -129,6 +130,19 @@ include codec/processing/targets.mk
|
||||
include codec/console/dec/targets.mk
|
||||
include codec/console/enc/targets.mk
|
||||
|
||||
libraries: $(LIBPREFIX)wels.$(LIBSUFFIX)
|
||||
LIBRARIES += $(LIBPREFIX)wels.$(LIBSUFFIX)
|
||||
|
||||
$(LIBPREFIX)wels.$(LIBSUFFIX): $(ENCODER_OBJS) $(DECODER_OBJS) $(PROCESSING_OBJS) $(COMMON_OBJS)
|
||||
rm -f $@
|
||||
$(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)
|
||||
include build/gtest-targets.mk
|
||||
include test/targets.mk
|
||||
|
Loading…
Reference in New Issue
Block a user