Created
March 1, 2016 04:49
-
-
Save guyhughes/f95493c0f7fc0aa213ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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