graduate scratchpad to its own example

This commit is contained in:
NunoSempere 2023-07-16 21:28:03 +02:00
parent ee9ed34287
commit d10796cae2
4 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -3,7 +3,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>
#include "../squiggle.h" #include "../../squiggle.h"
#define NUM_SAMPLES 1000000 #define NUM_SAMPLES 1000000
#define STOP_BETA 1.0e-8 #define STOP_BETA 1.0e-8

View File

@ -9,8 +9,8 @@ CC=gcc # required for nested functions
# CC=tcc # <= faster compilation # CC=tcc # <= faster compilation
# Main file # Main file
SRC=scratchpad.c ../squiggle.c SRC=example.c ../../squiggle.c
OUTPUT=./scratchpad OUTPUT=./example
## Dependencies ## Dependencies
MATH=-lm MATH=-lm
@ -31,7 +31,7 @@ FORMATTER=clang-format -i -style=$(STYLE_BLUEPRINT)
## make build ## make build
build: $(SRC) build: $(SRC)
# gcc -std=gnu99 scratchpad.c -lm -o scratchpad # gcc -std=gnu99 example.c -lm -o example
$(CC) $(CFLAGS) $(SRC) $(DEPENDENCIES) -o $(OUTPUT) $(CC) $(CFLAGS) $(SRC) $(DEPENDENCIES) -o $(OUTPUT)
format: $(SRC) format: $(SRC)

Binary file not shown.