зеркало из https://github.com/mozilla/gecko-dev.git
NOT in normal build.
Have the tools build on windows, wether or not they work yet is another issue.
This commit is contained in:
Родитель
5e289d22b7
Коммит
64ec50552a
|
@ -43,6 +43,9 @@
|
||||||
extern int getopt(int argc, char *const *argv, const char *shortopts);
|
extern int getopt(int argc, char *const *argv, const char *shortopts);
|
||||||
extern char *optarg;
|
extern char *optarg;
|
||||||
extern int optind;
|
extern int optind;
|
||||||
|
#ifdef XP_WIN32
|
||||||
|
int optind=1;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include "nsTraceMalloc.h"
|
#include "nsTraceMalloc.h"
|
||||||
|
|
|
@ -26,9 +26,15 @@ REQUIRES=xpcom
|
||||||
include <$(DEPTH)\config\config.mak>
|
include <$(DEPTH)\config\config.mak>
|
||||||
|
|
||||||
MAKE_OBJ_TYPE=EXE
|
MAKE_OBJ_TYPE=EXE
|
||||||
PROGRAM=.\$(OBJDIR)\bloatblame.exe
|
PROG1 = .\$(OBJDIR)\bloatblame.exe
|
||||||
|
PROG2 = .\$(OBJDIR)\spacetrace.exe
|
||||||
|
PROG3 = .\$(OBJDIR)\leakstats.exe
|
||||||
|
|
||||||
CPP_OBJS=.\$(OBJDIR)\tmreader.obj .\$(OBJDIR)\bloatblame.obj
|
LIB1 = .\$(OBJDIR)\tmreader.lib
|
||||||
|
|
||||||
|
PROGRAMS = $(PROG1) $(PROG2) $(PROG3)
|
||||||
|
|
||||||
|
CPP_OBJS=.\$(OBJDIR)\tmreader.obj
|
||||||
|
|
||||||
LINCS=\
|
LINCS=\
|
||||||
-I$(DEPTH)\config\os2 \
|
-I$(DEPTH)\config\os2 \
|
||||||
|
@ -36,13 +42,27 @@ LINCS=\
|
||||||
|
|
||||||
LLIBS= \
|
LLIBS= \
|
||||||
$(DIST)\lib\xpcom.lib \
|
$(DIST)\lib\xpcom.lib \
|
||||||
$(LIBNSPR) \
|
$(LIBNSPR) \
|
||||||
|
$(LIB1) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
include <$(DEPTH)\config\rules.mak>
|
include <$(DEPTH)\config\rules.mak>
|
||||||
|
|
||||||
$(PROGRAM):: $(OBJDIR)
|
install:: $(PROGRAMS)
|
||||||
|
-for %p in ($(PROGRAMS)) do $(MAKE_INSTALL) %p $(DIST)\bin
|
||||||
|
|
||||||
install:: $(PROGRAM)
|
clobber::
|
||||||
$(MAKE_INSTALL) $(PROGRAM) $(DIST)\bin
|
-for %p in ($(PROGRAMS)) do $(RM) %p $(DIST)\bin\%p
|
||||||
|
|
||||||
|
$(CPP_OBJS): $(OBJDIR)
|
||||||
|
|
||||||
|
$(LIB1): $(CPP_OBJS)
|
||||||
|
$(RM) $@
|
||||||
|
lib /nologo /out:$@ $**
|
||||||
|
|
||||||
|
$(PROG1): $(LIB1) bloatblame.c
|
||||||
|
|
||||||
|
$(PROG2): $(LIB1) spacetrace.c
|
||||||
|
|
||||||
|
$(PROG3): $(LIB1) leakstats.c
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче