-
Notifications
You must be signed in to change notification settings - Fork 4
/
privatekeypassword.mk
48 lines (36 loc) · 1.33 KB
/
privatekeypassword.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
$(call PKG_INIT_BIN, 0.0)
$(PKG)_BINARY:=$($(PKG)_DIR)/$(pkg)
$(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/bin/$(pkg)
$(PKG)_LIB_BINARY:=$($(PKG)_DIR)/lib$(pkg).so
$(PKG)_LIB_STAGING_BINARY:=$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/lib$(pkg).so
$(PKG)_LIB_TARGET_BINARY:=$($(PKG)_TARGET_LIBDIR)/lib$(pkg).so
$(PKG_LOCALSOURCE_PACKAGE)
$(PKG_CONFIGURED_NOP)
$($(PKG)_LIB_BINARY) $($(PKG)_BINARY): $($(PKG)_DIR)/.configured
$(SUBMAKE) -C $(PRIVATEKEYPASSWORD_DIR) \
CC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS)" \
CC_OPT="" \
AR="$(TARGET_AR)" \
RANLIB="$(TARGET_RANLIB)"
$($(PKG)_LIB_STAGING_BINARY): $($(PKG)_LIB_BINARY)
$(SUBMAKE) -C $(PRIVATEKEYPASSWORD_DIR) \
DESTDIR="$(TARGET_TOOLCHAIN_STAGING_DIR)" \
install-lib
$($(PKG)_TARGET_BINARY): $($(PKG)_BINARY)
$(INSTALL_BINARY_STRIP)
$($(PKG)_LIB_TARGET_BINARY): $($(PKG)_LIB_STAGING_BINARY)
$(INSTALL_LIBRARY_STRIP)
$(pkg):
$(pkg)-precompiled: $($(PKG)_TARGET_BINARY) $($(PKG)_LIB_TARGET_BINARY)
$(pkg)-clean:
-$(SUBMAKE) -C $(PRIVATEKEYPASSWORD_DIR) clean
$(RM) -r \
$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/libprivatekeypassword* \
$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/include/privatekeypassword
$(pkg)-uninstall:
$(RM) \
$(PRIVATEKEYPASSWORD_TARGET_BINARY) \
$(PRIVATEKEYPASSWORD_TARGET_LIBDIR)/libprivatekeypassword.so*
$(call PKG_ADD_LIB,libprivatekeypassword)
$(PKG_FINISH)