Do not change the default behavior of src `make`

This commit is contained in:
dancoffman 2022-11-04 13:44:04 -07:00
parent 84bd55b304
commit d007bf79d0
No known key found for this signature in database
GPG Key ID: 47B1F53E36A9B3CC
1 changed files with 8 additions and 3 deletions

View File

@ -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