ifndef DPP_ROOT $(error DPP_ROOT is undefined) endif include $(DPP_ROOT)/Makefile.inc COMMON_HEADERS = native.h memory.hpp DRIVER_NAME = driver-kmem DRIVER_OBJECTS = $(DRIVER_NAME).o memory.o DRIVER_TARGET = $(DRIVER_NAME).sys TARKOV_NAME = tfk TARKOV_OBJECTS = tarkov.o memory.o TARKOV_TARGET = $(TARKOV_NAME).sys BF4_NAME = bf4 BF4_OBJECTS = bf4.o memory.o BF4_TARGET = $(BF4_NAME).sys all: $(DRIVER_TARGET) $(TARKOV_TARGET) $(BF4_TARGET) install: $(DRIVER_TARGET) $(TARKOV_TARGET) $(BF4_TARGET) $(call INSTALL_EXEC_SIGN,$(DRIVER_TARGET)) $(INSTALL) $(DRIVER_NAME).bat $(DESTDIR) $(call INSTALL_EXEC_SIGN,$(TARKOV_TARGET)) $(INSTALL) $(TARKOV_NAME).bat $(DESTDIR) $(call INSTALL_EXEC_SIGN,$(BF4_TARGET)) $(INSTALL) $(BF4_NAME).bat $(DESTDIR) clean: rm -f $(DRIVER_OBJECTS) $(DRIVER_TARGET) rm -f $(TARKOV_OBJECTS) $(TARKOV_TARGET) rm -f $(BF4_OBJECTS) $(BF4_TARGET) %.o: %.cpp $(COMMON_HEADERS) $(call BUILD_CPP_OBJECT,$<,$@) $(DRIVER_TARGET): $(DRIVER_OBJECTS) $(call LINK_CPP_KERNEL_TARGET,$(DRIVER_OBJECTS),$@) $(TARKOV_TARGET): $(TARKOV_OBJECTS) $(call LINK_CPP_KERNEL_TARGET,$(TARKOV_OBJECTS),$@) $(BF4_TARGET): $(BF4_OBJECTS) $(call LINK_CPP_KERNEL_TARGET,$(BF4_OBJECTS),$@)