Created
October 29, 2012 07:16
-
-
Save crakaC/3972085 to your computer and use it in GitHub Desktop.
ディレクトリ内の.cppファイルからそれぞれの実行ファイルを生成
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
CC=g++ | |
CFLAGS=-Wall | |
.SUFFIXES = .cpp | |
objs:=$(wildcard *.cpp) | |
targets:=$(objs:.cpp=) | |
.PHONY:all | |
all: $(targets) | |
.cpp: | |
$(CC) $(CFLAGS) -o $* $< | |
.PHONY: clean | |
clean: | |
$(RM) *~ $(targets) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment