Skip to content

Instantly share code, notes, and snippets.

@sidneys
Last active August 26, 2019 01:30
Show Gist options
  • Save sidneys/587f0d317a94d8b687e12fe21c164147 to your computer and use it in GitHub Desktop.
Save sidneys/587f0d317a94d8b687e12fe21c164147 to your computer and use it in GitHub Desktop.
Homebrew Test C Program
*.o
.temp
.tmp
cache/
all: test-formula
test-formula.o: test-formula.c
gcc -c test-formula.c
test-formula: test-formula.o
gcc -o test-formula test-formula.o
clean:
rm -f *.o test-formula
// test-formula.c
#include <stdio.h>
int main() {
printf("Test\n");
printf("Formula\n");
printf("Output\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment