aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..2683f57
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+CC = cc
+CFLAGS = -std=c11 -Wall -Wextra -O2 -I include
+SRCS = src/utils.c src/dynnet.c src/ode_solver.c src/adjoint.c \
+ src/adam.c src/train.c src/spiral.c src/cnf.c src/cnf_train.c \
+ src/tests.c src/test_cnf.c src/main.c
+TARGET = neural_ode
+
+$(TARGET): $(SRCS)
+ $(CC) $(CFLAGS) $(SRCS) -o $(TARGET) -lm
+
+run: $(TARGET)
+ ./$(TARGET)
+
+clean:
+ rm -f $(TARGET)
+
+.PHONY: run clean