# Do not build libgcc1.
LIBGCC1 =
CROSS_LIBGCC1 =

# There are system headers elsewhere, but these are the ones that
# we are most likely to want to apply any fixes to.
SYSTEM_HEADER_DIR = /boot/develop/headers/posix
CROSS_SYSTEM_HEADER_DIR := $(CROSS_SYSTEM_HEADER_DIR)/posix

# Use the system assert.h
INSTALL_ASSERT_H =

winnt.o: $(srcdir)/config/i386/winnt.c
	$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i386/winnt.c

# in order to be able to compile fix_bdirectwin_typeinfo.cpp, we need a c++-compiler,
# so we declare that we need it:
EXTRA_PASSES += cc1plus$(exeext)

EXTRA_PARTS += fix_bdirectwin_typeinfo.o
# The purpose of this rule is to generate fix_bdirectwin_typeinfo.o.
# This object-file is required to fix a problem with the BDirectWindow-typeinfo
# function as provided by the Be-libs (which crashes GLTeapot). 
#
fix_bdirectwin_typeinfo.o: $(srcdir)/beos-specific/fix_bdirectwin_typeinfo.cpp
	$(GCC_FOR_TARGET) -c -O0 $(srcdir)/beos-specific/fix_bdirectwin_typeinfo.cpp
