mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
- Support FULL_MAP command line option.
- Allow DEBUG to be set on command line. svn path=/trunk/; revision=11472
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
Changes in v1.8.25 (10/30/2004) (chorns)
|
||||
|
||||
- Support FULL_MAP command line option.
|
||||
- Allow DEBUG to be set on command line.
|
||||
|
||||
Changes in v1.8.24 (09/20/2004) (hbirr)
|
||||
|
||||
- Implemented the driver loading by the sequence of tag entries
|
||||
|
||||
@@ -21,10 +21,12 @@
|
||||
# CHANGE THESE FOR YOUR OUTPUT
|
||||
#
|
||||
TARGET = i386
|
||||
ifeq ($(DEBUG),)
|
||||
# Debugging information on (bigger binary)
|
||||
#DEBUG = yes
|
||||
# Debugging information off (smaller binary)
|
||||
DEBUG = no
|
||||
endif
|
||||
|
||||
OBJDIR = obj
|
||||
OUTPUT_DIR = $(OBJDIR)/$(TARGET)
|
||||
@@ -41,6 +43,8 @@ CP = $(subst /,$(SEP),$(TOOLSDIR))$(SEP)rcopy
|
||||
MKDIR = $(subst /,$(SEP),$(TOOLSDIR))$(SEP)rmkdir
|
||||
RMDIR = $(subst /,$(SEP),$(TOOLSDIR))$(SEP)rrmdir
|
||||
OBJCOPY = objcopy
|
||||
NM = nm
|
||||
OBJDUMP = objdump
|
||||
DEPTOOL = $(subst /,$(SEP),$(TOOLSDIR))$(SEP)deptool
|
||||
HOSTTOOL = $(subst /,$(SEP),$(TOOLSDIR))$(SEP)hosttype
|
||||
TOOLS = $(DEPTOOL) $(HOSTTOOL)
|
||||
@@ -347,10 +351,12 @@ all : freeldr.sys setupldr.sys
|
||||
|
||||
freeldr.sys : $(ALL_OBJS)
|
||||
@echo ===================================================== LINKING $@
|
||||
# @$(LD) -N -Ttext=0x8000 --oformat=binary -s -o freeldr.sys $(F_OBJS)
|
||||
@$(LD) $(LFLAGS) -Map freeldr.map -o freeldr.exe $(F_OBJS)
|
||||
# @$(CC) -Wl,-Ttext=0x8000,-N,-Map,freeldr.map -o freeldr.exe $(F_OBJS)
|
||||
@$(NM) --numeric-sort freeldr.exe > freeldr.sym
|
||||
@$(LD) $(LFLAGS) -o freeldr.exe $(F_OBJS)
|
||||
ifeq ($(FULL_MAP),yes)
|
||||
@$(OBJDUMP) -d -S freeldr.exe > freeldr.map
|
||||
else
|
||||
@$(NM) --numeric-sort freeldr.exe > freeldr.map
|
||||
endif
|
||||
@$(OBJCOPY) -O binary freeldr.exe freeldr.sys
|
||||
|
||||
#############################################
|
||||
@@ -358,7 +364,11 @@ freeldr.sys : $(ALL_OBJS)
|
||||
setupldr.sys : $(ALL_OBJS)
|
||||
@echo ===================================================== LINKING $@
|
||||
@$(LD) $(LFLAGS) -Map setupldr.map -o setupldr.exe $(S_OBJS)
|
||||
@$(NM) --numeric-sort setupldr.exe > setupldr.sym
|
||||
ifeq ($(FULL_MAP),yes)
|
||||
@$(OBJDUMP) -d -S setupldr.exe > setupldr.map
|
||||
else
|
||||
@$(NM) --numeric-sort setupldr.exe > setupldr.map
|
||||
endif
|
||||
@$(OBJCOPY) -O binary setupldr.exe setupldr.sys
|
||||
|
||||
#############################################
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
/* just some stuff */
|
||||
#define VERSION "FreeLoader v1.8.24"
|
||||
#define VERSION "FreeLoader v1.8.25"
|
||||
#define COPYRIGHT "Copyright (C) 1998-2003 Brian Palmer <[email protected]>"
|
||||
#define AUTHOR_EMAIL "<[email protected]>"
|
||||
#define BY_AUTHOR "by Brian Palmer"
|
||||
@@ -36,7 +36,7 @@
|
||||
//
|
||||
#define FREELOADER_MAJOR_VERSION 1
|
||||
#define FREELOADER_MINOR_VERSION 8
|
||||
#define FREELOADER_PATCH_VERSION 24
|
||||
#define FREELOADER_PATCH_VERSION 25
|
||||
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
Reference in New Issue
Block a user