mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-02-18 13:06:37 +00:00
Do not change the default behavior of src make
This commit is contained in:
parent
84bd55b304
commit
d007bf79d0
11
src/Makefile
11
src/Makefile
@ -1,6 +1,13 @@
|
||||
INCLUDE_DIRS = ../inc
|
||||
CFLAGS += -O2
|
||||
|
||||
all: c_kzg_4844.o lib
|
||||
|
||||
c_kzg_4844.o: c_kzg_4844.c Makefile
|
||||
clang -Wall -I$(INCLUDE_DIRS) $(CFLAGS) -c $<
|
||||
|
||||
# Will fail with "patch does not apply" if it has already been patched.
|
||||
# Safe to ignore.
|
||||
blst:
|
||||
cd ../blst; \
|
||||
git apply < ../blst_sha.patch; \
|
||||
@ -8,8 +15,6 @@ blst:
|
||||
cp libblst.a ../lib && \
|
||||
cp bindings/*.h ../inc
|
||||
|
||||
c_kzg_4844.o: c_kzg_4844.c Makefile
|
||||
clang -Wall -I$(INCLUDE_DIRS) $(CFLAGS) -c $<
|
||||
|
||||
# Copy make sure c_kzg_4844.o is built and copy it for the NodeJS bindings
|
||||
lib: c_kzg_4844.o Makefile
|
||||
cp *.o ../bindings/node.js
|
||||
|
Loading…
x
Reference in New Issue
Block a user