

if {![file exists build]} {mkdir build}
cd build
if {![file exists altera]} {mkdir altera}
cd altera

if {[file exists altera]} {vdel -lib altera -all}

vlib altera
vcom -93 -work altera  ../../altera/libsrc/altera/altera_primitives_components.vhd
vcom -93 -work altera  ../../altera/libsrc/altera/altera_primitives.vhd
vcom -93 -work altera  ../../altera/libsrc/altera/altera_internal_syn.vhd
vcom -93 -work altera  ../../altera/libsrc/altera/altera_europa_support_lib.vhd
vcom -93 -work altera  ../../altera/libsrc/altera/altera_standard_functions.vhd
vcom -93 -work altera  ../../altera/libsrc/altera/altera_syn_attributes.vhd

vlib altera_mf
vcom -93 -work altera_mf  ../../altera/libsrc/altera_mf/altera_mf_components.vhd
vcom -93 -work altera_mf  ../../altera/libsrc/altera_mf/altera_mf.vhd

vlib cycloneive
vcom -93 -work cycloneive  ../../altera/libsrc/cycloneive/cycloneive_atoms.vhd
vcom -93 -work cycloneive  ../../altera/libsrc/cycloneive/cycloneive_components.vhd

vlib altera_lnsim
vcom -93 -work altera_lnsim  ../../altera/libsrc/altera_lnsim/altera_lnsim_components.vhd

vlib cyclonev
vcom -93 -work cyclonev  ../../altera/libsrc/cyclonev/cyclonev_atoms.vhd
vcom -93 -work cyclonev  ../../altera/libsrc/cyclonev/cyclonev_components.vhd

cd ..
cd ..
