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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1571 - (download) (annotate)
Fri Oct 28 21:42:55 2011 UTC (9 years ago) by jhr
File size: 937 byte(s)
  Working on scripting for benchmarks
# build-rules.gmk
#
# COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu)
# All rights reserved.
#
# @configure_input@
#
# standard definitions and rules for compiling benchmark programs
#

SHELL =		@SHELL@
@SET_MAKE@

#
# tools and flags
#
CC =		@CC@
INCLUDES =	-I@TEEM_DIR@/include
CPPFLAGS =	@CPPFLAGS@ $(INCLUDES)
CFLAGS =	@CFLAGS@ @CFLAG_M64@
LDPATHS =	-L@TEEM_DIR@/lib @LDPATHS@
LIBS =		-lteem -lpng -lz @LIBM@
LDFLAGS =	$(LDPATHS) $(LIBS)
ifeq ($(OS),Linux)
  LDFLAGS +=	-Wl,-rpath=@TEEM_DIR@/lib
endif

DIDEROTC =      @DIDEROTC@
DIDEROTC_FLAGS =

TARGETS =       bmark-seq bmark-par bmark-teem

.PHONY:         all
all:            $(TARGETS)

bmark-seq:  bmark-diderot.diderot
	$(DIDEROTC) -o $@ --target=c $(DIDEROTC_FLAGS) $<

bmark-par:  bmark-diderot.diderot
	$(DIDEROTC) -o $@ --target=pthread $(DIDEROTC_FLAGS) $<

bmark-teem:     bmark-teem.c
	$(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $< $(LDFLAGS)

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