summaryrefslogtreecommitdiff
path: root/src/Makefile
blob: f2f4bf7d02b93a08f4c5dcdf2294b91466d80587 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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)