Created
November 27, 2011 10:12
-
-
Save raa0121/1397343 to your computer and use it in GitHub Desktop.
sourceとbinaryの分離
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
#binnaryfileとsourcefileを分ける構造でのMakefile | |
#(ディレクトリ)/src な状況で使う | |
SOURCE_DIR := src | |
vpath %.c $(SOURCE_DIR) | |
$1:$1.c | |
gcc -o $@ $< |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment