summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile26
-rw-r--r--src/main.c7
2 files changed, 33 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..f2f4bf7
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,26 @@
1CC = gcc
2SHELL = /usr/bin/bash
3
4DEBUG_CFLAGS := -fanalyzer -Wanalyzer-too-complex -ggdb -g3 -Og
5RELEASE_CFLAGS := -O3 -fipa-pta -fipa-cp -fuse-linker-plugin -flto=auto
6CFLAGS = -Wall -Wextra -Wpedantic -pedantic-errors $(DEBUG_CFLAGS)
7
8DEBUG_LDLIBS :=
9RELEASE_LDLIBS :=
10LDLIBS += $(DEBUG_LDLIBS)
11
12DEBUG_LDFLAGS :=
13RELEASE_LDFLAGS := -fuse-linker-plugin -flto=auto
14LDFLAGS += $(DEBUG_LDFLAGS)
15
16
17BINARIES := main
18
19.PHONY: all clean
20
21all: main
22
23main: main.c
24
25clean:
26 rm -rvf $(BINARIES) \ No newline at end of file
diff --git a/src/main.c b/src/main.c
new file mode 100644
index 0000000..f07684d
--- /dev/null
+++ b/src/main.c
@@ -0,0 +1,7 @@
1#include <stdio.h>
2
3int main() {
4 printf("We do a little trolling it's called we do a little trolling\nGod help us all\n");
5
6 return 0;
7} \ No newline at end of file