From f7ded3958a7f3bea16e2c8be55f159f34a45ca61 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Sat, 21 Dec 2024 02:03:28 -0600 Subject: Initial Commit --- src/Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/Makefile (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..f2f4bf7 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,26 @@ +CC = gcc +SHELL = /usr/bin/bash + +DEBUG_CFLAGS := -fanalyzer -Wanalyzer-too-complex -ggdb -g3 -Og +RELEASE_CFLAGS := -O3 -fipa-pta -fipa-cp -fuse-linker-plugin -flto=auto +CFLAGS = -Wall -Wextra -Wpedantic -pedantic-errors $(DEBUG_CFLAGS) + +DEBUG_LDLIBS := +RELEASE_LDLIBS := +LDLIBS += $(DEBUG_LDLIBS) + +DEBUG_LDFLAGS := +RELEASE_LDFLAGS := -fuse-linker-plugin -flto=auto +LDFLAGS += $(DEBUG_LDFLAGS) + + +BINARIES := main + +.PHONY: all clean + +all: main + +main: main.c + +clean: + rm -rvf $(BINARIES) \ No newline at end of file -- cgit v1.2.3