some more changes
This commit is contained in:
parent
36826b9934
commit
12fd46747e
4 changed files with 143 additions and 34 deletions
2
makefile
2
makefile
|
|
@ -57,6 +57,7 @@ DBG_LDFLAGS := \
|
|||
-fsanitize=float-cast-overflow
|
||||
|
||||
CXXFLAGS := $(STD) $(WARNFLAGS) $(INCLUDES) $(BASEDEFS)
|
||||
CXXFLAGS += -MMD -MP
|
||||
ifeq ($(MODE),debug)
|
||||
CXXFLAGS += $(DBGFLAGS)
|
||||
LDFLAGS += $(DBG_LDFLAGS)
|
||||
|
|
@ -87,6 +88,7 @@ test: .TEST
|
|||
$(BUILD_DIR)/$(TEST_DIR)/%.o: $(TEST_DIR)/%.cc
|
||||
@mkdir -p $(dir $@)
|
||||
$(CXX) $(CXXFLAGS) -c $< -o $@
|
||||
-include $(TEST_OBJ:.o=.d)
|
||||
|
||||
$(TEST_EXE): $(TEST_OBJ)
|
||||
@mkdir -p $(dir $@)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue