Skip to content

Commit

Permalink
Create src/ directory and move source files in
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminion committed Feb 2, 2021
1 parent 7de3c29 commit 8de0642
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ There's no library to make here yet, but you can run the tests.
## Run tests

```
cd src
make test
```

Expand Down
2 changes: 1 addition & 1 deletion Makefile → src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tests = fft_fr_test
clang -Wall -c $*.c

%_test: %.o %_test.c test_util.o
clang -Wall -o $@ $@.c test_util.o $*.o -Llib -lblst
clang -Wall -o $@ $@.c test_util.o $*.o -L../lib -lblst
./$@

test: $(tests)
Expand Down
2 changes: 1 addition & 1 deletion c-kzg.h → src/c-kzg.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
* limitations under the License.
*/

#include "inc/blst.h"
#include <stdbool.h>
#include "../inc/blst.h"
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion fft_fr_test.c → src/fft_fr_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#include "inc/acutest.h"
#include "../inc/acutest.h"
#include "test_util.h"
#include "fft_fr.h"

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test_util.h → src/test_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include <stdlib.h>
#include <stdio.h>
#include "inc/blst.h"
#include "../inc/blst.h"

// General Utilities
void print_bytes_as_hex(byte *bytes, int start, int len);
Expand Down

0 comments on commit 8de0642

Please sign in to comment.