Skip to content

Instantly share code, notes, and snippets.

@afarah1
Created March 31, 2016 21:22
Show Gist options
  • Save afarah1/25c13d5bcdc6b9e92f2f1b2f054a363c to your computer and use it in GitHub Desktop.
Save afarah1/25c13d5bcdc6b9e92f2f1b2f054a363c to your computer and use it in GitHub Desktop.
Basic Makefile I start my projects from
CC=gcc
STD=-std=c99
WARN=-Wall -Wextra -Wpedantic -Wformat-security -Wfloat-equal -Wshadow\
-Wconversion -Winline -Wpadded
OPT=-O2 -march=native -ffinite-math-only -fno-signed-zeros
DBG=-O0 -g -ggdb
EXTRA=
LINK=
FLAGS=$(STD) $(WARN) $(OPT) $(EXTRA) $(LINK)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment