Skip to content

Commit

Permalink
move the rule for static_code after "all"
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Jan 4, 2024
1 parent dce9977 commit ecf8c32
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions Makefile.onelib
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,6 @@ BINT_OBJ=$(MCL_DIR)/$(OBJ_DIR)/bint$(BIT).o
ifeq ($(CPU),x86-64)
_ARCH=amd64
endif
ifeq ($(CPU)$(ETH_CFLAGS),x86-64-DBLS_ETH)
ifeq ($(_OS),windows)
MCL_STATIC_CODE?=0
else
MCL_STATIC_CODE?=1
endif
endif

ifeq ($(MCL_STATIC_CODE),1)
MIN_CFLAGS+=-DMCL_STATIC_CODE -DMCL_DONT_USE_XBYAK
OBJS+=$(MCL_DIR)/obj/static_code.o
$(MCL_DIR)/obj/static_code.o:
$(MAKE) -C $(MCL_DIR) obj/static_code.o
endif
ifeq ($(CPU),aarch64)
_ARCH=arm64
endif
Expand Down Expand Up @@ -103,8 +89,14 @@ endif
all: $(TARGET)

ifeq ($(CPU)$(ETH_CFLAGS),x86-64-DBLS_ETH)
ifeq ($(_OS),windows)
MCL_STATIC_CODE?=0
else
MCL_STATIC_CODE?=1
endif
endif
ifeq ($(MCL_STATIC_CODE),1)
MIN_CFLAGS+=-DMCL_STATIC_CODE -DMCL_DONT_USE_XBYAK
MCL_STATIC_CODE=1
OBJS+=$(MCL_DIR)/$(OBJ_DIR)/static_code.o
$(MCL_DIR)/$(OBJ_DIR)/static_code.o:
$(MAKE) -C $(MCL_DIR) $(OBJ_DIR)/static_code.o
Expand Down

0 comments on commit ecf8c32

Please sign in to comment.