SCM Repository
Annotation of /benchmarks/mk/build-rules_gmk.in
Parent Directory
|
Revision Log
Revision 1984 - (view) (download)
1 : | jhr | 1571 | # build-rules.gmk |
2 : | # | ||
3 : | # COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu) | ||
4 : | # All rights reserved. | ||
5 : | # | ||
6 : | # @configure_input@ | ||
7 : | # | ||
8 : | # standard definitions and rules for compiling benchmark programs | ||
9 : | # | ||
10 : | |||
11 : | SHELL = @SHELL@ | ||
12 : | @SET_MAKE@ | ||
13 : | |||
14 : | # | ||
15 : | # tools and flags | ||
16 : | # | ||
17 : | CC = @CC@ | ||
18 : | jhr | 1586 | INCLUDES = -I@TEEM_DIR@/include -I@BMARKS_INCDIR@ |
19 : | jhr | 1590 | CPPFLAGS = -DNDEBUG $(INCLUDES) |
20 : | CFLAGS = -O3 @CFLAG_M64@ | ||
21 : | jhr | 1571 | LDPATHS = -L@TEEM_DIR@/lib @LDPATHS@ |
22 : | LIBS = -lteem -lpng -lz @LIBM@ | ||
23 : | LDFLAGS = $(LDPATHS) $(LIBS) | ||
24 : | jhr | 1984 | ifeq (@LD_NEEDS_RPATH@,true) |
25 : | jhr | 1571 | LDFLAGS += -Wl,-rpath=@TEEM_DIR@/lib |
26 : | endif | ||
27 : | |||
28 : | jhr | 1656 | DIDEROTC = @DIDEROTC@ |
29 : | jhr | 1571 | DIDEROTC_FLAGS = |
30 : | |||
31 : | jhr | 1656 | TARGETS = bmark-seq bmark-par bmark-cl bmark-teem |
32 : | jhr | 1571 | |
33 : | jhr | 1656 | .PHONY: all |
34 : | all: $(TARGETS) | ||
35 : | jhr | 1571 | |
36 : | jhr | 1656 | bmark-seq: bmark-diderot.diderot |
37 : | jhr | 1571 | $(DIDEROTC) -o $@ --target=c $(DIDEROTC_FLAGS) $< |
38 : | |||
39 : | jhr | 1656 | bmark-par: bmark-diderot.diderot |
40 : | jhr | 1571 | $(DIDEROTC) -o $@ --target=pthread $(DIDEROTC_FLAGS) $< |
41 : | |||
42 : | jhr | 1656 | bmark-cl: bmark-diderot.diderot |
43 : | $(DIDEROTC) -o $@ --target=cl $(DIDEROTC_FLAGS) $< | ||
44 : | |||
45 : | bmark-teem: bmark-teem.c | ||
46 : | jhr | 1571 | $(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $< $(LDFLAGS) |
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |