makefile DEBUG fix

This commit is contained in:
n1nj4sec 2015-11-23 18:41:57 +01:00
parent 14fadc2226
commit d14c87f83b
1 changed files with 3 additions and 1 deletions

View File

@ -16,8 +16,10 @@ endif
ifdef DEBUG ifdef DEBUG
DEBUG_ADD:=DEBUG DEBUG_ADD:=DEBUG
CFLAGS:= $(CFLAGS) /DDEBUG CFLAGS:= $(CFLAGS) /DDEBUG
LINKER_OPTS:=
else else
DEBUG_ADD:= DEBUG_ADD:=
LINKER_OPTS:=/link /subsystem:windows /ENTRY:mainCRTStartup
endif endif
PYOBJS=_memimporter.obj MyLoadLibrary.obj Python-dynload.obj pupy_load.obj pupy.obj base_inject.obj 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 $< $(CC) /c $(CFLAGS) /DREFLECTIVEDLLINJECTION_CUSTOM_DLLMAIN /DREFLECTIVEDLLINJECTION_VIA_LOADREMOTELIBRARYR /O2 /Ob1 $<
$(TEMPLATE_OUTPUT_PATH)\pupy$(ARCH).exe: main_exe.obj $(PYOBJS) $(COMMON_OBJS) $(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) $(TEMPLATE_OUTPUT_PATH)\pupy$(ARCH).dll: main_reflective.obj $(PYOBJS) ReflectiveLoader.obj $(COMMON_OBJS)
$(CC) $(CFLAGS) $+ /Fe$@ /LD $(CC) $(CFLAGS) $+ /Fe$@ /LD