403Webshell
Server IP : 103.18.247.38  /  Your IP : 216.73.217.101
Web Server : Apache
System : Linux server2.aznethosting.net 4.18.0-553.144.1.el8_10.x86_64 #1 SMP Tue Jul 14 09:26:58 EDT 2026 x86_64
User : gmbizz ( 1200)
PHP Version : 8.1.34
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/src/file_protector-1.1-1569/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/src/file_protector-1.1-1569/Makefile
.PHONY: all clean default modules
default: all

# verbose make:
#MAKE += V=1
$(info "MAKE='$(MAKE)'")

SRC_DIR := $(CURDIR)
BUILD_DIR := $(abspath $(SRC_DIR)/../obj/$(notdir $(SRC_DIR)))
$(info "BUILD_DIR='$(BUILD_DIR)'")

# Linux kernel build system 'kbuild' can put object files into dedicated
# directory but fails to create that directory. Thus we need to create
# all necessary directories in advance.

# Add all source subdirecories to MODULE_SUBDIRS
MODULE_SUBDIRS += syscall_hooks
MODULE_SUBDIRS += transport
MODULE_SUBDIRS += lsm_hooks

# This is list of [sub]directories we need to precreate for 'kbuild' to
# store object files
OBJ_DIRS := $(addprefix $(BUILD_DIR)/,$(MODULE_SUBDIRS))
OBJ_DIRS += $(BUILD_DIR)

# '_mkdir' variable and following rule will help create directories on
# demand. Use '$(call _mkdir,$(DIR_LIST))' to get necessary dependencies.
_mkdir = $(addsuffix /.mkdir,$(1))
%/.mkdir:
	@mkdir -p $(@D)
	@touch $@

# Use '*_MKDIR' variables as dependencies instead of respective
# directories to make them on demand
BUILD_DIR_MKDIR := $(call _mkdir,$(BUILD_DIR))
#$(info "BUILD_DIR_MKDIR='$(BUILD_DIR_MKDIR)'")
OBJ_DIRS_MKDIR := $(call _mkdir,$(OBJ_DIRS))
#$(info "OBJ_DIRS_MKDIR='$(OBJ_DIRS_MKDIR)'")

# Linux kernel build system 'kbuild' needs 'Kbuild' file (or symlink to
# actual file) in $(BUILD_DIR)
KBUILD_SYMLINK := $(BUILD_DIR)/Kbuild
# Note: symlink is always recreated if depends on $(BUILD_DIR_MKDIR)
$(KBUILD_SYMLINK):
	@mkdir -p $(@D)
	@ln -fsv $(SRC_DIR)/Kbuild $@

all: $(OBJ_DIRS_MKDIR) $(KBUILD_SYMLINK)
	$(MAKE) -C /lib/modules/`uname -r`/build M=$(BUILD_DIR) src=$(SRC_DIR) modules

clean:
	$(MAKE) -C /lib/modules/`uname -r`/build M=$(BUILD_DIR) src=$(SRC_DIR) clean
	@$(RM) $(KBUILD_SYMLINK) $(OBJ_DIRS_MKDIR) $(BUILD_DIR_MKDIR)
	@-rmdir $(OBJ_DIRS)


INSTALL_DIR := $(SRC_DIR)/../bin/$(notdir $(SRC_DIR))
$(info "INSTALL_DIR='$(INSTALL_DIR)'")

DIST_FILES += Kbuild
DIST_FILES += Makefile
DIST_FILES += $(wildcard *.h)
DIST_FILES += $(wildcard *.c)
DIST_FILES += $(wildcard */*.h)
DIST_FILES += $(wildcard */*.c)
$(info "DIST_FILES='$(DIST_FILES)'")

INSTALL_DIST_FILES := $(addprefix $(INSTALL_DIR)/,$(DIST_FILES))

.PHONY: install
install: $(INSTALL_DIST_FILES)
$(INSTALL_DIST_FILES): $(INSTALL_DIR)/% : %
	install -D -m 644 $< $@

Youez - 2016 - github.com/yon3zu
LinuXploit