Fix rebuild by dependencies

This commit is contained in:
Oleksii Shevchuk 2017-04-03 23:34:46 +03:00
parent f032580183
commit 0639c55f16
1 changed files with 5 additions and 6 deletions

View File

@ -18,8 +18,8 @@ else
NAME := 86 NAME := 86
endif endif
LINUX_INJECT_CFLAGS := -include debug.h -include fixes.h \ LINUX_INJECT_CFLAGS := -include fixes.h -include debug.h \
-Dmain=linux_inject_main "-Drealpath=fakepath" -Dmain=linux_inject_main -Drealpath=fakepath
ifneq ($(DEBUG),) ifneq ($(DEBUG),)
DEBUG_ADD := -debug DEBUG_ADD := -debug
@ -32,7 +32,6 @@ LDFLAGS += -O1 -Wl,-s -Wl,-x -Wl,--gc-sections -Wl,--no-undefined
LDFLAGS += -Wl,-z,now -Wl,-z,combreloc -Wl,--enable-new-dtags LDFLAGS += -Wl,-z,now -Wl,-z,combreloc -Wl,--enable-new-dtags
endif endif
PYTHON ?= python PYTHON ?= python
TEMPLATE_OUTPUT_PATH ?= ../../pupy/payload_templates/ TEMPLATE_OUTPUT_PATH ?= ../../pupy/payload_templates/
@ -50,8 +49,8 @@ COMMON_OBJS += linux-inject/utils.o
all: $(TEMPLATE_OUTPUT_PATH)/pupyx$(NAME).lin $(TEMPLATE_OUTPUT_PATH)/pupyx$(NAME).so all: $(TEMPLATE_OUTPUT_PATH)/pupyx$(NAME).lin $(TEMPLATE_OUTPUT_PATH)/pupyx$(NAME).so
pupy.c: resources_library_compressed_string_txt.c pupy.o: resources_library_compressed_string_txt.c
pupy_load.c: resources_bootloader_pyc.c resources_python27_so.c \ pupy_load.o: resources_bootloader_pyc.c resources_python27_so.c \
resources_libssl_so.c resources_libcrypto_so.c resources_libssl_so.c resources_libcrypto_so.c
import-tab.c import-tab.h: mktab.py import-tab.c import-tab.h: mktab.py
@ -71,7 +70,7 @@ resources_library_compressed_string_txt.c: ../gen_resource_header.py resources/l
resources/library_compressed_string.txt $(XZARGS) resources/library_compressed_string.txt $(XZARGS)
resources/bootloader.pyc: ../gen_python_bootloader.py ../../pupy/packages/all/pupyimporter.py ../../pupy/pp.py resources/bootloader.pyc: ../gen_python_bootloader.py ../../pupy/packages/all/pupyimporter.py ../../pupy/pp.py
$(PYTHON) -OO $(PFLAGS) ../gen_python_bootloader.py $(DEBUG_ADD) $(PYTHON) $(PFLAGS) ../gen_python_bootloader.py $(DEBUG_ADD)
resources_bootloader_pyc.c: ../gen_resource_header.py resources/bootloader.pyc resources_bootloader_pyc.c: ../gen_resource_header.py resources/bootloader.pyc
$(PYTHON) $(PFLAGS) $+ $(XZARGS) $(PYTHON) $(PFLAGS) $+ $(XZARGS)