-
Notifications
You must be signed in to change notification settings - Fork 18
/
decoder.mk
37 lines (27 loc) · 888 Bytes
/
decoder.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
$(call PKG_INIT_BIN, v0.4)
$(PKG)_BINARY:=$($(PKG)_DIR)/decoder
$(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/bin/decoder
$(PKG)_DEPENDS_ON += $(if $(FREETZ_PACKAGE_DECODER_LIBCRYPTO),openssl,nettle)
$(PKG_LOCALSOURCE_PACKAGE)
$(PKG_CONFIGURED_NOP)
$($(PKG)_BINARY): $($(PKG)_DIR)/.configured
$(SUBMAKE) -C $(DECODER_DIR) \
CC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS)" \
OPT="" \
OPENSSL=$(if $(FREETZ_PACKAGE_DECODER_LIBCRYPTO),y,n) \
STATIC=$(if $(FREETZ_PACKAGE_DECODER_DYNAMIC),n,y) \
NETTLE_HOST=$(TARGET_GNU_TRIPLET) \
NETTLE_TARGET=$(REAL_GNU_TARGET_NAME) \
NETTLE_BUILD=$(GNU_HOST_NAME)
$($(PKG)_TARGET_BINARY): $($(PKG)_BINARY)
$(INSTALL_BINARY_STRIP)
$(pkg):
$(pkg)-precompiled: $($(PKG)_TARGET_BINARY)
$(pkg)-clean:
-$(SUBMAKE) -C $(DECODER_DIR) clean
$(pkg)-uninstall:
$(SUBMAKE) -C $(DECODER_DIR) \
bindir="$(dir $@)" \
uninstall
$(PKG_FINISH)