mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-23 22:31:53 +00:00
Baoshuo
bcf5ce8b06
All checks were successful
continuous-integration/drone/push Build is passing
ref: https://github-redirect.dependabot.com/UniversalOJ/UOJ-System/pull/113 Co-authored-by: vfleaking <vfleaking@163.com> Co-authored-by: Yefori-Go <110314400+Yefori-Go@users.noreply.github.com>
61 lines
1.4 KiB
Makefile
61 lines
1.4 KiB
Makefile
INCLUDE_PATH = include
|
|
CXXFLAGS = -I./include -O2 --std=c++17 -Wall -lstdc++fs
|
|
|
|
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 \
|
|
run/compile \
|
|
builtin/judger/judger \
|
|
$(EXE_CHECKER)
|
|
|
|
OBJ = tests/catch_amalgamated.o tests/test.o
|
|
|
|
all: $(EXE)
|
|
|
|
% : %.cpp
|
|
$(CXX) $(CXXFLAGS) $(EXTRA_CXXFLAGS) $< -o $@
|
|
|
|
run/formatter : include/testlib.h
|
|
run/compile : include/uoj_run.h
|
|
|
|
run/run_program : run/run_program.cpp run/run_program_conf.h run/run_program_sandbox.h include/uoj_run.h
|
|
$(CXX) $(CXXFLAGS) $< -o $@ -lseccomp -pthread
|
|
|
|
run/run_interaction : run/run_interaction.cpp include/uoj_run.h
|
|
$(CXX) $(CXXFLAGS) $< -o $@ -pthread
|
|
|
|
builtin/judger/judger: include/*.h
|
|
main_judger: include/*.h
|
|
|
|
tests/test.o: include/*.h
|
|
|
|
tests/test: tests/catch_amalgamated.o tests/test.o
|
|
$(CXX) $(CXXFLAGS) $^ -o $@ -pthread
|
|
|
|
$(EXE_CHECKER): include/testlib.h
|
|
|
|
clean:
|
|
rm -f $(EXE) $(OBJ)
|