#
# Asterisk -- A telephony toolkit for Linux.
#
# Top level Makefile
#
# Copyright (C) 1999, Mark Spencer
#
# Mark Spencer <[email protected]>
#
# This program is free software, distributed under the terms of
# the GNU General Public License
#
.EXPORT_ALL_VARIABLES:
# Create OPTIONS variable
OPTIONS=
OSARCH=$(shell uname -s)
ifeq (${OSARCH},Linux)
PROC=$(shell uname -m)
ifeq ($(PROC),x86_64)
# You must have GCC 3.4 to use k8, otherwise use athlon
#PROC=k8
#PROC=athlon
OPTIONS+=-m64
endif
endif
ifeq ($(findstring BSD,${OSARCH}),BSD)
PROC=$(shell uname -m)
endif
# Pentium Pro Optimize
#PROC=i686
# Pentium & VIA processors optimize
PROC=i586
#PROC=k6
#PROC=ppc
PWD=$(shell pwd)
######### More GSM codec optimization
######### Uncomment to enable MMXTM optimizations for x86 architecture CPU's
######### which support MMX instructions. This should be newer pentiums,
######### ppro's, etc, as well as the AMD K6 and K7.
#K6OPT = -DK6OPT
#Tell gcc to optimize the asterisk's code
OPTIMIZE=-O6
#Include debug symbols in the executables (-g) and profiling info (-pg)
DEBUG=-g #-pg