2001-08-21 20:13:17 +00:00
|
|
|
PATH_TO_TOP = ..
|
|
|
|
|
2004-02-21 09:20:39 +00:00
|
|
|
include $(PATH_TO_TOP)/rules.mak
|
|
|
|
|
2003-11-14 17:13:36 +00:00
|
|
|
CFLAGS += -Wall -Werror
|
2005-05-01 11:24:07 +00:00
|
|
|
ifeq ($(HOST_TYPE),unix)
|
2005-04-08 05:35:20 +00:00
|
|
|
CFLAGS += -DUNIX_PATHS
|
|
|
|
rm := @rm
|
2005-05-01 11:24:07 +00:00
|
|
|
else
|
2005-04-08 05:35:20 +00:00
|
|
|
CFLAGS += -DDOS_PATHS
|
|
|
|
rm := -@del
|
|
|
|
endif
|
2003-11-14 17:13:36 +00:00
|
|
|
|
2001-08-21 20:13:17 +00:00
|
|
|
TOOLS = \
|
2003-12-02 20:13:30 +00:00
|
|
|
regtests$(EXE_POSTFIX) \
|
|
|
|
rcopy$(EXE_POSTFIX) \
|
|
|
|
rdel$(EXE_POSTFIX) \
|
|
|
|
rline$(EXE_POSTFIX) \
|
|
|
|
rmkdir$(EXE_POSTFIX) \
|
|
|
|
rrmdir$(EXE_POSTFIX) \
|
|
|
|
rsym$(EXE_POSTFIX) \
|
2005-04-08 05:35:20 +00:00
|
|
|
raddr2line$(EXE_POSTFIX) \
|
2003-12-02 20:13:30 +00:00
|
|
|
rtouch$(EXE_POSTFIX) \
|
2004-08-07 20:23:33 +00:00
|
|
|
mkflpimg$(EXE_POSTFIX) \
|
2005-03-26 10:19:48 +00:00
|
|
|
ppc-le2be$(EXE_POSTFIX) \
|
|
|
|
hack-coff$(EXE_POSTFIX) \
|
2004-08-15 01:44:31 +00:00
|
|
|
depends$(EXE_POSTFIX)
|
2001-08-21 20:13:17 +00:00
|
|
|
|
2005-02-20 14:54:18 +00:00
|
|
|
LIBS = lib_unicode lib_wpp
|
|
|
|
|
2005-03-11 17:33:12 +00:00
|
|
|
CLEAN_FILES = $(TOOLS) tools-check.tmp tools-check.h
|
2001-08-21 20:13:17 +00:00
|
|
|
|
2005-03-11 17:33:12 +00:00
|
|
|
all: $(TOOLS) tools_check $(LIBS) zlib_target wmc_target cabman_target cdmake_target mkhive_target rgenstat_target \
|
2005-02-21 09:48:09 +00:00
|
|
|
wine2ros_target pipetools_target winebuild_target bin2res_target wrc_target widl_target \
|
|
|
|
buildno_target
|
2001-08-23 21:43:32 +00:00
|
|
|
|
2005-03-11 17:33:12 +00:00
|
|
|
tools_check:
|
|
|
|
$(MAKE) -f tools-check.mak
|
|
|
|
|
2003-07-11 18:13:57 +00:00
|
|
|
regtests$(EXE_POSTFIX): regtests.c
|
2005-04-08 05:35:20 +00:00
|
|
|
@$(HOST_CC) $(CFLAGS) -o $@ $<
|
2003-07-11 18:13:57 +00:00
|
|
|
|
2001-08-21 20:13:17 +00:00
|
|
|
rcopy$(EXE_POSTFIX): rcopy.c
|
2005-04-08 05:35:20 +00:00
|
|
|
@$(HOST_CC) $(CFLAGS) $< -o $@
|
2001-08-21 20:13:17 +00:00
|
|
|
|
|
|
|
rdel$(EXE_POSTFIX): rdel.c
|
2005-04-08 05:35:20 +00:00
|
|
|
@$(HOST_CC) $(CFLAGS) $< -o $@
|
2001-08-21 20:13:17 +00:00
|
|
|
|
2003-04-05 09:37:45 +00:00
|
|
|
rline$(EXE_POSTFIX): rline.c
|
2005-04-08 05:35:20 +00:00
|
|
|
@$(HOST_CC) $(CFLAGS) $< -o $@
|
2003-04-05 09:37:45 +00:00
|
|
|
|
2001-08-21 20:13:17 +00:00
|
|
|
rmkdir$(EXE_POSTFIX): rmkdir.c
|
2005-04-08 05:35:20 +00:00
|
|
|
@$(HOST_CC) $(CFLAGS) $< -o $@
|
2001-08-21 20:13:17 +00:00
|
|
|
|
|
|
|
rrmdir$(EXE_POSTFIX): rrmdir.c
|
2005-04-08 05:35:20 +00:00
|
|
|
@$(HOST_CC) $(CFLAGS) $< -o $@
|
2001-08-21 20:13:17 +00:00
|
|
|
|
2005-04-08 05:35:20 +00:00
|
|
|
rsym_common.o: rsym_common.c rsym.h
|
|
|
|
@$(HOST_CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
rsym.o: rsym.c rsym.h
|
|
|
|
@$(HOST_CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
rsym$(EXE_POSTFIX): rsym.o rsym_common.o
|
|
|
|
@$(HOST_CC) $(CFLAGS) $^ -o $@
|
|
|
|
|
|
|
|
raddr2line.o: raddr2line.c rsym.h
|
|
|
|
@$(HOST_CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
raddr2line$(EXE_POSTFIX): raddr2line.o rsym_common.o
|
|
|
|
@$(HOST_CC) $(CFLAGS) $^ -o $@
|
2002-07-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
* rules.mak (RSYM): Define.
* include/ddk/zwtypes.h (DebugDbgLoadSymbols): Add to enum
_DEBUG_CONTROL_CODE.
* include/ntdll/ldr.h (LDR_SYMBOL_INFO, LdrpLoadUserModuleSymbols): Add.
(LdrLoadModuleSymbols): Remove.
* include/ntos/kdbgsyms.h (ST_FILENAME, ST_FUNCTION,
ST_LINENUMBER): Add.
(SYMBOL). Make Name an ANSI_STRING.
(IMAGE_SYMBOL_INFO, AreSymbolsParsed): Add.
* lib/ntdll/ldr/startup.c (LdrInitializeThunk): Call
LdrpLoadUserModuleSymbols() not LdrLoadModuleSymbols().
* lib/ntdll/ldr/utils.c (LdrLoadModuleSymbols): Rename to
LdrpLoadUserModuleSymbols.
(LdrpLoadUserModuleSymbols): Use DebugDbgLoadSymbols debug control code.
(LdrLoadDll): assert if out of memory.
(LdrLoadDll): Call
LdrpLoadUserModuleSymbols(), not LdrLoadModuleSymbols().
* lib/ntdll/string/ctype.c (_pctype): #undef.
* ntoskrnl/dbg/dbgctrl.c (NtSystemDebugControl): Call
LdrLoadUserModuleSymbols on DebugDbgLoadSymbols.
* ntoskrnl/include/internal/ldr.h (LdrGetAddressInformation): Add.
* ntoskrnl/include/internal/module.h (MODULE_TEXT_SECTION): Make SymbolInfo
an IMAGE_SYMBOL_INFO.
* ntoskrnl/ke/i386/exp.c (LdrGetAddressInformation): Add prototype.
(print_address): Change #ifdef KDBG to #ifdef DBG.
(KiDoubleFaultHandler, KiDumpTrapFrame, KeDumpStackFrames): Dump
one stack frame per line.
* ntoskrnl/ke/i386/multiboot.S: Create pagetables for more kernel
address space so larger modules can be passed from the boot loader.
* ntoskrnl/ke/i386/usertrap.c (LdrGetAddressInformation): Add prototype.
(print_user_address): Print symbols using LdrGetAddressInformation().
* ntoskrnl/ldr/loader.c (SYMBOLFILE_HEADER, IMAGE_SYMBOL_INFO_CACHE,
STAB_ENTRY, N_FUN, N_SLINE, N_SO, SymbolListHead): Add.
(TAG_SYM_BUF): Remove.
(LdrInitDebug): Remove unneeded code.
(LdrInit1): Prepare for loading symbols.
(LdrpReadLine, HexL, LdrpParseLine, LdrpLoadModuleSymbolsFromBuffer,
LdrpLoadUserModuleSymbolsFromBuffer): Remove.
(LdrpParseImageSymbols, LdrpGetFileName, LdrpGetFunctionName,
LdrpGetLineNumber, LdrGetAddressInformation, LdrpLookupUserSymbolInfo): Add.
(LdrpLoadModuleSymbols, LdrInitializeBootStartDriver): Change to use new
symbol structures.
(LdrLoadUserModuleSymbols): Cache symbol buffers.
(LdrUnloadModuleSymbols): Implement.
(LdrLoadModule, LdrUnloadModule): Change #ifdef KDBG to #ifdef DBG.
(LdrPEProcessModule): Split a line into two lines.
(LdrPEProcessModule): Setup for loading symbols.
* ntoskrnl/ldr/sysdll.c (LdrpMapSystemDll): Open with FILE_SHARE_READ.
* ntoskrnl/ps/process.c (PiFreeSymbols): Call LdrUnloadModuleSymbols() to
free symbols.
(PiDeleteProcess): Change #ifdef KDBG to #ifdef DBG.
* ntoskrnl/rtl/ctype.c (_pctype): #undef.
* ntoskrnl/rtl/string.c (strncpy): Terminate destination string.
* tools/Makefile (rsym): Add target.
* tools/helper.mk: Include config and use -g if DBG = 1.
svn path=/trunk/; revision=3212
2002-07-13 12:44:09 +00:00
|
|
|
|
2003-01-15 20:18:12 +00:00
|
|
|
rtouch$(EXE_POSTFIX): rtouch.c
|
2005-04-08 05:35:20 +00:00
|
|
|
@$(HOST_CC) $(CFLAGS) $< -o $@
|
2003-01-15 20:18:12 +00:00
|
|
|
|
2003-04-13 13:05:04 +00:00
|
|
|
mkflpimg$(EXE_POSTFIX): mkflpimg.c
|
2005-04-08 05:35:20 +00:00
|
|
|
@$(HOST_CC) $(CFLAGS) $< -o $@
|
2003-04-13 12:51:28 +00:00
|
|
|
|
2005-03-26 10:19:48 +00:00
|
|
|
hack-coff$(EXE_POSTFIX): hack-coff.c
|
2005-04-08 05:35:20 +00:00
|
|
|
@$(HOST_CC) $(CFLAGS) $< -o $@
|
2005-03-26 10:19:48 +00:00
|
|
|
|
|
|
|
ppc-le2be$(EXE_POSTFIX): ppc-le2be.c
|
2005-04-08 05:35:20 +00:00
|
|
|
@$(HOST_CC) $(CFLAGS) $< -o $@
|
2005-03-26 10:19:48 +00:00
|
|
|
|
2004-08-15 01:44:31 +00:00
|
|
|
depends$(EXE_POSTFIX): depends.c
|
2005-04-08 05:35:20 +00:00
|
|
|
@$(HOST_CC) $(CFLAGS) $< -o $@
|
|
|
|
|
|
|
|
.PHONY: zlib_target wmc_target cdmake_target mkhive_target rgenstat_target pipetools_target wrc_target \
|
|
|
|
widl_target buildno_target lib_unicode lib_wpp
|
2003-01-15 20:18:12 +00:00
|
|
|
|
2003-08-24 10:36:07 +00:00
|
|
|
zlib_target:
|
2004-08-16 22:31:05 +00:00
|
|
|
$(MAKE) --silent -C ../lib/zlib -f Makefile.host
|
2003-08-24 10:36:07 +00:00
|
|
|
|
2003-04-14 17:19:42 +00:00
|
|
|
wmc_target:
|
2004-08-16 22:31:05 +00:00
|
|
|
$(MAKE) --silent -C wmc wmc$(EXE_POSTFIX)
|
2001-11-09 12:37:15 +00:00
|
|
|
|
2003-08-24 10:36:07 +00:00
|
|
|
cabman_target:
|
2004-08-16 22:31:05 +00:00
|
|
|
$(MAKE) --silent -C cabman cabman$(EXE_POSTFIX)
|
2003-08-24 10:36:07 +00:00
|
|
|
|
2003-04-14 17:19:42 +00:00
|
|
|
cdmake_target:
|
2004-08-16 22:31:05 +00:00
|
|
|
$(MAKE) --silent -C cdmake cdmake$(EXE_POSTFIX)
|
2003-04-07 18:16:58 +00:00
|
|
|
|
2003-04-14 17:19:42 +00:00
|
|
|
mkhive_target:
|
2004-08-16 22:31:05 +00:00
|
|
|
$(MAKE) --silent -C mkhive mkhive$(EXE_POSTFIX)
|
2003-04-14 17:19:42 +00:00
|
|
|
|
2003-07-10 12:29:02 +00:00
|
|
|
rgenstat_target:
|
2004-08-16 22:31:05 +00:00
|
|
|
$(MAKE) --silent -C rgenstat rgenstat$(EXE_POSTFIX)
|
2003-07-10 12:29:02 +00:00
|
|
|
|
2003-12-10 20:34:53 +00:00
|
|
|
wine2ros_target:
|
2004-08-16 22:31:05 +00:00
|
|
|
$(MAKE) --silent -C wine2ros wine2ros$(EXE_POSTFIX)
|
2003-12-10 20:34:53 +00:00
|
|
|
|
2003-11-30 22:48:54 +00:00
|
|
|
pipetools_target:
|
2003-12-07 12:54:13 +00:00
|
|
|
ifeq ($(HOST),mingw32-windows)
|
2004-08-16 22:31:05 +00:00
|
|
|
$(MAKE) --silent -C pipetools
|
2003-12-07 12:54:13 +00:00
|
|
|
endif
|
2003-11-30 22:48:54 +00:00
|
|
|
|
2004-01-02 19:49:47 +00:00
|
|
|
winebuild_target:
|
2004-08-16 22:31:05 +00:00
|
|
|
$(MAKE) --silent -C winebuild winebuild$(EXE_POSTFIX)
|
2004-01-02 19:49:47 +00:00
|
|
|
|
|
|
|
bin2res_target:
|
2004-08-16 22:31:05 +00:00
|
|
|
$(MAKE) --silent -C bin2res bin2res$(EXE_POSTFIX)
|
2004-01-02 19:49:47 +00:00
|
|
|
|
2005-02-20 14:54:18 +00:00
|
|
|
wrc_target: $(LIBS)
|
2005-02-19 22:30:27 +00:00
|
|
|
$(MAKE) --silent -C wrc wrc$(EXE_POSTFIX)
|
|
|
|
|
2005-02-21 09:48:09 +00:00
|
|
|
widl_target: lib_wpp
|
|
|
|
$(MAKE) --silent -C widl widl$(EXE_POSTFIX)
|
|
|
|
|
2005-02-19 23:05:09 +00:00
|
|
|
buildno_target:
|
|
|
|
$(MAKE) --silent -C buildno buildno$(EXE_POSTFIX)
|
|
|
|
|
2005-02-20 14:54:18 +00:00
|
|
|
lib_unicode:
|
|
|
|
$(MAKE) -C unicode
|
|
|
|
|
|
|
|
lib_wpp:
|
|
|
|
$(MAKE) -C wpp
|
|
|
|
|
2003-04-14 17:19:42 +00:00
|
|
|
|
2001-08-21 20:13:17 +00:00
|
|
|
clean:
|
2005-02-19 23:05:09 +00:00
|
|
|
$(MAKE) --silent -C buildno clean
|
2005-02-21 09:48:09 +00:00
|
|
|
$(MAKE) --silent -C widl clean
|
2005-02-19 22:30:27 +00:00
|
|
|
$(MAKE) --silent -C wrc clean
|
2004-08-16 22:31:05 +00:00
|
|
|
$(MAKE) --silent -C cabman clean
|
|
|
|
$(MAKE) --silent -C cdmake clean
|
|
|
|
$(MAKE) --silent -C mkhive clean
|
|
|
|
$(MAKE) --silent -C wmc clean
|
|
|
|
$(MAKE) --silent -C rgenstat clean
|
|
|
|
$(MAKE) --silent -C wine2ros clean
|
|
|
|
$(MAKE) --silent -C winebuild clean
|
|
|
|
$(MAKE) --silent -C bin2res clean
|
|
|
|
$(MAKE) --silent -C ../lib/zlib -f Makefile.host clean
|
2005-02-20 14:54:18 +00:00
|
|
|
$(MAKE) -C wpp clean
|
|
|
|
$(MAKE) -C unicode clean
|
2005-05-01 11:24:07 +00:00
|
|
|
ifeq ($(HOST_TYPE),unix)
|
2004-07-21 18:17:50 +00:00
|
|
|
@rm mkconfig
|
|
|
|
@rm $(TOOLS)
|
2005-05-01 11:24:07 +00:00
|
|
|
else
|
2004-08-16 22:31:05 +00:00
|
|
|
$(MAKE) --silent -C pipetools clean
|
2005-04-08 05:35:20 +00:00
|
|
|
$(rm) *$(EXE_POSTFIX)
|
2001-08-21 20:13:17 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: all clean
|