Initial Commit, project structure and build system.

This commit is contained in:
2025-10-18 23:52:08 +02:00
commit 6f587de022
9 changed files with 121 additions and 0 deletions

20
make/test.mk Normal file
View File

@@ -0,0 +1,20 @@
.PHONY: all test
include make/include/defaults.mk
SOURCES_TEST := $(shell find tests/ -name '*.c')
OBJECTS_TEST = $(SOURCES_TEST:%.c=$(BUILD_DIR)/%.o)
DEPS_TEST = $(SOURCES_TEST:%.c=$(BUILD_DIR)/%.d)
CFLAGS += -Isrc -D__STDC_NO_ATOMICS__ -DMUNIT_TEST_NAME_LEN=45
LDFLAGS +=
TARGET = $(BUILD_DIR)/binprobe-tests.exe
OBJECTS = $(OBJECTS_COMMON) $(OBJECTS_TEST)
DEPS = $(DEPS_COMMON) $(DEPS_TEST)
all: $(TARGET)
test: $(TARGET)
WINEDEBUG=-all wine $(TARGET)
include make/include/shared.mk