blob: 30ae73d182be3767f18814571151165f86c4c85e [file] [log] [blame]
Fumitoshi Ukai119dc912015-03-30 16:52:41 +09001GOSRC = $(wildcard *.go)
2
Shinichiro Hamaji5ca0ecd2015-04-30 18:30:56 +09003all: kati go_test para
Fumitoshi Ukai119dc912015-03-30 16:52:41 +09004
5kati: $(GOSRC)
Shinichiro Hamaji5ca0ecd2015-04-30 18:30:56 +09006 env $(shell go env) go build -o $@ *.go
Fumitoshi Ukai119dc912015-03-30 16:52:41 +09007
Shinichiro Hamajicedc5c82015-05-13 17:03:20 +09008go_test: $(GOSRC) para
Shinichiro Hamaji5ca0ecd2015-04-30 18:30:56 +09009 env $(shell go env) go test *.go
10
11para: para.cc
Shinichiro Hamajicedc5c82015-05-13 17:03:20 +090012 $(CXX) -std=c++11 -g -O -W -Wall -MMD -o $@ $<
Fumitoshi Ukaie520f262015-03-31 17:27:03 +090013
Shinichiro Hamaji7744bd62015-03-31 23:02:38 +090014test: all
Fumitoshi Ukai119dc912015-03-30 16:52:41 +090015 ruby runtest.rb
16
Shinichiro Hamajibbf6a712015-03-30 17:22:38 +090017clean:
18 rm -rf out kati
19
Fumitoshi Ukai119dc912015-03-30 16:52:41 +090020.PHONY: test
Shinichiro Hamaji5ca0ecd2015-04-30 18:30:56 +090021
22-include *.d