#! makefile for various little benchmark programs
# This makefile was originally written in 1995 for the SGI Iris workstation so
# some of the 

testarena2: testarena2.c makefile
	cc -g -o testarena2 testarena2.c -lmalloc

testarena3: testarena3.c makefile cgalloc.c
	cc -g -64 -c -I$(CGS) -common -xansi -DLANGUAGE_C -Diris4D -Diris4d -Dmips4 -Dunix testarena3.c
	cc -g -64 -c -I$(CGS) -common -xansi -DLANGUAGE_C -Diris4D -Diris4d -Dmips4 -Dunix cgalloc.c
	f77 -g -o testarena3  testarena3.o cgalloc.o $(CGS)/congen.a -lmalloc

testm_fork: testm_fork.c makefile
	cc -g -c -I$(CGS) -prototypes -xansi -DLANGUAGE_C -Diris4D -Diris4d -Dunix testm_fork.c
	f77 -g -o testm_fork testm_fork.o $(CGS)/congen.a -lmalloc

test_pthread: test_pthread.c makefile
	gcc -g -o test_pthread -lpthread test_pthread.c

test_pthread_malloc: test_pthread_malloc.c makefile
	gcc -g -o test_pthread_malloc -lpthread test_pthread_malloc.c

foo: foo.f makefile
	gfortran44 -g -O0 -o foo -lpthread -fno-underscoring foo.f
