Created
October 6, 2012 05:02
-
-
Save CapnKernel/3843947 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
# Rule 1: | |
foo.o: foo.c | |
gcc -o foo.o -c foo.c | |
# Rule 1a (same): | |
foo.o: foo.c | |
gcc -o $@ -c $< | |
# Rule 1b (same, for foo.o): | |
%.o: %.c | |
gcc -o $@ -c $< |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment