forked from personal/squiggle.c
graduate scratchpad to its own example
This commit is contained in:
parent
ee9ed34287
commit
d10796cae2
BIN
examples/04_sample_from_cdf/example
Executable file
BIN
examples/04_sample_from_cdf/example
Executable file
Binary file not shown.
|
@ -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
|
|
@ -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.
Loading…
Reference in New Issue
Block a user