head	1.8;
access;
symbols
	charm6_1:1.8
	charm_6_0_1:1.8
	charm6_0_1:1.8
	charm6_0:1.6
	ChaNGa_1-0:1.6;
locks; strict;
comment	@# @;


1.8
date	2008.04.17.03.40.07;	author idooley2;	state Exp;
branches;
next	1.7;
commitid	V81T5JQTx5cIEpZs;

1.7
date	2008.04.17.03.04.39;	author idooley2;	state Exp;
branches;
next	1.6;
commitid	Vcog0v8LPNNyspZs;

1.6
date	2005.12.06.15.46.34;	author idooley2;	state Exp;
branches;
next	1.5;

1.5
date	2005.12.04.03.04.35;	author idooley2;	state Exp;
branches;
next	1.4;

1.4
date	2005.11.17.19.40.30;	author idooley2;	state Exp;
branches;
next	1.3;

1.3
date	2005.11.13.05.29.52;	author idooley2;	state Exp;
branches;
next	1.2;

1.2
date	2005.11.05.20.09.05;	author idooley2;	state Exp;
branches;
next	1.1;

1.1
date	2005.08.05.21.44.07;	author wilmarth;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Now it builds against ubuntu vtk and tk packages.
@
text
@# Makefile for		: NetFEM tcl/tk
# Module Author		: Orion Lawlor
# Makefile Date		: 11/2003
# Updated from VTK 3.2 to 4.2.2 5 Aug 2005 by TLW

XHOME=/usr/X11R6
CHARMDIR=../../..
CHARMINC=-I$(CHARMDIR)/include
CHARMLIB=-L$(CHARMDIR)/lib -lconv-util
TKVER=8.4

#TKLIB= -L/usr/lib/tk$(TKVER) -ltk$(TKVER) -ltcl$(TKVER)
TKLIB= -L/usr/lib -ltk$(TKVER) -ltcl$(TKVER)
TKINC= -I/usr/include/tcl$(TKVER)
VTK_LIB=/usr/local/lib
#VTK_INC=-I/usr/local/include/vtk-5.1 -I/expand8/home/idooley2/src/VTK-CVS/Rendering #currently vtk install is missing some headers.
VTKINC= -I/usr/include/vtk-5.0 -DUSE_X=0

VTKLIB= -L$(VTK_LIB) -lvtkFiltering -lvtkFilteringTCL -lvtkGraphicsTCL \
	-lvtkGraphics -lvtkImagingTCL -lvtkImaging -lvtkCommonTCL -lvtkCommon \
	-lvtkftgl -lvtkRendering \
	-lvtkRenderingTCL -lvtkIO -lvtkIOTCL \
	-lpthread -lvtksys -lvtkDICOMParser
GLLIB=-lGL
XLIB= -L$(XHOME)/lib -lX11 -lXt

SYSLIB= -ldl -lm
LIBS= $(VTKLIB) $(TKLIB) $(GLLIB) $(XLIB) $(CHARMLIB) $(SYSLIB)

LFLAGS=
CCC = g++
CFLAGS = -I$(XHOME)/include $(VTKINC) $(CHARMINC) -I. $(OPTS) -g $(TKINC)
CCCFLAGS = $(CFLAGS) -Wno-deprecated -g

HEADERS=mytk.h main.h
OBJS = tkAppInit.o tkApp.o netfem_data.o chunk.o ccs-client.o ckstandalone.o
DEST=netfem

# this nasty hack is to make sure the linked files exist before attempting to
# satisfy DEST's dependencies
all: 
	rm -f ccs-client.c ckstandalone.cpp
	ln -s $(CHARMDIR)/include/ccs-client.c ccs-client.c
	ln -s $(CHARMDIR)/tmp/ckstandalone.C ckstandalone.cpp
	make $(DEST)

$(DEST): $(OBJS)
	$(CCC) $(CCCFLAGS) $(LFLAGS) $(OBJS) $(LIBS) -o $(DEST)
	cp $(DEST) ../bin

clean:
	rm -f escape tk_init.h $(DEST) *.o *~ ccs-client.c  ckstandalone.cpp 

tkAppInit.o: tk_init.h

tk_init.h: tk_init.tcl escape
	echo '/*Automatically generated from tk_init.tcl:*/' > tk_init.h
	cat tk_init.tcl | ./escape >> tk_init.h

escape: escape.c
	$(CC) escape.c -o escape

.cpp.o: $(HEADERS)
	$(CCC) $(CCCFLAGS) -c $<

.c.o: $(HEADERS)
	$(CC) $(CCCFLAGS) -c $<

@


1.7
log
@Added an include for the tcl/tk headers
@
text
@d7 1
a7 1
CHARMDIR=$(HOME)/src/charm
d16 2
a17 2
VTK_INC=-I/usr/local/include/vtk-5.1 -I/expand8/home/idooley2/src/VTK-CVS/Rendering #currently vtk install is missing some headers.
VTKINC= $(VTK_INC) -DUSE_X=0
d21 3
a23 3
	-lvtkftgl -lvtkfreetype -lvtkpng -lvtktiff -lvtkRendering \
	-lvtkRenderingTCL -lvtkIO -lvtkIOTCL -lvtkzlib -lvtkjpeg -lvtkexpat \
	-lpthread -lvtksys -lvtkDICOMParser -lvtkMPEG2Encode
@


1.6
log
@Some minor changes.
@
text
@d14 1
d32 2
a33 2
CFLAGS = -I$(XHOME)/include $(VTKINC) $(CHARMINC) -I. $(OPTS) -g
CCCFLAGS = $(CFLAGS) -Wno-deprecated -Wno-long-double -g
@


1.5
log
@Added tubes&balls method for visualizing the wireframe. The GUI is not yet fully working.
@
text
@d32 1
a32 1
CCCFLAGS = $(CFLAGS) -Wno-deprecated -g
@


1.4
log
@Added back the X/TCL interactor. I had previously removed this, hopeing it was unnecessary.
@
text
@d16 1
a16 1
VTKINC= $(VTK_INC) -DUSE_X=1
d22 1
a22 1
	-lpthread
d34 1
a34 1
HEADERS=mytk.h
@


1.3
log
@Various Updates:

Changed name in title bar to NetFEM.
Checkboxes to disable the displaying of chunks.
Checkbox to disable the Scalar Bar.
@
text
@d15 2
a16 2
VTK_INC=/usr/local/include/vtk-5.1
VTKINC= -I$(VTK_INC) #-DUSE_X=0
@


1.2
log
@Isaac's latest changes. May need to modify makefile to build with your particular VTK
installation.
@
text
@d11 7
a17 4
TKLIB= -L/usr/lib/tk$(TKVER) -ltk$(TKVER) -ltcl$(TKVER)
VTK_LIB=$(HOME)/local/lib/vtk
VTK_INC=$(HOME)/local/include/vtk
VTKINC= -I$(VTK_INC) -DUSE_X=1  -Wno-deprecated 
d31 2
a32 2
CFLAGS = -I$(XHOME)/include $(VTKINC) $(CHARMINC) -I. $(OPTS)
CCCFLAGS = $(CFLAGS) -Wno-deprecated
@


1.1
log
@Adding netfem ported to a recent VTK to charm tools.
@
text
@d7 1
a7 1
CHARMDIR=$(HOME)/charm
d11 4
a14 4
TKLIB= -L/usr/lib/tk$(TKVER) -ltk -ltcl
VTK_LIB=/usr/lib/vtk
VTK_INC=/usr/include/vtk
VTKINC= -I$(VTK_INC) #-DUSE_X=0
d29 1
a29 1
CCCFLAGS = $(CFLAGS)
d48 1
a48 1
	-rm escape tk_init.h $(DEST) *.o *~
@

