[uoms] View of /trunk/uoms/src/Makefile
View of /trunk/uoms/src/Makefile
Parent Directory
| Revision Log
Revision 1 -
( download)
( annotate)
Mon Apr 5 17:12:14 2010 UTC
(14 years, 3 months ago)
by dalvarez
File size: 1450 byte(s)
First release to the general public
# Makefile for the UPC Operations Microbenchmarking Suite
# 2009
include ./config/make.def
ifeq ($(NTHREADS),0)
THREADS = $(THREADS_SWITCH)1
else
THREADS = $(THREADS_SWITCH)$(NTHREADS)
endif
default : usage UOMS.upc data_print.o utilities.o affinity.o mem_manager.o init.o timers.o \
timers/timers.h
mkdir -p ../bin
$(UPCC) $(UPCFLAGS) $(THREADS) UOMS.upc -c -I./timers -o UOMS.o
$(UPCLINK) $(UPCFLAGS) $(THREADS) -o ../bin/UOMS.$(NTHREADS) *.o \
timers/timers.o utils/*.o
usage :
@ echo "Type \"make help\" for usage"
@ echo " "
timers.o : timers/timers.c
$(CC) $(CFLAGS) timers/timers.c -c -o timers/timers.o
affinity.o : affinity.upc
$(UPCC) $(UPCFLAGS) $(THREADS) affinity.upc -c -o affinity.o
mem_manager.o : mem_manager.upc
$(UPCC) $(UPCFLAGS) $(THREADS) mem_manager.upc -c -o mem_manager.o
init.o : init.upc
$(UPCC) $(UPCFLAGS) $(THREADS) init.upc -c -o init.o
data_print.o : utils/data_print.upc
$(UPCC) $(UPCFLAGS) $(THREADS) -I./ utils/data_print.upc -c -o utils/data_print.o
utilities.o : utils/utilities.upc
$(UPCC) $(UPCFLAGS) $(THREADS) utils/utilities.upc -c -o utils/utilities.o
help :
@ echo "Usage: "
@ echo "make NTHREADS=NUMBER_OF_UPC_THREADS"
@ echo " "
@ echo "E.g., for 128 threads:"
@ echo "make NTHREADS=128"
@ echo " "
clean :
rm -f *.o
rm -f timers/*.o
rm -f utils/*.o
mrproper : clean
rm -Rf *pthread-link*
find ../ -name '*~' | xargs rm -Rf
rm -Rf ../bin/*
rm -f config/make.def
|