Skip to content

Instantly share code, notes, and snippets.

@guyhughes
Created March 1, 2016 04:49
Show Gist options
  • Save guyhughes/f95493c0f7fc0aa213ed to your computer and use it in GitHub Desktop.
Save guyhughes/f95493c0f7fc0aa213ed to your computer and use it in GitHub Desktop.
TAGS := .tags
OUT := out
DEBUG_CFLAGS:=-Wextra -Wall -Wshadow -Wno-strict-aliasing -Woverflow -Wno-unused-parameter -Wno-unused-variable -g -pipe -march=native
CFLAGS:= -pipe -O2 -march=native
.PHONY: default debug tags out_run
out_run: run
./$(OUT)
out:
$(CC) $(CFLAGS) *.c -o $(OUT)
debug:
$(CC) $(DEBUG_CFLAGS) *.c -o $(OUT)
tags:
rm -f $(TAGS)
ctags -f $(TAGS) -R . || true
clean:
rm -f $(TAGS) $(OUT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment