Skip to content

Instantly share code, notes, and snippets.

@binki
Last active January 4, 2016 15:40
Show Gist options
  • Save binki/685b12e7e5722b7a95fd to your computer and use it in GitHub Desktop.
Save binki/685b12e7e5722b7a95fd to your computer and use it in GitHub Desktop.
Some code which requires either C99/C11.
*.exe
*.o
blah-c11
#include <stdio.h>
int main(int argc, const char argv[])
{
for (int i = 0; i < 10; i++)
printf("%d\n", i);
for (int i = 0; i < 10; i++)
printf("%d\n", i);
return 0;
}
.POSYX:
.PHONY: all
all: blah-c11
blah-c11: blah-c11.o
CFLAGS = -std=c11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment