Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Jun 6, 2023
2 parents 2cd3561 + c62fc4e commit 3714b60
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ minimized_static_test: $(EXE_DIR)/minimized_static_test.exe


clean:
make -C $(MCL_DIR) clean
$(RM) $(OBJ_DIR)/*.d $(OBJ_DIR)/*.o $(EXE_DIR)/*.exe $(GEN_EXE) $(ASM_SRC) $(ASM_OBJ) $(LLVM_SRC) $(BLS256_LIB) $(BLS256_SLIB) $(BLS384_LIB) $(BLS384_SLIB) $(BLS384_256_LIB) $(BLS384_256_SLIB) $(BLS512_LIB) $(BLS512_SLIB)

ALL_SRC=$(SRC_SRC) $(TEST_SRC) $(SAMPLE_SRC)
Expand Down
15 changes: 10 additions & 5 deletions Makefile.onelib
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,14 @@ ifeq ($(CPU),systemz)
_ARCH=s390x
endif

ifneq ($(TARGET),)
MIN_CFLAGS+=-target $(TARGET)
ASFLAGS+=-target $(TARGET)
ifeq ($(UNAME_S),Darwin)
ifeq ($(CLANG_TARGET),)
CLANG_TARGET?=$(ARCH)-apple-macos
endif
endif
ifneq ($(CLANG_TARGET),)
MIN_CFLAGS+=-target $(CLANG_TARGET)
ASFLAGS+=-target $(CLANG_TARGET)
endif
OBJS+=$(BINT_OBJ)
ifeq ($(findstring $(OS),mingw64/cygwin),)
Expand Down Expand Up @@ -172,10 +177,10 @@ endif
# cross compile
# e.g. make -f Makefile.onelib CXX=clang++ AS=clang++ build_aarch64 LLVM_VER=-12
build_aarch64:
$(MAKE) -f $(THIS_FILE) ARCH=aarch64 TARGET=aarch64
$(MAKE) -f $(THIS_FILE) ARCH=aarch64 CLANG_TARGET=aarch64
# $(CXX) -target aarch64 test/bls_c384_256_test.cpp -I ./include -I mcl/include bls/lib/linux/arm64/libbls384_256.a
build_i686:
$(MAKE) -f $(THIS_FILE) ARCH=x86 TARGET=i686
$(MAKE) -f $(THIS_FILE) ARCH=x86 CLANG_TARGET=i686
# g++ -m32 test/bls_c384_256_test.cpp -I ./include -I mcl/include bls/lib/linux/libbls384_256.a

clean:
Expand Down
2 changes: 1 addition & 1 deletion mcl

0 comments on commit 3714b60

Please sign in to comment.