Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
tsjensen committed Dec 9, 2023
1 parent 30950e7 commit 714e759
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ covtest:
utest:
$(MAKE) -C utest BOXES_PLATFORM=unix utest

debugutest:
$(MAKE) -C utest BOXES_PLATFORM=unix debugutest

win32.utest: $(OUT_DIR)
cp $(WIN_CMOCKA_DIR)/bin/cmocka.dll $(OUT_DIR)/
$(MAKE) -C utest BOXES_PLATFORM=win32 C_INCLUDE_PATH=../$(PCRE2_DIR)/src:../$(WIN_CMOCKA_DIR)/include \
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ cov: flags_$(BOXES_PLATFORM) | $(OUT_DIR)

debug: flags_$(BOXES_PLATFORM) | $(OUT_DIR)
$(MAKE) -C $(OUT_DIR) -f $(SRC_DIR)/Makefile BOXES_PLATFORM=$(BOXES_PLATFORM) ALL_OBJ="$(ALL_OBJ)" STRIP=false \
CFLAGS_ADDTL="-g $(CFLAGS_ADDTL)" flags_$(BOXES_PLATFORM) $(BOXES_EXECUTABLE_NAME)
CFLAGS_ADDTL="-ggdb3 $(CFLAGS_ADDTL)" flags_$(BOXES_PLATFORM) $(BOXES_EXECUTABLE_NAME)

boxes: $(ALL_OBJ) | check_dir
$(CC) $(LDFLAGS) $^ -o $@ -lunistring -lpcre2-32 -lncurses
Expand Down
7 changes: 7 additions & 0 deletions utest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ utest: flags_$(BOXES_PLATFORM) | $(OUT_DIR)
cd $(OUT_DIR) ; ./$(UTEST_EXECUTABLE_NAME)
@OUT_DIR=$(OUT_DIR) SRC_DIR=$(SRC_DIR) ./report.sh

debugutest: flags_$(BOXES_PLATFORM) | $(OUT_DIR)
$(MAKE) -C $(OUT_DIR) -f $(UTEST_DIR)/Makefile BOXES_PLATFORM=$(BOXES_PLATFORM) UTEST_OBJ="$(UTEST_OBJ)" \
CFLAGS_ADDTL="-ggdb3 $(CFLAGS_ADDTL)" flags_$(BOXES_PLATFORM) $(UTEST_EXECUTABLE_NAME)
rm -f $(OUT_DIR)/*.gcda
cd $(OUT_DIR) ; ./$(UTEST_EXECUTABLE_NAME)
@OUT_DIR=$(OUT_DIR) SRC_DIR=$(SRC_DIR) ./report.sh

unittest: $(UTEST_OBJ) | check_dir
$(CC) $(LDFLAGS) $^ $(shell cat modules.txt) -o $@ -lunistring -lpcre2-32 -lcmocka

Expand Down

0 comments on commit 714e759

Please sign in to comment.