Log In | Get Help   
Home My Page Projects Code Snippets Project Openings UPC Operations Microbenchmarking Suite
Summary Activity Tracker Lists Docs News SCM Files
[uoms] Annotation of /trunk/uoms/src/Makefile
[uoms] / trunk / uoms / src / Makefile Repository:
ViewVC logotype

Annotation of /trunk/uoms/src/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (view) (download)

1 : dalvarez 1 # Makefile for the UPC Operations Microbenchmarking Suite
2 :     # 2009
3 :    
4 :     include ./config/make.def
5 :    
6 :     ifeq ($(NTHREADS),0)
7 :     THREADS = $(THREADS_SWITCH)1
8 :     else
9 :     THREADS = $(THREADS_SWITCH)$(NTHREADS)
10 :     endif
11 :    
12 :     default : usage UOMS.upc data_print.o utilities.o affinity.o mem_manager.o init.o timers.o \
13 :     timers/timers.h
14 :     mkdir -p ../bin
15 :     $(UPCC) $(UPCFLAGS) $(THREADS) UOMS.upc -c -I./timers -o UOMS.o
16 :     $(UPCLINK) $(UPCFLAGS) $(THREADS) -o ../bin/UOMS.$(NTHREADS) *.o \
17 :     timers/timers.o utils/*.o
18 :    
19 :     usage :
20 :     @ echo "Type \"make help\" for usage"
21 :     @ echo " "
22 :    
23 :     timers.o : timers/timers.c
24 :     $(CC) $(CFLAGS) timers/timers.c -c -o timers/timers.o
25 :    
26 :     affinity.o : affinity.upc
27 :     $(UPCC) $(UPCFLAGS) $(THREADS) affinity.upc -c -o affinity.o
28 :    
29 :     mem_manager.o : mem_manager.upc
30 :     $(UPCC) $(UPCFLAGS) $(THREADS) mem_manager.upc -c -o mem_manager.o
31 :    
32 :     init.o : init.upc
33 :     $(UPCC) $(UPCFLAGS) $(THREADS) init.upc -c -o init.o
34 :    
35 :     data_print.o : utils/data_print.upc
36 :     $(UPCC) $(UPCFLAGS) $(THREADS) -I./ utils/data_print.upc -c -o utils/data_print.o
37 :    
38 :     utilities.o : utils/utilities.upc
39 :     $(UPCC) $(UPCFLAGS) $(THREADS) utils/utilities.upc -c -o utils/utilities.o
40 :    
41 :     help :
42 :     @ echo "Usage: "
43 :     @ echo "make NTHREADS=NUMBER_OF_UPC_THREADS"
44 :     @ echo " "
45 :     @ echo "E.g., for 128 threads:"
46 :     @ echo "make NTHREADS=128"
47 :     @ echo " "
48 :    
49 :     clean :
50 :     rm -f *.o
51 :     rm -f timers/*.o
52 :     rm -f utils/*.o
53 :    
54 :     mrproper : clean
55 :     rm -Rf *pthread-link*
56 :     find ../ -name '*~' | xargs rm -Rf
57 :     rm -Rf ../bin/*
58 : dalvarez 3 rm -Rf config/make.def

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge