Skip to content

Instantly share code, notes, and snippets.

@raa0121
Created November 27, 2011 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raa0121/1397343 to your computer and use it in GitHub Desktop.
Save raa0121/1397343 to your computer and use it in GitHub Desktop.
sourceとbinaryの分離
#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