#######################################
# Makefile for gclust 
# Naoki Sato, April 2003
#######################################

#####################
## Compiler

# For GNU cc
CC = gcc

# For Solaris, Silicon Graphics or MacOS X
#CC = cc

# For Supernig
#CC = fcc 

# For Alpha
#CC = ccc

#####################
## Compiler options

# For common GCC or MacOS X
#OPTIONS = -O4 -g3 -Wall -ansi -faltivec
OPTIONS = -O4 -g3 -Wall
# For Silicon Graphics IRIX
#OPTIONS = -n32 -Ofast -g3 -mips4 -fullwarn -ansi
#OPTIONS = -64 -Ofast -mips4 -g3 -fullwarn -ansi

# For Solaris cc
#OPTIONS = -fast -xO4 

# For Supernig
#OPTIONS = -g -Kfast_GP=2 -KV9
# parallel
#OPTIONS = -g -Kfast_GP=2 -Kparallel -KV9

#####################
RM = rm -f

TARGET = tbsort2
 
all:	${TARGET}

tbsort2: tbsort2.o
	${CC} ${OPTIONS} -o tbsort2 tbsort2.o -lm

tbsort2.o: tbsort2.c	
	${CC} ${OPTIONS} -c tbsort2.c

clean:
	${RM} tbsort2 *.o

##### end of makefile for tbsort2 ####
