aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2024-03-10 00:13:52 +0100
committerToni Uhlig <matzeton@googlemail.com>2024-03-12 00:13:52 +0100
commit07ca2a71eda0a0a6ca4d17335033e4fcfdbd4d87 (patch)
treeff5806996d6b70d3942d681cc4d0f83774a302b7 /Makefile
parent5d697079989f35a437e5101418289b26e6c1f3a6 (diff)
Add Battlefield4 hack.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 8be8128..6015ac9 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,8 @@ 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
@@ -12,19 +14,26 @@ TARKOV_NAME = tfk
TARKOV_OBJECTS = tarkov.o memory.o
TARKOV_TARGET = $(TARKOV_NAME).sys
-all: $(DRIVER_TARGET) $(TARKOV_TARGET)
+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)
+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
+%.o: %.cpp $(COMMON_HEADERS)
$(call BUILD_CPP_OBJECT,$<,$@)
$(DRIVER_TARGET): $(DRIVER_OBJECTS)
@@ -32,3 +41,6 @@ $(DRIVER_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),$@)