2005-02-25 21:21:53 +00:00
|
|
|
host_gcc = gcc
|
|
|
|
host_gpp = g++
|
|
|
|
host_ld = ld
|
|
|
|
host_ar = ar
|
|
|
|
host_objcopy = objcopy
|
2005-02-12 15:11:48 +00:00
|
|
|
ifeq ($(HOST),mingw32-linux)
|
2005-02-25 21:21:53 +00:00
|
|
|
EXEPREFIX = ./
|
2005-02-12 15:11:48 +00:00
|
|
|
EXEPOSTFIX =
|
|
|
|
SEP = /
|
|
|
|
nmkdir = mkdir -p
|
2005-02-25 21:21:53 +00:00
|
|
|
gcc = mingw32-gcc
|
|
|
|
gpp = mingw32-g++
|
|
|
|
ld = mingw32-ld
|
|
|
|
ar = mingw32-ar
|
|
|
|
objcopy = mingw32-objcopy
|
|
|
|
dlltool = mingw32-dlltool
|
|
|
|
windres = mingw32-windres
|
|
|
|
rm = rm -f
|
2005-03-02 22:56:41 +00:00
|
|
|
cp = cp
|
2005-02-25 21:21:53 +00:00
|
|
|
NUL = /dev/null
|
2005-02-12 15:11:48 +00:00
|
|
|
else # mingw32-windows
|
2005-02-25 21:21:53 +00:00
|
|
|
EXEPREFIX =
|
2005-02-12 15:11:48 +00:00
|
|
|
EXEPOSTFIX = .exe
|
|
|
|
SEP = \$(EMPTY_VAR)
|
|
|
|
nmkdir = mkdir
|
2005-02-25 21:21:53 +00:00
|
|
|
gcc = gcc
|
|
|
|
gpp = g++
|
|
|
|
ld = ld
|
|
|
|
ar = ar
|
|
|
|
objcopy = objcopy
|
|
|
|
dlltool = dlltool
|
|
|
|
windres = windres
|
2005-02-25 20:00:27 +00:00
|
|
|
rm = del /f /q
|
2005-03-02 22:56:41 +00:00
|
|
|
cp = copy /y
|
2005-02-25 21:21:53 +00:00
|
|
|
NUL = NUL
|
2001-11-03 16:48:07 +00:00
|
|
|
endif
|
|
|
|
|
2005-02-25 21:21:53 +00:00
|
|
|
.PHONY: all
|
|
|
|
.PHONY: clean
|
|
|
|
|
2005-02-25 20:00:27 +00:00
|
|
|
all: Makefile.auto
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2005-02-12 15:11:48 +00:00
|
|
|
ifneq ($(ROS_INTERMEDIATE),)
|
|
|
|
$(ROS_INTERMEDIATE)tools: $(ROS_INTERMEDIATE)
|
|
|
|
${nmkdir} $(ROS_INTERMEDIATE)tools
|
2005-02-25 21:21:53 +00:00
|
|
|
endif
|
2000-09-17 09:41:15 +00:00
|
|
|
|
2005-02-12 15:11:48 +00:00
|
|
|
ifneq ($(ROS_INTERMEDIATE),)
|
|
|
|
$(ROS_INTERMEDIATE):
|
|
|
|
${nmkdir} $(ROS_INTERMEDIATE)
|
2004-12-18 22:28:42 +00:00
|
|
|
endif
|
|
|
|
|
2005-02-15 21:24:19 +00:00
|
|
|
include tools/Makefile
|
2005-03-04 19:07:02 +00:00
|
|
|
-include Makefile.auto
|
2003-12-06 23:11:41 +00:00
|
|
|
|
2005-02-25 19:38:11 +00:00
|
|
|
PREAUTO := \
|
|
|
|
include$(SEP)reactos$(SEP)buildno.h \
|
2005-02-12 15:11:48 +00:00
|
|
|
include$(SEP)reactos$(SEP)bugcodes.h \
|
|
|
|
ntoskrnl$(SEP)bugcodes.rc \
|
|
|
|
include$(SEP)reactos$(SEP)errcodes.h \
|
|
|
|
lib$(SEP)kernel32$(SEP)errcodes.rc
|
2003-12-06 23:11:41 +00:00
|
|
|
|
2005-02-26 20:17:44 +00:00
|
|
|
Makefile.auto: $(RMKDIR_TARGET) $(BUILDNO_TARGET) $(NCI_SERVICE_FILES) $(WMC_TARGET) $(CDMAKE_TARGET) $(RBUILD_TARGET) $(PREAUTO)
|
2005-02-25 19:38:11 +00:00
|
|
|
tools$(SEP)rbuild$(SEP)rbuild$(EXEPOSTFIX) mingw
|
2005-03-04 18:51:17 +00:00
|
|
|
# $(MAKE) $(MAKECMDGOALS)
|
2005-02-25 19:38:11 +00:00
|
|
|
|
|
|
|
|
2005-02-15 21:24:19 +00:00
|
|
|
include$(SEP)reactos$(SEP)bugcodes.h ntoskrnl$(SEP)bugcodes.rc: $(WMC_TARGET) ntoskrnl$(SEP)ntoskrnl.mc
|
|
|
|
$(WMC_TARGET) -H include$(SEP)reactos$(SEP)bugcodes.h -o ntoskrnl$(SEP)bugcodes.rc ntoskrnl$(SEP)ntoskrnl.mc
|
2003-12-06 23:22:30 +00:00
|
|
|
|
2005-02-15 21:24:19 +00:00
|
|
|
include$(SEP)reactos$(SEP)errcodes.h lib$(SEP)kernel32$(SEP)errcodes.rc: $(WMC_TARGET) lib$(SEP)kernel32$(SEP)kernel32.mc
|
2005-02-12 15:11:48 +00:00
|
|
|
$(WMC_TARGET) -H include$(SEP)reactos$(SEP)errcodes.h -o lib$(SEP)kernel32$(SEP)errcodes.rc lib$(SEP)kernel32$(SEP)kernel32.mc
|
2005-02-25 20:00:27 +00:00
|
|
|
|
|
|
|
clean::
|
2005-02-25 20:04:44 +00:00
|
|
|
-@$(rm) Makefile.auto $(PREAUTO) 2>$(NUL)
|