mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 05:12:43 +00:00
remove obsoleted makefiles and config files, tools/Makefile -> tools/tools.mak, fix bugs in buildno's makefile.
svn path=/branches/xmlbuildsystem/; revision=13938
This commit is contained in:
parent
b832dffe13
commit
87cbce76ad
|
@ -1,5 +0,0 @@
|
|||
# Main jamfile for ReactOS
|
||||
|
||||
SubDir ROS_TOP ;
|
||||
|
||||
SubInclude ROS_TOP Lib ;
|
|
@ -1,54 +0,0 @@
|
|||
# customization for ReactOS goes here
|
||||
|
||||
# The SharedLibrary and SharedLibraryFromObjects rules were
|
||||
# borrowed from here:
|
||||
# http://www.differentpla.net/~roger/devel/jam/tutorial/shared_lib/index.html
|
||||
|
||||
SUFSHR = .dll ;
|
||||
RM = rm ; # rm comes with MinGW, and the default del doesn't work in some cases
|
||||
|
||||
rule SharedLibrary
|
||||
{
|
||||
SharedLibraryFromObjects $(<) : $(>:S=$(SUFOBJ)) ;
|
||||
Objects $(>) ;
|
||||
}
|
||||
|
||||
rule SharedLibraryFromObjects
|
||||
{
|
||||
local _s _t ;
|
||||
|
||||
# Add grist to file names
|
||||
# Add suffix to dll
|
||||
|
||||
_s = [ FGristFiles $(>) ] ;
|
||||
_t = [ FAppendSuffix $(<) : $(SUFSHR) ] ;
|
||||
|
||||
if $(_t) != $(<)
|
||||
{
|
||||
DEPENDS $(<) : $(_t) ;
|
||||
NOTFILE $(<) ;
|
||||
}
|
||||
|
||||
# make compiled sources a dependency of target
|
||||
|
||||
DEPENDS exe : $(_t) ;
|
||||
DEPENDS $(_t) : $(_s) ;
|
||||
MakeLocate $(_t) : $(LOCATE_TARGET) ;
|
||||
|
||||
Clean clean : $(_t) ;
|
||||
|
||||
Link $(_t) : $(_s) ;
|
||||
}
|
||||
|
||||
# nasm needs to know the output file first, or it doesn't
|
||||
# recognize -I :(
|
||||
actions As
|
||||
{
|
||||
$(AS) -o $(<) $(ASFLAGS) -I$(HDRS) $(>)
|
||||
}
|
||||
|
||||
AS = nasm ;
|
||||
|
||||
# why isn't DEFINES working? :(
|
||||
#DEFINES += _M_IX86 ;
|
||||
CCFLAGS += -D_M_IX86 ;
|
|
@ -110,7 +110,7 @@ BUGCODES_RC = .$(SEP)ntoskrnl$(SEP)bugcodes.rc
|
|||
ERRCODES_H = .$(SEP)include$(SEP)reactos$(SEP)errcodes.h
|
||||
ERRCODES_RC = .$(SEP)lib$(SEP)kernel32$(SEP)errcodes.rc
|
||||
|
||||
include tools/Makefile
|
||||
include tools/tools.mak
|
||||
-include makefile.auto
|
||||
|
||||
PREAUTO := \
|
||||
|
|
|
@ -1,96 +0,0 @@
|
|||
# $Id$
|
||||
#
|
||||
# Please try to keep this up2date. Please clean up
|
||||
# after yourself.
|
||||
|
||||
# REACTOS
|
||||
|
||||
TARGET_BASE_LIB_DINPUT8 =0x00400000
|
||||
TARGET_BASE_LIB_DXDIAGN =0x00400000
|
||||
TARGET_BASE_LIB_NOTIFYHOOK =0x08000000
|
||||
TARGET_BASE_LIB_SECURE32 =0x10000000
|
||||
TARGET_BASE_LIB_DEVENUM =0x35680000
|
||||
TARGET_BASE_LIB_DSOUND =0x50000000
|
||||
TARGET_BASE_LIB_GLU32 =0x50000000
|
||||
TARGET_BASE_LIB_OPENGL32 =0x50000000
|
||||
TARGET_BASE_LIB_EXT_SLAYER =0x5C7E0000
|
||||
TARGET_BASE_LIB_DINPUT =0x5F580000
|
||||
TARGET_BASE_LIB_CPL_TIMEDATE =0x64DA0000
|
||||
TARGET_BASE_LIB_CPL_SYSDM =0x64DD0000
|
||||
TARGET_BASE_LIB_CPL_NCPL =0x64EA0000
|
||||
TARGET_BASE_LIB_CPL_MAIN =0x64F40000
|
||||
TARGET_BASE_LIB_CPL_INTL =0x64FB0000
|
||||
TARGET_BASE_LIB_CPL_DESK =0x65080000
|
||||
TARGET_BASE_LIB_CPL_APPWIZ =0x65100000
|
||||
TARGET_BASE_LIB_CPL_ACCESS =0x65180000
|
||||
TARGET_BASE_LIB_HID =0x688F0000
|
||||
TARGET_BASE_PSX_LIB_PSXDLL =0x68eb0000
|
||||
TARGET_BASE_LIB_PSAPI =0x68f70000
|
||||
TARGET_BASE_LIB_MSIMG32 =0x69cc0000
|
||||
TARGET_BASE_LIB_NETPLWIZ =0x6a240000
|
||||
TARGET_BASE_LIB_UNICODE =0x6b200000
|
||||
TARGET_BASE_VGA_DISPLAY =0x70000000
|
||||
TARGET_BASE_LIB_CARDS =0x701a0000
|
||||
TARGET_BASE_LIB_WININET =0x70200000
|
||||
TARGET_BASE_LIB_ACLUI =0x71550000
|
||||
TARGET_BASE_LIB_SHDOCVW =0x71700000
|
||||
TARGET_BASE_LIB_MSWSOCK =0x71a30000
|
||||
TARGET_BASE_LIB_WSOCK32 =0x71ab0000
|
||||
TARGET_BASE_LIB_ACLEDIT =0x71b70000
|
||||
TARGET_BASE_LIB_NETAPI32 =0x71c00000
|
||||
TARGET_BASE_LIB_WINFAX =0x722C0000
|
||||
TARGET_BASE_LIB_DEVMGR =0x72a90000
|
||||
TARGET_BASE_LIB_WINSCARD =0x723D0000
|
||||
TARGET_BASE_LIB_COREDLL =0x73d80000
|
||||
TARGET_BASE_LIB_LZEXPAND =0x73d80000
|
||||
TARGET_BASE_LIB_USERENV =0x74850000
|
||||
TARGET_BASE_LIB_SYSSETUP =0x74a30000
|
||||
TARGET_BASE_LIB_OLEDLG =0x74d00000
|
||||
TARGET_BASE_LIB_SAMLIB =0x750C0000
|
||||
TARGET_BASE_LIB_CABINET =0x75120000
|
||||
TARGET_BASE_LIB_MSGINA =0x75970000
|
||||
TARGET_BASE_LIB_COMMCTRL =0x75e60000
|
||||
TARGET_BASE_LIB_IMM32 =0x75e60000
|
||||
TARGET_BASE_LIB_RPCRT4 =0x76000000
|
||||
TARGET_BASE_LIB_MIDIMAP =0x76600000
|
||||
TARGET_BASE_LIB_SHLWAPI =0x76120000
|
||||
TARGET_BASE_LIB_COMCTL32 =0x76160000
|
||||
TARGET_BASE_LIB_COMDLG32 =0x76200000
|
||||
TARGET_BASE_LIB_OLEAUT32 =0x76260000
|
||||
TARGET_BASE_LIB_D3D8THK =0x76340000
|
||||
TARGET_BASE_LIB_RICHEDIT =0x76340000
|
||||
TARGET_BASE_LIB_TWAIN_32 =0x76380000
|
||||
TARGET_BASE_LIB_LSASRV =0x76540000
|
||||
TARGET_BASE_LIB_MPR =0x76620000
|
||||
TARGET_BASE_LIB_ODBC32 =0x76660000
|
||||
TARGET_BASE_LIB_SETUPAPI =0x76660000
|
||||
TARGET_BASE_LIB_GDIPLUS =0x76a00000
|
||||
TARGET_BASE_LIB_IMAGEHLP =0x76c90000
|
||||
TARGET_BASE_LIB_FMIFS =0x76df0000
|
||||
TARGET_BASE_LIB_SHELL32 =0x77260000
|
||||
TARGET_BASE_LIB_IPHLPAPI =0x77300000
|
||||
TARGET_BASE_LIB_MSACM =0x77400000
|
||||
TARGET_BASE_LIB_MMDRV =0x77500000
|
||||
TARGET_BASE_LIB_CRTDLL =0x77630000
|
||||
TARGET_BASE_LIB_PACKET =0x77780000
|
||||
TARGET_BASE_LIB_W2_32 =0x77780000
|
||||
TARGET_BASE_LIB_MSAFD =0x777a0000
|
||||
TARGET_BASE_LIB_IPRTPRIO =0x777c0000
|
||||
TARGET_BASE_LIB_SNMPAPI =0x777c0000
|
||||
TARGET_BASE_LIB_WINMM =0x777c0000
|
||||
TARGET_BASE_LIB_WS2HELP =0x777c0000
|
||||
TARGET_BASE_LIB_WSHIRDA =0x777c0000
|
||||
TARGET_BASE_NET_WSHTCPIP =0x777c0000
|
||||
TARGET_BASE_LIB_WINSPOOL =0x77800000
|
||||
TARGET_BASE_LIB_OLE32 =0x77a50000
|
||||
TARGET_BASE_LIB_OLEPRO32 =0x77a50000
|
||||
TARGET_BASE_LIB_VERSION =0x77a90000
|
||||
TARGET_BASE_LIB_ADVAPI32 =0x77dc0000
|
||||
TARGET_BASE_LIB_USER32 =0x77e60000
|
||||
TARGET_BASE_LIB_GDI32 =0x77ed0000
|
||||
TARGET_BASE_LIB_DNSAPI =0x77f00000
|
||||
TARGET_BASE_LIB_MSVCRT =0x78000000
|
||||
TARGET_BASE_LIB_MSVCRT20 =0x78500000
|
||||
TARGET_BASE_LIB_EXPAT =0x79000000
|
||||
TARGET_BASE_LIB_KERNEL32 =0x7C800000
|
||||
TARGET_BASE_LIB_NTDLL =0x7C900000
|
|
@ -1,54 +0,0 @@
|
|||
#
|
||||
# Architecture to build for
|
||||
#
|
||||
# Specify one of: i386
|
||||
# Possible values in the future: alpha,i386,m68k,mips,powerpc
|
||||
ARCH := i386
|
||||
|
||||
|
||||
#
|
||||
# Which cpu should reactos optimize for
|
||||
# example : i486, i586, pentium, pentium2, pentium3, pentium4
|
||||
# athlon-xp, athlon-mp, k6-2,
|
||||
#
|
||||
# see gcc manual for more cpu names and which cpus it can
|
||||
# be optimized for.
|
||||
#
|
||||
|
||||
OARCH := i486
|
||||
|
||||
#
|
||||
# Whether to compile in the kernel debugger
|
||||
#
|
||||
KDBG := 0
|
||||
|
||||
#
|
||||
# Whether to compile for debugging
|
||||
#
|
||||
DBG := 0
|
||||
|
||||
#
|
||||
# Whether to compile with optimizations
|
||||
#
|
||||
OPTIMIZED := 0
|
||||
|
||||
#
|
||||
# Whether to compile a multiprocessor or single processor version
|
||||
#
|
||||
CONFIG_SMP := 0
|
||||
|
||||
#
|
||||
# Whether to compile for ACPI compliant systems
|
||||
#
|
||||
ACPI := 0
|
||||
|
||||
#
|
||||
# whether to use a 3GB User, 1GB Kernel memory map
|
||||
#
|
||||
3GB := 0
|
||||
|
||||
#
|
||||
# Which version of NDIS do we support up to?
|
||||
#
|
||||
#NDISVERSION=NDIS50
|
||||
|
|
@ -1,211 +0,0 @@
|
|||
# Default to half-verbose mode
|
||||
ifeq ($(VERBOSE),no)
|
||||
Q = @
|
||||
HALFVERBOSEECHO = @:
|
||||
# Do not print "Entering directory ..."
|
||||
export MAKEFLAGS += --no-print-directory
|
||||
# Be silent
|
||||
export MAKEFLAGS += --silent
|
||||
else
|
||||
ifeq ($(VERBOSE),yes)
|
||||
Q =
|
||||
HALFVERBOSEECHO = @:
|
||||
else
|
||||
Q = @
|
||||
# the following is a hack to get the target name for wine dlls
|
||||
# it's disabled because it produces warnings about overriden rules for author.c
|
||||
#ifeq ($(TARGET_TYPE),winedll)
|
||||
# export TOOLS_PATH = $(PATH_TO_TOP)/tools
|
||||
# -include Makefile.ros
|
||||
#endif
|
||||
ifeq ($(TARGET_NAME),)
|
||||
HALFVERBOSEECHO = @echo
|
||||
else
|
||||
HALFVERBOSEECHO = @echo $(TARGET_NAME):
|
||||
endif
|
||||
# Do not print "Entering directory ..."
|
||||
export MAKEFLAGS += --no-print-directory
|
||||
# Be silent
|
||||
export MAKEFLAGS += --silent
|
||||
endif
|
||||
endif
|
||||
|
||||
export MAKE := @$(MAKE)
|
||||
|
||||
ifeq ($(VERBOSE),no)
|
||||
endif
|
||||
|
||||
# Windows is default host environment
|
||||
ifeq ($(HOST),)
|
||||
export HOST = mingw32-windows
|
||||
endif
|
||||
|
||||
# Default to building map files which includes source and asm code
|
||||
# Other options are: yes
|
||||
ifeq ($(BUILD_MAP),)
|
||||
export BUILD_MAP = full
|
||||
endif
|
||||
|
||||
# Default to dumping .sym files out of .nostrip files
|
||||
ifeq ($(BUILD_SYM),)
|
||||
export BUILD_SYM = yes
|
||||
endif
|
||||
|
||||
# Default to minimal dependencies, making components not
|
||||
# depend on all import libraries
|
||||
ifeq ($(MINIMALDEPENDENCIES),)
|
||||
export MINIMALDEPENDENCIES = yes
|
||||
endif
|
||||
|
||||
# Default to no PCH support
|
||||
ifeq ($(ROS_USE_PCH),)
|
||||
export ROS_USE_PCH = no
|
||||
endif
|
||||
|
||||
# uncomment if you use bochs and it displays only 30 rows
|
||||
# BOCHS_30ROWS = yes
|
||||
|
||||
#
|
||||
# Choose various options
|
||||
#
|
||||
ifeq ($(HOST),mingw32-linux)
|
||||
export NASM_FORMAT = win32
|
||||
export PREFIX = mingw32-
|
||||
export EXE_POSTFIX :=
|
||||
export EXE_PREFIX := ./
|
||||
export DLLTOOL = $(PREFIX)dlltool --as=$(PREFIX)as
|
||||
#
|
||||
# Do not change NASM_CMD to NASM because older versions of
|
||||
# nasm doesn't like an environment variable NASM
|
||||
#
|
||||
export NASM_CMD = nasm
|
||||
export DOSCLI =
|
||||
export FLOPPY_DIR = /mnt/floppy
|
||||
export SEP := /
|
||||
export PIPE :=
|
||||
endif
|
||||
|
||||
ifeq ($(HOST),mingw32-windows)
|
||||
export NASM_FORMAT = win32
|
||||
export PREFIX =
|
||||
export EXE_PREFIX :=
|
||||
export EXE_POSTFIX := .exe
|
||||
export DLLTOOL = $(Q)$(PREFIX)dlltool --as=$(PREFIX)as
|
||||
#
|
||||
# Do not change NASM_CMD to NASM because older versions of
|
||||
# nasm doesn't like an environment variable NASM
|
||||
#
|
||||
export NASM_CMD = $(Q)nasmw
|
||||
export DOSCLI = yes
|
||||
export FLOPPY_DIR = A:
|
||||
export SEP := \$(EMPTY_VAR)
|
||||
export PIPE := -pipe
|
||||
endif
|
||||
|
||||
# TOPDIR is used by make bootcd but not defined anywhere. Usurp pointed out
|
||||
# that it has the same meaning as PATH_TO_TOP.
|
||||
export TOPDIR = $(PATH_TO_TOP)
|
||||
|
||||
# Directory to build a bootable CD image in
|
||||
export BOOTCD_DIR=$(TOPDIR)/../bootcd/disk
|
||||
export LIVECD_DIR=$(TOPDIR)/../livecd/disk
|
||||
|
||||
ifeq ($(LIVECD_INSTALL),yes)
|
||||
export INSTALL_DIR=$(LIVECD_DIR)/reactos
|
||||
else
|
||||
# Use environment var ROS_INSTALL to override default install dir
|
||||
ifeq ($(ROS_INSTALL),)
|
||||
ifeq ($(HOST),mingw32-windows)
|
||||
export INSTALL_DIR = C:/reactos
|
||||
else
|
||||
export INSTALL_DIR = $(PATH_TO_TOP)/reactos
|
||||
endif
|
||||
else
|
||||
export INSTALL_DIR = $(ROS_INSTALL)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
export CC = $(Q)$(PREFIX)gcc
|
||||
export CXX = $(Q)$(PREFIX)g++
|
||||
export HOST_CC = $(Q)gcc
|
||||
export HOST_CXX = $(Q)g++
|
||||
export HOST_AR = $(Q)ar
|
||||
export HOST_NM = $(Q)nm
|
||||
export LD = $(Q)$(PREFIX)ld
|
||||
export NM = $(Q)$(PREFIX)nm
|
||||
export OBJCOPY = $(Q)$(PREFIX)objcopy
|
||||
export STRIP = $(Q)$(PREFIX)strip
|
||||
export AS = $(Q)$(PREFIX)gcc -c -x assembler-with-cpp
|
||||
export CPP = $(Q)$(PREFIX)cpp
|
||||
export AR = $(Q)$(PREFIX)ar
|
||||
export RC = $(Q)$(PREFIX)windres
|
||||
export WRC = $(Q)$(WINE_TOP)/tools/wrc/wrc
|
||||
export OBJCOPY = $(Q)$(PREFIX)objcopy
|
||||
export OBJDUMP =$(Q)$(PREFIX)objdump
|
||||
export TOOLS_PATH = $(PATH_TO_TOP)/tools
|
||||
export W32API_PATH = $(PATH_TO_TOP)/w32api
|
||||
export CP = $(Q)$(TOOLS_PATH)/rcopy
|
||||
export RM = $(Q)$(TOOLS_PATH)/rdel
|
||||
export RLINE = $(Q)$(TOOLS_PATH)/rline
|
||||
export RMDIR = $(Q)$(TOOLS_PATH)/rrmdir
|
||||
export RMKDIR = $(Q)$(TOOLS_PATH)/rmkdir
|
||||
export RSYM = $(Q)$(TOOLS_PATH)/rsym
|
||||
export RTOUCH = $(Q)$(TOOLS_PATH)/rtouch
|
||||
export REGTESTS = $(Q)$(TOOLS_PATH)/regtests
|
||||
export MC = $(Q)$(TOOLS_PATH)/wmc/wmc
|
||||
export CABMAN = $(Q)$(TOOLS_PATH)/cabman/cabman
|
||||
export WINEBUILD = $(Q)$(TOOLS_PATH)/winebuild/winebuild
|
||||
export WINE2ROS = $(Q)$(TOOLS_PATH)/wine2ros/wine2ros
|
||||
export MKHIVE = $(Q)$(TOOLS_PATH)/mkhive/mkhive
|
||||
export CDMAKE = $(Q)$(TOOLS_PATH)/cdmake/cdmake
|
||||
export BIN2RES = $(Q)$(TOOLS_PATH)/bin2res/bin2res
|
||||
export XSLTPROC = $(Q)xsltproc
|
||||
export MS2PS = $(Q)$(TOOLS_PATH)/ms2ps/ms2ps
|
||||
export WRC = $(Q)$(TOOLS_PATH)/wrc/wrc
|
||||
export WIDL = $(Q)$(TOOLS_PATH)/widl/widl
|
||||
|
||||
export STD_CFLAGS = -I$(PATH_TO_TOP)/include -I$(W32API_PATH)/include -pipe -march=$(OARCH) -D_M_IX86
|
||||
export STD_CPPFLAGS = $(STD_CFLAGS)
|
||||
# Check for 3GB
|
||||
ifeq ($(3GB), 1)
|
||||
export STD_ASFLAGS = -I$(PATH_TO_TOP)/include -I$(W32API_PATH)/include -D__ASM__ -D_M_IX86 -D__3GB__
|
||||
else
|
||||
export STD_ASFLAGS = -I$(PATH_TO_TOP)/include -I$(W32API_PATH)/include -D__ASM__ -D_M_IX86
|
||||
endif
|
||||
export STD_RCFLAGS = --include-dir $(PATH_TO_TOP)/include --include-dir $(W32API_PATH)/include
|
||||
export STD_NFLAGS = -f win32
|
||||
|
||||
# Developer Kits
|
||||
export DK_PATH=$(PATH_TO_TOP)/dk
|
||||
# Native and kernel mode
|
||||
export DDK_PATH=$(DK_PATH)/nkm
|
||||
export DDK_PATH_LIB=$(DDK_PATH)/lib
|
||||
export DDK_PATH_INC=$(PATH_TO_TOP)/include
|
||||
# Win32
|
||||
export SDK_PATH=$(DK_PATH)/w32
|
||||
export SDK_PATH_LIB=$(SDK_PATH)/lib
|
||||
export SDK_PATH_INC=$(PATH_TO_TOP)/include
|
||||
# POSIX+
|
||||
export XDK_PATH=$(DK_PATH)/psx
|
||||
export XDK_PATH_LIB=$(XDK_PATH)/lib
|
||||
export XDK_PATH_INC=$(XDK_PATH)/include
|
||||
|
||||
# Wine Integration
|
||||
export WINE_PATH=$(PATH_TO_TOP)/../wine
|
||||
export WINE_PATH_LIB=$(WINE_PATH)/lib
|
||||
export WINE_PATH_INC=$(WINE_PATH)/include
|
||||
|
||||
# Posix+ Integration
|
||||
export POSIX_PATH=$(PATH_TO_TOP)/../posix
|
||||
export POSIX_PATH_LIB=$(POSIX_PATH)/lib
|
||||
export POSIX_PATH_INC=$(POSIX_PATH)/include
|
||||
|
||||
# OS/2 Integration
|
||||
export OS2_PATH=$(PATH_TO_TOP)/../os2
|
||||
export OS2_PATH_LIB=$(OS2_PATH)/lib
|
||||
export OS2_PATH_INC=$(OS2_PATH)/include
|
||||
|
||||
# Other systems integration
|
||||
export REGTESTS_PATH=$(PATH_TO_TOP)/regtests
|
||||
export REGTESTS_PATH_INC=$(PATH_TO_TOP)/regtests/shared
|
|
@ -1,7 +1,7 @@
|
|||
BUILDNO_BASE = tools$(SEP)buildno
|
||||
|
||||
BUILDNO_TARGET = \
|
||||
$(ROS_INTERMEDIATE)$(BUILDNO_BASE)$(SEP)buildno$(EXEPOSTFIX)
|
||||
$(EXEPREFIX)$(BUILDNO_BASE)$(SEP)buildno$(EXEPOSTFIX)
|
||||
|
||||
BUILDNO_SOURCES = \
|
||||
$(BUILDNO_BASE)$(SEP)buildno.cpp \
|
||||
|
@ -31,5 +31,8 @@ buildno_clean:
|
|||
# BUILDNO_H is defined from the top-level makefile now...
|
||||
#BUILDNO_H = .$(SEP)include$(SEP)reactos$(SEP)buildno.h
|
||||
|
||||
.PHONY: buildno_h
|
||||
buildno_h: $(BUILDNO_H)
|
||||
|
||||
$(BUILDNO_H): $(BUILDNO_TARGET)
|
||||
$(EXEPREFIX)$(BUILDNO_TARGET) $(BUILDNO_H)
|
||||
$(BUILDNO_TARGET) $(BUILDNO_H)
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
# Global configuration
|
||||
|
||||
#
|
||||
# Include details of the OS configuration
|
||||
#
|
||||
include $(PATH_TO_TOP)/config
|
||||
|
||||
CONFIG :=
|
||||
|
||||
ifeq ($(DBG), 1)
|
||||
CONFIG += DBG
|
||||
endif
|
||||
|
||||
ifeq ($(KDBG), 1)
|
||||
CONFIG += KDBG
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_SMP), 1)
|
||||
CONFIG += CONFIG_SMP
|
||||
endif
|
||||
|
||||
ifeq ($(ACPI), 1)
|
||||
CONFIG += ACPI
|
||||
endif
|
||||
|
||||
$(PATH_TO_TOP)/tools/mkconfig$(EXE_POSTFIX): $(PATH_TO_TOP)/tools/mkconfig.c
|
||||
@$(HOST_CC) -g -o $(PATH_TO_TOP)/tools/mkconfig$(EXE_POSTFIX) $(PATH_TO_TOP)/tools/mkconfig.c
|
||||
|
||||
$(PATH_TO_TOP)/config: $(PATH_TO_TOP)/tools/mkconfig$(EXE_POSTFIX)
|
||||
@$(PATH_TO_TOP)/tools/mkconfig$(EXE_POSTFIX) $(PATH_TO_TOP)/include/roscfg.h$(CONFIG)
|
||||
|
||||
$(PATH_TO_TOP)/include/roscfg.h: $(PATH_TO_TOP)/config
|
||||
@$(PATH_TO_TOP)/tools/mkconfig$(EXE_POSTFIX) $(PATH_TO_TOP)/include/roscfg.h$(CONFIG)
|
|
@ -1,65 +0,0 @@
|
|||
# Automatic dependancy tracking
|
||||
# Define $DEP_OBJECTS before this file is included
|
||||
# $DEP_OBJECTS contain a list of object files that are checked for dependancies
|
||||
|
||||
ifneq ($(DEPENDENCIES),no)
|
||||
ifneq ($(MAKECMDGOALS),implib)
|
||||
|
||||
DEP_FILTERED := $(filter-out $(DEP_EXCLUDE_FILTER), $(DEP_OBJECTS:.o=.d))
|
||||
|
||||
PCH :=
|
||||
|
||||
ifeq ($(ROS_USE_PCH),yes)
|
||||
ifneq ($(TARGET_PCH),)
|
||||
|
||||
PCH = $(TARGET_PCH).gch
|
||||
|
||||
DEP_FILTERED := $(DEP_FILTERED) $(TARGET_PCH:.h=.d)
|
||||
|
||||
endif # TARGET_PCH
|
||||
endif
|
||||
|
||||
DEP_FILES := $(join $(dir $(DEP_FILTERED)), $(addprefix ., $(notdir $(DEP_FILTERED))))
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(DEP_FILES),)
|
||||
-include $(DEP_FILES)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(SEP),\)
|
||||
DEPENDS_PATH := $(subst /,\,$(PATH_TO_TOP))\tools
|
||||
else
|
||||
DEPENDS_PATH := $(PATH_TO_TOP)/tools
|
||||
endif
|
||||
|
||||
.%.d: %.c $(PATH_TO_TOP)/tools/depends$(EXE_POSTFIX) $(GENERATED_HEADER_FILES)
|
||||
$(HALFVERBOSEECHO) [DEPENDS] $@
|
||||
$(CC) $(CFLAGS) -M $< | $(DEPENDS_PATH)$(SEP)depends$(EXE_POSTFIX) $(@D) $@
|
||||
|
||||
.%.d: %.cc $(PATH_TO_TOP)/tools/depends$(EXE_POSTFIX) $(GENERATED_HEADER_FILES)
|
||||
$(HALFVERBOSEECHO) [DEPENDS] $@
|
||||
$(CC) $(CFLAGS) -M $< | $(DEPENDS_PATH)$(SEP)depends$(EXE_POSTFIX) $(@D) $@
|
||||
|
||||
.%.d: %.cpp $(PATH_TO_TOP)/tools/depends$(EXE_POSTFIX) $(GENERATED_HEADER_FILES)
|
||||
$(HALFVERBOSEECHO) [DEPENDS] $@
|
||||
$(CC) $(CFLAGS) -M $< | $(DEPENDS_PATH)$(SEP)depends$(EXE_POSTFIX) $(@D) $@
|
||||
|
||||
.%.d: %.S $(PATH_TO_TOP)/tools/depends$(EXE_POSTFIX) $(GENERATED_HEADER_FILES)
|
||||
$(HALFVERBOSEECHO) [DEPENDS] $@
|
||||
$(CC) $(CFLAGS) -M $< | $(DEPENDS_PATH)$(SEP)depends$(EXE_POSTFIX) $(@D) $@
|
||||
|
||||
.%.d: %.s $(PATH_TO_TOP)/tools/depends$(EXE_POSTFIX) $(GENERATED_HEADER_FILES)
|
||||
$(HALFVERBOSEECHO) [DEPENDS] $@
|
||||
$(CC) $(CFLAGS) -M $< | $(DEPENDS_PATH)$(SEP)depends$(EXE_POSTFIX) $(@D) $@
|
||||
|
||||
.%.d: %.asm $(PATH_TO_TOP)/tools/depends$(EXE_POSTFIX) $(GENERATED_HEADER_FILES)
|
||||
$(HALFVERBOSEECHO) [DEPENDS] $@
|
||||
$(NASM_CMD) $(NFLAGS) -M $< | $(DEPENDS_PATH)$(SEP)depends$(EXE_POSTFIX) $(@D) $@
|
||||
|
||||
.%.d: %.h $(PATH_TO_TOP)/tools/depends$(EXE_POSTFIX) $(GENERATED_HEADER_FILES)
|
||||
$(HALFVERBOSEECHO) [DEPENDS] $@
|
||||
$(PCH_CC) $(CFLAGS) -M $< | $(DEPENDS_PATH)$(SEP)depends$(EXE_POSTFIX) $(@D) $@
|
||||
|
||||
endif
|
||||
endif
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue