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

SCM Repository

[diderot] Diff of /branches/pure-cfg/test/Makefile.in
ViewVC logotype

Diff of /branches/pure-cfg/test/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 566, Thu Feb 24 19:29:51 2011 UTC revision 671, Wed Mar 23 15:47:23 2011 UTC
# Line 1  Line 1 
1  # Makefile for Diderot test programs runtime code  # Makefile for Diderot test programs
2  #  #
3    
4  SHELL =         @SHELL@  SHELL =         @SHELL@
5  CC =            @CC@  CC =            @CC@
6    CFLAGS =        @CFLAGS@ -NDEBUG
7  DIDEROTC =      ../bin/diderotc  DIDEROTC =      ../bin/diderotc
8  DIDEROTC_FLAGS = -log  DIDEROTC_FLAGS = -log
9    UNU =           @TEEM_DIR@/bin/unu
10    
11  # command-line options for vr-MIP example  SRC_FILE =      vr-MIP-test.diderot
12  VR_OPTIONS =    -DdataFile=../data/vox1.nrrd  SRC_STEM =      $(shell basename $(SRC_FILE) .diderot)
13    IMAGE_FILE =    ../data/vox1.nrrd
14    IMAGE_STEM =    $(shell basename $(IMAGE_FILE) .nrrd)
15    
16    # command-line options for example
17    VR_OPTIONS =
18    
19  INCLUDE_PATHS = -I../src/include -I@TEEM_DIR@/include  INCLUDE_PATHS = -I../src/include -I@TEEM_DIR@/include
20  LIBS =          -lteem  LIBS =          -lteem ../src/lib/diderot-lib.o
21    
22  CPPFLAGS +=     $(INCLUDE_PATHS)  CPPFLAGS +=     $(INCLUDE_PATHS)
23  LDFLAGS =       -L@TEEM_DIR@/lib $(LIBS)  LDFLAGS =       -L@TEEM_DIR@/lib $(LIBS)
24    
25  vr-MIP:         vr-MIP.o  $(IMAGE_STEM).png:      mip.txt
26          $(CC) -o vr-MIP $(LDFLAGS)          $(UNU) reshape -i mip.txt -s 200 200 | $(UNU) 2op exists - -0 | $(UNU) quantize -b 8 -o $(IMAGE_STEM).png
27    
28    mip.txt:        $(SRC_STEM)
29            ./$(SRC_STEM)
30    
31    $(SRC_STEM):            $(SRC_STEM).o ../src/lib/diderot-lib.o
32            $(CC) -o $(SRC_STEM) $(SRC_STEM).o $(LDFLAGS)
33    
34    $(SRC_STEM).o:  $(SRC_STEM).c
35            $(CC) -c $(CFLAGS) $(CPPFLAGS) $(SRC_STEM).c
36    
37  vr-MIP.o:       vr-MIP.c  $(SRC_STEM).c:  $(SRC_STEM).diderot
38          $(CC) -c $(CFLAGS) $(CPPFLAGS) vr-MIP.c          $(DIDEROTC) $(DIDEROTC_FLAGS) $(VR_OPTIONS) $(SRC_STEM).diderot
39    
 vr-MIP.c:       vr-MIP.diderot  
         $(DIDEROTC) $(DIDEROTC_FLAGS) $(VR_OPTIONS) vr-MIP.diderot  

Legend:
Removed from v.566  
changed lines
  Added in v.671

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