Skip to content

Commit

Permalink
Set up examples/ Makefile dependences correctly
Browse files Browse the repository at this point in the history
Pluto generated sources should depend on original source.

Signed-off-by: Uday Reddy <udayreddy@gmail.com>
  • Loading branch information
bondhugula committed Sep 2, 2011
1 parent b70df29 commit bfcc01a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ MKL=/opt/intel/mkl
ACML=/usr/local/acml

ifeq ($(CC), icc)
OPT_FLAGS=-O3 -I/usr/include -fp-model precise
OPT_FLAGS=-O3 -fp-model precise
PAR_FLAGS := -parallel
OMP_FLAGS := -openmp
else
Expand All @@ -37,13 +37,13 @@ PLC=../../polycc

all: orig tiled par

$(SRC).opt.c:
$(SRC).opt.c: $(SRC).c
$(PLC) $(SRC).c $(PLCFLAGS) -o $@

$(SRC).tiled.c:
$(SRC).tiled.c: $(SRC).c
$(PLC) $(SRC).c --tile $(TILEFLAGS) $(PLCFLAGS) -o $@

$(SRC).par.c:
$(SRC).par.c: $(SRC).c
$(PLC) $(SRC).c --tile --parallel $(TILEFLAGS) $(PLCFLAGS) -o $@

orig: $(SRC).c decls.h util.h
Expand Down

0 comments on commit bfcc01a

Please sign in to comment.