forked from c910335/LCS-Problem-in-Linear-Space
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (23 loc) · 929 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
BIN_DIR=bin
TMP_DIR=tmp
CXX ?= clang++
all: clean build
clean:
rm -rf $(BIN_DIR) $(TMP_DIR)
build:
mkdir $(BIN_DIR)
crystal build --release --no-debug judge.cr -o $(BIN_DIR)/judge
crystal build --release --no-debug main.cr -o $(BIN_DIR)/crystal
$(CXX) -std=c++17 -O2 -o $(BIN_DIR)/cpp main.cxx
mcs main.cs -out:$(BIN_DIR)/csharp -optimize+
test:
mkdir $(TMP_DIR)
crystal generate_test_data.cr > $(TMP_DIR)/test_data.in
$(BIN_DIR)/crystal < $(TMP_DIR)/test_data.in > $(TMP_DIR)/crystal.out
@bin/judge $(TMP_DIR)/test_data.in $(TMP_DIR)/crystal.out
ruby main.rb < $(TMP_DIR)/test_data.in > $(TMP_DIR)/ruby.out
@bin/judge $(TMP_DIR)/test_data.in $(TMP_DIR)/ruby.out
$(BIN_DIR)/cpp < $(TMP_DIR)/test_data.in > $(TMP_DIR)/cpp.out
@bin/judge $(TMP_DIR)/test_data.in $(TMP_DIR)/cpp.out
mono $(BIN_DIR)/csharp < $(TMP_DIR)/test_data.in > $(TMP_DIR)/csharp.out
@bin/judge $(TMP_DIR)/test_data.in $(TMP_DIR)/csharp.out