aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-28 03:09:11 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-03-28 03:09:11 +0100
commiteae3def1f087139b8e646e91fc46e8417d4541b7 (patch)
tree0b15dbca77c4d325c68c7a07c22d508684e6459d
downloadArider-eae3def1f087139b8e646e91fc46e8417d4541b7.tar.gz
Arider-eae3def1f087139b8e646e91fc46e8417d4541b7.zip
Adding initial files
-rw-r--r--.gitignore7
-rw-r--r--Makefile32
-rw-r--r--README.org18
-rw-r--r--src/main.cpp7
4 files changed, 64 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..443d60f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+# general directories to ignore
+bin/
+build/
+
+# extensions to ignore
+*.o
+*.out
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6e03b70
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,32 @@
+# Make g++ the default compiler
+CC := g++
+
+# Add the compilation arguments
+CFLAGS := -g -Wall -Wextra -Wpedantic -std=c++14
+
+# Source files to be compiled
+SRCS := $(wildcard src/*.cpp)
+OBJS := $(patsubst src/%,build/%,$(SRCS:.cpp=.o))
+INCL := -Iinclude/
+
+# Executable name
+EXEC := bin/arider
+
+# Rules
+.PHONY: all
+all: $(EXEC)
+
+$(EXEC): $(OBJS)
+ $(CC) -o $@ $^
+
+build/%.o: src/%.cpp
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+# Cleans up the directories
+.PHONY: clean
+clean:
+ rm -rf build/
+ rm -rf bin/
+
+# Make necessary directories if they aren't there yet
+$(shell mkdir -p bin/ build/)
diff --git a/README.org b/README.org
new file mode 100644
index 0000000..307a5c9
--- /dev/null
+++ b/README.org
@@ -0,0 +1,18 @@
+#+TITLE: Arider
+#+DATE: <2017-03-28 Tue>
+#+AUTHOR: Yann Herklotz
+#+EMAIL: yannherklotz@yann-arch
+#+OPTIONS: ':nil *:t -:t ::t <:t H:3 \n:nil ^:t arch:headline
+#+OPTIONS: author:t c:nil creator:comment d:(not "LOGBOOK") date:t
+#+OPTIONS: e:t email:nil f:t inline:t num:t p:nil pri:nil stat:t
+#+OPTIONS: tags:t tasks:t tex:t timestamp:t toc:t todo:t |:t
+#+CREATOR: Emacs 25.1.1 (Org mode 8.2.10)
+#+DESCRIPTION:
+#+EXCLUDE_TAGS: noexport
+#+KEYWORDS:
+#+LANGUAGE: en
+#+SELECT_TAGS: export
+
+* Introduction
+
+This is a 2D game that is programed using the SDL2 library and OpenGL.
diff --git a/src/main.cpp b/src/main.cpp
new file mode 100644
index 0000000..5260233
--- /dev/null
+++ b/src/main.cpp
@@ -0,0 +1,7 @@
+#include <cstdio>
+
+int main(int, char**)
+{
+ printf("Hello World\n");
+ return 0;
+}