From d14c87f83bee2769a43b91f06680a2b0ba8394f9 Mon Sep 17 00:00:00 2001 From: n1nj4sec Date: Mon, 23 Nov 2015 18:41:57 +0100 Subject: [PATCH] makefile DEBUG fix --- client/sources/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/sources/Makefile b/client/sources/Makefile index 6ae3d7eb..aa62006c 100644 --- a/client/sources/Makefile +++ b/client/sources/Makefile @@ -16,8 +16,10 @@ endif ifdef DEBUG DEBUG_ADD:=DEBUG CFLAGS:= $(CFLAGS) /DDEBUG +LINKER_OPTS:= else DEBUG_ADD:= +LINKER_OPTS:=/link /subsystem:windows /ENTRY:mainCRTStartup endif PYOBJS=_memimporter.obj MyLoadLibrary.obj Python-dynload.obj pupy_load.obj pupy.obj base_inject.obj @@ -65,7 +67,7 @@ ReflectiveLoader.obj: ReflectiveLoader.c $(CC) /c $(CFLAGS) /DREFLECTIVEDLLINJECTION_CUSTOM_DLLMAIN /DREFLECTIVEDLLINJECTION_VIA_LOADREMOTELIBRARYR /O2 /Ob1 $< $(TEMPLATE_OUTPUT_PATH)\pupy$(ARCH).exe: main_exe.obj $(PYOBJS) $(COMMON_OBJS) - $(CC) $(CFLAGS) $+ /Fe$@ + $(CC) $(CFLAGS) $+ /Fe$@ $(LINKER_OPTS) $(TEMPLATE_OUTPUT_PATH)\pupy$(ARCH).dll: main_reflective.obj $(PYOBJS) ReflectiveLoader.obj $(COMMON_OBJS) $(CC) $(CFLAGS) $+ /Fe$@ /LD