#
# Makefile_defs_freebsd
#
# Definitions which work for a FreeBSD 6.0 system
# tested at Swinburne CAIA, Melbourne, with thanks to
# Lawrence Stewart (lstewart@room52.net).
#
# The FreeBSD ports install of Tcl and Tk seems to call everything
# blahN.N where N.N is the version number. So, you run
# e.g. tclsh8.4. You will need to modify tcl/Makefile to
# call tclsh8.4 where indicated.
# Naming of libraries, e.g. -ltk84, is similar.

# Always run make ARCH=platform from the top-level savi directory.
#
# $Id: Makefile_defs_freebsd,v 1.5 2011/04/26 20:41:31 lloydwood Exp $


########################################################
#                                                      #
# Set machine type -- suffix for savi                  #
#                                                      #
########################################################
MACH = freebsd

########################################################
#                                                      #
# set CC to an ANSI C compiler                         #
#                                                      #
########################################################
CC = gcc

########################################################
#                                                      #
# set TCL_INCLUDES so that the compiler can            #
# find the tcl.h and tk.h                              #
#                                                      #
# If tcl/tk is installed in a standard place           #
# it is not necessary to set this. You may need to     #
# change the numbers to match your version of tcl/tk.  #
# The numbers in the topmost savi script should also   #
# match.                                               #
#                                                      #
########################################################
TCL_INCLUDES = -I/usr/local/include/tcl8.5 -I/usr/local/include/tk8.5 -I/usr/X11R6/include

########################################################
#                                                      #
# set TCL_LIBS so that the compiler can find           #
# libtcl.a and libtk.a. Alter to suit - see above.     #
#                                                      #
########################################################
TCL_LIBS = -ltcl84 -ltk84

########################################################
#                                                      #
# Set OTHER_LIBS so that any other stuff needing to    #
# be linked in will be!                                #
#                                                      #
########################################################
OTHER_LIBS = -L/usr/local/lib
#-ldl
# OTHER_LIBS = -static
