######################################################################
# User Makefile sample for the Source Navigator / Introl Compiler Env.
#
# Copyright (C) 2000 K-TEAM S.A.
#
######################################################################

# Packages needed by the compiler (must be on the network)
# (DO NOT forget the / at the end).
exeprefix = m68k-none-elf
gccversion = 2.95.2

# Include the master makefile
# (PLEASE do not modify)
include $(sft_pack)etc/Makefile_PIC

# Libraries for linkage
# lc needed after kernel cause kernel contain malloc and free
LOADLIBES = $(SUPPLIB) -lgcc -lstdc++ -liostream -lio -lktdebug -lc -lkbus -lglue -lkernel -lc -lm -lgcc

# Assembler Options:
#   --register-prefix-optional: avoid adding a % in front of
#     register name (%a0-%a7,%d0-%d7)
#   -pic: generate position independent code
#   --bitwise-or: do not treat `|' as a comment character
ASFLAGS = --bitwise-or -pic --register-prefix-optional

# Linker Executable (gcc or g++ according to the language)
LINKER =  $(prefix)/bin/$(exeprefix)-g++

# Linker Options:
#   --embedded-relocs: Generate embedded relocs
#   --cref: Output cross reference table
LDFLAGS = --embedded-relocs

# C Compiler Options:
# other gcc options...
CFLAGS    = -Wall -O3

