Skip to content

Commit

Permalink
define rule of static_code.o after all
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Oct 19, 2023
1 parent 5b181bc commit eb3f104
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Makefile.onelib
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +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)
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:
-mkdir -p $(OBJ_DIR)
$(MAKE) -C $(MCL_DIR) $(OBJ_DIR)/static_code.o
endif
ifeq ($(CPU),aarch64)
_ARCH=arm64
endif
Expand Down Expand Up @@ -96,6 +88,14 @@ endif

all: $(TARGET)

ifeq ($(CPU)$(ETH_CFLAGS),x86-64-DBLS_ETH)
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
endif

$(STATIC_LIB): $(OBJS)
-mkdir -p $(LIB_DIR)
$(AR) $(ARFLAGS) $(STATIC_LIB) $(OBJS)
Expand Down

0 comments on commit eb3f104

Please sign in to comment.