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 <stdlib.h>
#include <time.h>
#include "../squiggle.h"
#include "../../squiggle.h"
#define NUM_SAMPLES 1000000
#define STOP_BETA 1.0e-8

View File

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

Binary file not shown.