blob: 6015ac92dc858dc93375c7b901540da3d9d113d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
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),$@)
|