2016-07-18 16:39:37 +00:00
|
|
|
INCLUDE_PATH = include
|
2022-10-04 12:57:49 +00:00
|
|
|
CXXFLAGS = -I./include -O2 --std=c++17 -Wall -lstdc++fs
|
2016-07-18 16:39:37 +00:00
|
|
|
|
|
|
|
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 \
|
2018-07-09 02:40:30 +00:00
|
|
|
run/run_interaction \
|
2022-10-04 12:57:49 +00:00
|
|
|
run/compile \
|
|
|
|
builtin/judger/judger \
|
|
|
|
$(EXE_CHECKER)
|
2016-07-18 16:39:37 +00:00
|
|
|
|
2022-10-04 12:57:49 +00:00
|
|
|
OBJ = tests/catch_amalgamated.o tests/test.o
|
|
|
|
|
|
|
|
all: $(EXE)
|
2016-07-18 16:39:37 +00:00
|
|
|
|
|
|
|
% : %.cpp
|
2018-07-09 02:40:30 +00:00
|
|
|
$(CXX) $(CXXFLAGS) $(EXTRA_CXXFLAGS) $< -o $@
|
2016-07-18 16:39:37 +00:00
|
|
|
|
2022-10-04 12:57:49 +00:00
|
|
|
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
|
2016-07-18 16:39:37 +00:00
|
|
|
|
2022-10-04 12:57:49 +00:00
|
|
|
tests/test: tests/catch_amalgamated.o tests/test.o
|
|
|
|
$(CXX) $(CXXFLAGS) $^ -o $@ -pthread
|
2016-07-18 16:39:37 +00:00
|
|
|
|
|
|
|
$(EXE_CHECKER): include/testlib.h
|
|
|
|
|
|
|
|
clean:
|
2022-10-04 12:57:49 +00:00
|
|
|
rm -f $(EXE) $(OBJ)
|