#pmake: bootstrap 
#
# Create the Linux std.trp
#
host_os  = $(%BOOTSTRAP_OS)
host_cpu = $(%BOOTSTRAP_CPU)

bootstrap         = 1
substitute_linker = 1

os      = linux
srv     = lcl
which   = TRAP

extra_objs = &
        linuxacc.obj &
        linuxmap.obj &
        linuxcomm.obj &
        linuxfile.obj &
	linuxutl.obj &
        supp.obj &
        core.obj

!ifeq host_cpu 386
cpu     = x86
extra_objs += linuxx86.obj x86cpu.obj squish87.obj
!else ifeq host_cpu ppc
cpu     = ppc
extra_objs += linuxppc.obj
!else ifeq host_cpu mips
cpu     = mips
extra_objs += linuxmips.obj
!else
!error Unknown CPU architecture
!endif

extra_c_flags = -fPIC

!include $(trap_dir)/lcl/lcl.mif
!include $(trap_dir)/master.mif

$(target) : $(objs) $(extra_libs) $(resource_file) $(extra_deps) $(__MAKEFILES__) $(nversion_tmp)
        $(cl) -shared $(clflags) $(objs) $(extra_libs) $(cl_libs)
