mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 14:48:41 +00:00
feat(install): add options to choose which judger component to build
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.
This commit is contained in:
parent
d413b746eb
commit
73aec02216
@ -69,7 +69,7 @@ UOJEOF
|
|||||||
#define UOJ_JUDGER_PYTHON3_VERSION "3.6"
|
#define UOJ_JUDGER_PYTHON3_VERSION "3.6"
|
||||||
#define UOJ_JUDGER_FPC_VERSION "3.0.4"
|
#define UOJ_JUDGER_FPC_VERSION "3.0.4"
|
||||||
UOJEOF
|
UOJEOF
|
||||||
make -j$(($(nproc) + 1)) && cd ../../install/web
|
make runner -j$(($(nproc) + 1)) && cd ../../install/web
|
||||||
}
|
}
|
||||||
|
|
||||||
initProgress(){
|
initProgress(){
|
||||||
|
@ -26,10 +26,11 @@ EXE = main_judger \
|
|||||||
run/formatter \
|
run/formatter \
|
||||||
run/run_program \
|
run/run_program \
|
||||||
run/run_interaction \
|
run/run_interaction \
|
||||||
builtin/judger/judger \
|
builtin/judger/judger
|
||||||
$(EXE_CHECKER)
|
|
||||||
|
|
||||||
all: $(EXE)
|
all: $(EXE) $(EXE_CHECKER)
|
||||||
|
runner: $(EXE)
|
||||||
|
checker: $(EXE_CHECKER)
|
||||||
|
|
||||||
% : %.cpp
|
% : %.cpp
|
||||||
$(CXX) $(CXXFLAGS) $(EXTRA_CXXFLAGS) $< -o $@
|
$(CXX) $(CXXFLAGS) $(EXTRA_CXXFLAGS) $< -o $@
|
||||||
@ -45,4 +46,4 @@ main_judger: include
|
|||||||
$(EXE_CHECKER): include/testlib.h
|
$(EXE_CHECKER): include/testlib.h
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(EXE)
|
rm -f $(EXE) $(EXE_CHECKER)
|
||||||
|
Loading…
Reference in New Issue
Block a user