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
|
INCLUDE_DIRS = ../inc
|
||||||
CFLAGS += -O2
|
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:
|
blst:
|
||||||
cd ../blst; \
|
cd ../blst; \
|
||||||
git apply < ../blst_sha.patch; \
|
git apply < ../blst_sha.patch; \
|
||||||
|
@ -8,8 +15,6 @@ blst:
|
||||||
cp libblst.a ../lib && \
|
cp libblst.a ../lib && \
|
||||||
cp bindings/*.h ../inc
|
cp bindings/*.h ../inc
|
||||||
|
|
||||||
c_kzg_4844.o: c_kzg_4844.c Makefile
|
# Copy make sure c_kzg_4844.o is built and copy it for the NodeJS bindings
|
||||||
clang -Wall -I$(INCLUDE_DIRS) $(CFLAGS) -c $<
|
|
||||||
|
|
||||||
lib: c_kzg_4844.o Makefile
|
lib: c_kzg_4844.o Makefile
|
||||||
cp *.o ../bindings/node.js
|
cp *.o ../bindings/node.js
|
||||||
|
|
Loading…
Reference in New Issue