docs.sheetjs.com/docz/static/chakra/Makefile

27 lines
900 B
Makefile
Raw Permalink Normal View History

2023-04-09 06:58:43 +00:00
CC=g++
CHAKRALIB=ChakraCore/out/Test/lib/libChakraCoreStatic.a
CFLAGS=-lstdc++ -std=c++11 -IChakraCore/lib/Jsrt
2023-07-06 07:21:41 +00:00
UNAME__S := $(shell uname -s)
ifeq ($(UNAME__S),Linux)
ICU4C=ChakraCore/deps/thirdparty/icu/lib
ICULIB=$(ICU4C)/libicui18n.a $(ICU4C)/libicuuc.a $(ICU4C)/libicudata.a
sheetjs.ch: sheetjs.ch.cpp
2023-10-16 09:12:56 +00:00
clang++ $< $(CFLAGS) $(CHAKRALIB) $(ICULIB) -lm -ldl -Wno-c++11-compat-deprecated-writable-strings -Wno-deprecated-declarations -Wno-unknown-warning-option -o $@
2023-07-06 07:21:41 +00:00
endif
ifeq ($(UNAME__S),Darwin)
ICU4C=/usr/local/opt/icu4c/lib
ICULIB=$(ICU4C)/libicudata.a $(ICU4C)/libicuuc.a $(ICU4C)/libicui18n.a
2023-04-09 06:58:43 +00:00
sheetjs.ch: sheetjs.ch.cpp
2023-10-16 09:12:56 +00:00
g++ $< $(CFLAGS) -Wl,-force_load $(CHAKRALIB) $(ICULIB) -framework CoreFoundation -framework Security -lm -ldl -Wno-c++11-compat-deprecated-writable-strings -Wno-deprecated-declarations -Wno-unknown-warning-option -o $@
2023-04-09 06:58:43 +00:00
2023-07-06 07:21:41 +00:00
endif
2023-04-09 06:58:43 +00:00
.PHONY: clean
clean:
rm sheetjs.ch