Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Untitled
SUBMITTED BY:
Guest
DATE:
June 15, 2013, 4:36 p.m.
FORMAT:
Text only
SIZE:
337 Bytes
Raw
Download
Tweet
HITS:
31240
Go to comments
Report
targets := $(addprefix euler-,$(shell seq 1 100))
bins := $(addprefix ./bin/,$(targets))
CC = clang++ -stdlib=libc++ -std=c++0x
all: $(bins)
./bin/%: src/%.cpp
$(CC) -o $@ $<
$(targets): ./bin/$@
make ./bin/$@
clean:
rm bin/*
.PHONY: all $(targets) clean
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus