SCM Repository
Annotation of /benchmarks/mk/build-rules_gmk.in
Parent Directory
|
Revision Log
Revision 3349 - (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 : | jhr | 3052 | TARGETS = @TARGET_SEQ@ @TARGET_PAR@ @TARGET_CL@ @TARGET_CUDA@ @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 : | jhr | 3052 | bmark-cuda: |
48 : | echo "CUDA not supported yet"; exit 1 | ||
49 : | |||
50 : | jhr | 1656 | bmark-teem: bmark-teem.c |
51 : | jhr | 1571 | $(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $< $(LDFLAGS) |
52 : | jhr | 3052 |
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |