mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-01 22:56:20 +00:00
73aec02216
For only web, there is no need to build checkers. There are so many checkers that will slow down make speed. Also for some situations, users can build checkers without runners.
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
INCLUDE_PATH = include
|
|
CXXFLAGS = -I./include -O2
|
|
|
|
EXE_CHECKER = \
|
|
builtin/checker/bcmp \
|
|
builtin/checker/acmp \
|
|
builtin/checker/caseicmp \
|
|
builtin/checker/casencmp \
|
|
builtin/checker/casewcmp \
|
|
builtin/checker/dcmp \
|
|
builtin/checker/fcmp \
|
|
builtin/checker/hcmp \
|
|
builtin/checker/icmp \
|
|
builtin/checker/lcmp \
|
|
builtin/checker/ncmp \
|
|
builtin/checker/rcmp \
|
|
builtin/checker/rcmp4 \
|
|
builtin/checker/rcmp6 \
|
|
builtin/checker/rcmp9 \
|
|
builtin/checker/rncmp \
|
|
builtin/checker/uncmp \
|
|
builtin/checker/wcmp \
|
|
builtin/checker/yesno
|
|
|
|
EXE = main_judger \
|
|
run/formatter \
|
|
run/run_program \
|
|
run/run_interaction \
|
|
builtin/judger/judger
|
|
|
|
all: $(EXE) $(EXE_CHECKER)
|
|
runner: $(EXE)
|
|
checker: $(EXE_CHECKER)
|
|
|
|
% : %.cpp
|
|
$(CXX) $(CXXFLAGS) $(EXTRA_CXXFLAGS) $< -o $@
|
|
|
|
run/run_program: include/uoj_env.h run/run_program_conf.h
|
|
run/formatter : include/testlib.h
|
|
run/run_interaction: run/run_interaction.cpp include/uoj_env.h
|
|
$(CXX) $(CXXFLAGS) --std=c++11 -pthread $< -o $@
|
|
|
|
builtin/judger/judger: include
|
|
main_judger: include
|
|
|
|
$(EXE_CHECKER): include/testlib.h
|
|
|
|
clean:
|
|
rm -f $(EXE) $(EXE_CHECKER)
|