ifndef QCONFIG
QCONFIG=qconfig.mk
endif
include $(QCONFIG)

define PINFO
PINFO DESCRIPTION=startup library
endef

ASMOFF_FORMAT_x86=cpp

#===== NAME - name of the project (default - name of project directory).
NAME=startup

DEFFILE=asmoff.def

#===== INSTALLDIR - Subdirectory where the executable or library is to be installed. 
INSTALLDIR=usr/lib

MDRIVER_SRCPATH=$(MDRIVER_ROOT)/$(CPU) $(MDRIVER_ROOT)


#===== EXTRA_SRCVPATH - a space-separated list of directories to search for source files.
EXTRA_SRCVPATH+=$(if $(wildcard $(MDRIVER_ROOT)/mdriver.c),$(MDRIVER_SRCPATH))

ifndef MDRIVER_ROOT
MDRIVER_ROOT=$(PRODUCT_ROOT)/mdriver
endif

#===== GCC_VERSION - use it when you want to specify compiler version other than default.
GCC_VERSION=3.3.5

#===== USEFILE - the file containing the usage message for the application. 
USEFILE=

#===== DEFCOMPILER_TYPE - default compiler.
DEFCOMPILER_TYPE=gcc
include $(MKFILES_ROOT)/qmacros.mk
include $(QNX_INTERNAL)
include $(MKFILES_ROOT)/qtargets.mk

asmoff.def: $(PROJECT_ROOT)/asmoff.h $(CPU_ROOT)/asmoff.c

CCVFLAG_64=-D_PADDR_BITS=64

#===== CCFLAGS - add the flags to the C compiler command line. 
CCFLAGS=-DENABLE_DEPRECATED_SYSPAGE_SECTIONS  \
	$(CCFLAGS_$(COMPILER_TYPE)_$(COMPILER_DRIVER))
CCFLAGS_gcc+=-O2 -fomit-frame-pointer

#
# Allow us to generate the deprecated sections
#

#
# This particular little kludge is to stop GCC from using F.P. instructions
# to move 8 byte quantities around. 
#
CC_nto_ppc_gcc+=-msoft-float
CC_nto_ppc_gcc_qcc+=-Wc,-msoft-float

callout_interrupt_mips_smp.o: callout_interrupt_mips_smp.S callout_interrupt_mips.S

