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 1590 - (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 :     ifeq ($(OS),Linux)
25 :     LDFLAGS += -Wl,-rpath=@TEEM_DIR@/lib
26 :     endif
27 :    
28 :     DIDEROTC = @DIDEROTC@
29 :     DIDEROTC_FLAGS =
30 :    
31 :     TARGETS = bmark-seq bmark-par bmark-teem
32 :    
33 :     .PHONY: all
34 :     all: $(TARGETS)
35 :    
36 :     bmark-seq: bmark-diderot.diderot
37 :     $(DIDEROTC) -o $@ --target=c $(DIDEROTC_FLAGS) $<
38 :    
39 :     bmark-par: bmark-diderot.diderot
40 :     $(DIDEROTC) -o $@ --target=pthread $(DIDEROTC_FLAGS) $<
41 :    
42 :     bmark-teem: bmark-teem.c
43 :     $(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $< $(LDFLAGS)

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