Last active
August 26, 2019 01:30
-
-
Save sidneys/587f0d317a94d8b687e12fe21c164147 to your computer and use it in GitHub Desktop.
Homebrew Test C Program
This file contains hidden or 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
*.o | |
.temp | |
.tmp | |
cache/ |
This file contains hidden or 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
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 |
This file contains hidden or 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
// 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