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

SCM Repository

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

View of /trunk/test/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1115 - (download) (annotate)
Thu May 5 04:42:18 2011 UTC (8 years, 1 month ago) by jhr
File size: 993 byte(s)
  More merging of pure-cfg back into trunk
# Makefile for Diderot test programs
#

SHELL =		@SHELL@
CC =		@CC@
CFLAGS =	@CFLAGS@ -NDEBUG
DIDEROTC =	../bin/diderotc
DIDEROTC_FLAGS = -log
UNU =		@TEEM_DIR@/bin/unu

SRC_FILE =	vr-MIP-test.diderot
SRC_STEM =	$(shell basename $(SRC_FILE) .diderot)
IMAGE_FILE =	../data/vox1.nrrd
IMAGE_STEM =	$(shell basename $(IMAGE_FILE) .nrrd)

# command-line options for example
VR_OPTIONS =

INCLUDE_PATHS =	-I../src/include -I@TEEM_DIR@/include
LIBS =		-lteem ../src/lib/diderot-lib.o

CPPFLAGS +=	$(INCLUDE_PATHS)
LDFLAGS =	-L@TEEM_DIR@/lib $(LIBS)

$(IMAGE_STEM).png:	mip.txt
	$(UNU) reshape -i mip.txt -s 200 200 | $(UNU) 2op exists - -0 | $(UNU) quantize -b 8 -o $(IMAGE_STEM).png

mip.txt:	$(SRC_STEM)
	./$(SRC_STEM)

$(SRC_STEM):		$(SRC_STEM).o ../src/lib/diderot-lib.o
	$(CC) -o $(SRC_STEM) $(SRC_STEM).o $(LDFLAGS)

$(SRC_STEM).o:	$(SRC_STEM).c
	$(CC) -c $(CFLAGS) $(CPPFLAGS) $(SRC_STEM).c

$(SRC_STEM).c:	$(SRC_STEM).diderot
	$(DIDEROTC) $(DIDEROTC_FLAGS) $(VR_OPTIONS) $(SRC_STEM).diderot


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