Initial project setup.

Create simple Makefile for project compilation.
This commit is contained in:
2017-10-05 16:17:46 +02:00
commit ff8788aa0a
4 changed files with 76 additions and 0 deletions

4
README.md Normal file
View File

@@ -0,0 +1,4 @@
# Functional MRI for Neural Networks
An attempt to create real-time in depth visualisation for neural
networks.

35
src/.gitignore vendored Normal file
View File

@@ -0,0 +1,35 @@
# Prerequisites
*.d
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Precompiled Headers
*.gch
*.pch
# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# Fortran module files
*.mod
*.smod
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Executables
*.exe
*.out
*.app
# Real project executable.
fmri

27
src/Makefile Normal file
View File

@@ -0,0 +1,27 @@
.PHONY: all clean
# Compilation settings
CXXFLAGS=-Wall -Wextra -pedantic -std=c++14 -g -O2
LDLIBS=
# Project artifacts
_EXE=fmri
_OBJECTS=\
main.o
all: fmri
fmri: $(_OBJECTS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
clean:
$(RM) *.o *.d
$(RM)
# Automatic header dependency detection
%.d: %.cpp
$(CXX) -MM -MF $@ $<
_DEPFILES=$(patsubst %.cpp, %.d, $(wildcard *.cpp))
-include $(_DEPFILES)

10
src/main.cpp Normal file
View File

@@ -0,0 +1,10 @@
#include <iostream>
using namespace std;
int main(int argc, const char* argv[])
{
cout << "This is just a test." << endl;
return 0;
}