mirror of
https://gitee.com/openharmony/third_party_libnl
synced 2025-01-21 02:05:58 +00:00
Define datarootdir to silent autoconf
This commit is contained in:
parent
477e351fd4
commit
5ab64d5173
@ -6,7 +6,7 @@
|
||||
# License as published by the Free Software Foundation version 2.1
|
||||
# of the License.
|
||||
#
|
||||
# Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
|
||||
# Copyright (c) 2003-2008 Thomas Graf <tgraf@suug.ch>
|
||||
#
|
||||
|
||||
CC := @CC@
|
||||
@ -24,6 +24,7 @@ libdir := @libdir@
|
||||
includedir := @includedir@
|
||||
mandir := @mandir@
|
||||
sysconfdir := @sysconfdir@
|
||||
datarootdir := @datarootdir@
|
||||
|
||||
AR := ar
|
||||
RM := rm
|
||||
|
@ -6,7 +6,7 @@
|
||||
# License as published by the Free Software Foundation version 2.1
|
||||
# of the License.
|
||||
#
|
||||
# Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
|
||||
# Copyright (c) 2003-2008 Thomas Graf <tgraf@suug.ch>
|
||||
#
|
||||
|
||||
.SUFFIXES:
|
||||
|
11
lib/Makefile
11
lib/Makefile
@ -35,7 +35,6 @@ OBJ := $(CIN:%.c=%.o)
|
||||
CFLAGS += -fPIC
|
||||
OUT_SLIB := $(PACKAGE_NAME).so.$(PACKAGE_VERSION)
|
||||
LN_SLIB := $(PACKAGE_NAME).so
|
||||
LN1_SLIB := $(LN_SLIB).1
|
||||
|
||||
export
|
||||
|
||||
@ -48,11 +47,9 @@ all:
|
||||
|
||||
$(OUT_SLIB): ../Makefile.opts $(OBJ)
|
||||
@echo " LD $(OUT_SLIB)"; \
|
||||
$(CC) -shared -Wl,-soname,libnl.so.1 -o $(OUT_SLIB) $(OBJ) $(LIBNL_LIB) -lc
|
||||
@echo " LN $(OUT_SLIB) $(LN1_SLIB)"; \
|
||||
rm -f $(LN1_SLIB) ; $(LN) -s $(OUT_SLIB) $(LN1_SLIB)
|
||||
$(CC) -shared -Wl,-soname=libnl.so.1.2 -o $(OUT_SLIB) $(OBJ) $(LIBNL_LIB) -lc
|
||||
@echo " LN $(LN1_SLIB) $(LN_SLIB)"; \
|
||||
rm -f $(LN_SLIB) ; $(LN) -s $(LN1_SLIB) $(LN_SLIB)
|
||||
$(RM) -f $(LN_SLIB) ; $(LN) -s $(OUT_SLIB) $(LN_SLIB)
|
||||
|
||||
clean:
|
||||
@echo " CLEAN lib"; \
|
||||
@ -66,10 +63,6 @@ distclean:
|
||||
install:
|
||||
mkdir -p $(DESTDIR)$(libdir)/
|
||||
install -m 0644 $(OUT_SLIB) $(DESTDIR)$(libdir)
|
||||
rm -f $(DESTDIR)$(libdir)/$(LN1_SLIB)
|
||||
$(LN) -s $(OUT_SLIB) $(DESTDIR)$(libdir)/$(LN1_SLIB)
|
||||
rm -f $(DESTDIR)$(libdir)/$(LN_SLIB)
|
||||
$(LN) -s $(LN1_SLIB) $(DESTDIR)$(libdir)/$(LN_SLIB)
|
||||
|
||||
$(DEPS): ../Makefile.opts
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user