From 90b1f406b34d1d5ba012f7dc8f66391fc460b483 Mon Sep 17 00:00:00 2001 From: Gustav Louw Date: Fri, 30 Mar 2018 13:10:23 -0700 Subject: [PATCH] done --- Makefile | 5 +++++ README.md | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6d02aae..1191753 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +# Makefile with support for Windows (mingw32) and NIX (clang / gcc). + CC = gcc NAME = tinn @@ -7,6 +9,7 @@ SRCS += test.c SRCS += Tinn.c # CompSpec defined in windows environment. + ifdef ComSpec BIN = $(NAME).exe else @@ -32,10 +35,12 @@ else endif # Link. + $(BIN): $(SRCS:.c=.o) $(CC) $(CFLAGS) $(SRCS:.c=.o) $(LDFLAGS) -o $(BIN) # Compile. + %.o : %.c Makefile $(CC) $(CFLAGS) -MMD -MP -MT $@ -MF $*.td -c $< $(RM) $*.d diff --git a/README.md b/README.md index 24a5beb..b514b58 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,10 @@ Tinn (Tiny Neural Network) is a dependency free ANSI-C neural network library. return 0; } -Run the sample: +For a demo, get some data: + + wget http://archive.ics.uci.edu/ml/machine-learning-databases/semeion/semeion.data + +And then build and run the test sample: make; ./tinn