##############################################################################
#                                                                            #
# Copyright (C) 1996 ACTS-MoMuSys All Rights Reserved.                       #
#                                                                            #
# See COPYRIGHT file enclosed with this distribution.                        #
#                                                                            #
##############################################################################

##############################################################################
#                                                                            #
#  CREATED BY :  Bruno LORET -- FRANCE TELECOM / CNET --  22-Feb-96          # 
#                                                                            #
##############################################################################



##############################################################################
#                  SUN SOLARIS 2.x                                           #
##############################################################################
SYSTEM_SUFFIX= _sol2


##############################################################################
# Adapt this to your own system                                              #
##############################################################################
SHELL= /bin/sh
MAKE=  make


#
# CHECK IF YOU LOCATION OF PERL in generate_doc.pl (1st line) suits you
#

##############################################################################
# It's probably better to put the exact locations by hand (quicker and safer)#
##############################################################################
CC=  	$(shell which gcc)
#CC=	cc 
CC=	gcc 
#CC=	CC

TAR= 		$(shell which tar)
#TAR=		tar

COMPRESS= 	$(shell which gzip)
#COMPRESS=	gzip

# If you are not using SYSV Unix, uncomment the following line
#RANLIB= /usr/bin/ranlib

#CPROTO_BIN=  	$(shell which cproto)
CPROTO_BIN=	../cproto-3pl7/cproto-3pl7

CI=	$(shell which ci)
#CI=	/opt/free/bin/ci

#####################
# Compiling options #
#####################
ifndef  DBG
   ifndef  PROF
      # fast mode (default)
      OPTION_SUFFIX = 
#      CFLAGS=  -w -O2 -ansi
      CFLAGS=  -Wall -O2 -ansi
   else
      # profile mode
      OPTION_SUFFIX = _prof
#      CFLAGS=  -p
      CFLAGS=  -pg
#      LDFLAGS= -p
      LDFLAGS= -pg
   endif
else
   ifndef BC
      #debug mode without boundary checking
      OPTION_SUFFIX = _dbg
    #  CFLAGS=  -Wall -g -D_DEBUG_
       CFLAGS=  -Wall -g -D_DEBUG_
       LD_FLAGS=
   else
      #debug mode with boundary checking
      OPTION_SUFFIX = _dbg_bc
     # CFLAGS=  -Wall -g -fbounds-checking -D_DEBUG_
       CFLAGS=  -Wall -g -fbounds-checking -D_DEBUG_
       LD_FLAGS= -fbounds-checking
   endif
endif

