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

SCM Repository

[diderot] Annotation of /trunk/test/Makefile.in
ViewVC logotype

Annotation of /trunk/test/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1115 - (view) (download)

1 : jhr 1115 # Makefile for Diderot test programs
2 :     #
3 :    
4 :     SHELL = @SHELL@
5 :     CC = @CC@
6 :     CFLAGS = @CFLAGS@ -NDEBUG
7 :     DIDEROTC = ../bin/diderotc
8 :     DIDEROTC_FLAGS = -log
9 :     UNU = @TEEM_DIR@/bin/unu
10 :    
11 :     SRC_FILE = vr-MIP-test.diderot
12 :     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
20 :     LIBS = -lteem ../src/lib/diderot-lib.o
21 :    
22 :     CPPFLAGS += $(INCLUDE_PATHS)
23 :     LDFLAGS = -L@TEEM_DIR@/lib $(LIBS)
24 :    
25 :     $(IMAGE_STEM).png: mip.txt
26 :     $(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 :     $(SRC_STEM).c: $(SRC_STEM).diderot
38 :     $(DIDEROTC) $(DIDEROTC_FLAGS) $(VR_OPTIONS) $(SRC_STEM).diderot
39 :    

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