Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /benchmarks/mk/build-rules_gmk.in
ViewVC logotype

Annotation of /benchmarks/mk/build-rules_gmk.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5651 - (view) (download)

1 : jhr 1571 # build-rules.gmk
2 :     #
3 : jhr 3349 # This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
4 :     #
5 :     # COPYRIGHT (c) 2015 The University of Chicago
6 : jhr 1571 # All rights reserved.
7 :     #
8 :     # @configure_input@
9 :     #
10 :     # standard definitions and rules for compiling benchmark programs
11 :     #
12 :    
13 :     SHELL = @SHELL@
14 :     @SET_MAKE@
15 :    
16 :     #
17 :     # tools and flags
18 :     #
19 :     CC = @CC@
20 : jhr 1586 INCLUDES = -I@TEEM_DIR@/include -I@BMARKS_INCDIR@
21 : jhr 1590 CPPFLAGS = -DNDEBUG $(INCLUDES)
22 :     CFLAGS = -O3 @CFLAG_M64@
23 : jhr 1571 LDPATHS = -L@TEEM_DIR@/lib @LDPATHS@
24 :     LIBS = -lteem -lpng -lz @LIBM@
25 :     LDFLAGS = $(LDPATHS) $(LIBS)
26 : jhr 1984 ifeq (@LD_NEEDS_RPATH@,true)
27 : jhr 1571 LDFLAGS += -Wl,-rpath=@TEEM_DIR@/lib
28 :     endif
29 :    
30 : jhr 3052 DIDEROTC = @DIDEROTC@ --exec
31 : jhr 1571 DIDEROTC_FLAGS =
32 :    
33 : adrianlehm 5651 TARGETS = @TARGET_SEQ@ @TARGET_PAR@ @TARGET_CL@ @TARGET_CUDA@ @TARGET_CUDA_BATCH@ @TARGET_CUDA_BATCH_PERMUTE@ @TARGET_TEEM@
34 : jhr 1571
35 : jhr 1656 .PHONY: all
36 :     all: $(TARGETS)
37 : jhr 1571
38 : jhr 1656 bmark-seq: bmark-diderot.diderot
39 : jhr 1571 $(DIDEROTC) -o $@ --target=c $(DIDEROTC_FLAGS) $<
40 :    
41 : jhr 1656 bmark-par: bmark-diderot.diderot
42 : jhr 1571 $(DIDEROTC) -o $@ --target=pthread $(DIDEROTC_FLAGS) $<
43 :    
44 : jhr 1656 bmark-cl: bmark-diderot.diderot
45 :     $(DIDEROTC) -o $@ --target=cl $(DIDEROTC_FLAGS) $<
46 :    
47 : adrianlehm 5648 bmark-cuda: bmark-diderot.diderot
48 :     $(DIDEROTC) -o $@ --target=cuda $(DIDEROTC_FLAGS) $<
49 : jhr 3052
50 : adrianlehm 5651 bmark-cuda-batch: bmark-diderot.diderot
51 :     $(DIDEROTC) -o $@ --target=cuda --cuda-batch $(DIDEROTC_FLAGS) $<
52 :    
53 :     bmark-cuda-batch-permute: bmark-diderot.diderot
54 :     $(DIDEROTC) -o $@ --target=cuda --cuda-batch --cuda-permute $(DIDEROTC_FLAGS) $<
55 :    
56 : jhr 1656 bmark-teem: bmark-teem.c
57 : jhr 1571 $(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $< $(LDFLAGS)
58 : jhr 3052

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0