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


1.9
date	2005.01.14.20.17.52;	author yanshi;	state Exp;
branches;
next	1.8;

1.8
date	2004.06.08.17.02.02;	author gzheng;	state Exp;
branches;
next	1.7;

1.7
date	2004.05.20.20.02.57;	author gzheng;	state Exp;
branches;
next	1.6;

1.6
date	2004.05.20.19.38.26;	author gzheng;	state Exp;
branches;
next	1.5;

1.5
date	2004.05.06.20.09.01;	author yanshi;	state Exp;
branches;
next	1.4;

1.4
date	2004.04.21.18.36.05;	author yanshi;	state Exp;
branches;
next	1.3;

1.3
date	2004.02.20.15.58.12;	author gzheng;	state Exp;
branches;
next	1.2;

1.2
date	2003.09.17.21.08.07;	author skumar2;	state Exp;
branches;
next	1.1;

1.1
date	2003.06.27.21.19.22;	author yanshi;	state Exp;
branches;
next	;


desc
@@


1.9
log
@Added interface for real fft computation.
@
text
@FFTW_HOME=$(HOME)/fftw
CHARMC=$(CDIR)/bin/charmc $(OPTS) $(FLAGS)

CDIR=../../../..
LIBDIR=$(CDIR)/lib
FFTW_LIBDIR=$(FFTW_HOME)/lib

OPTS=-g

INCLUDE=-I$(FFTW_HOME)/include
COMPILER=$(CHARMC) $(INCLUDE)

LIB=libmodulefftlib.a
LIBDEST=$(CDIR)/lib/$(LIB)
LIBOBJ=fftlib-normal.o rfftlib-normal.o fftlib-sparse.o translines.o
INCDIR=$(CDIR)/include/fftlib
HEADERS= $(INCDIR)/fftlib.h\
	 $(INCDIR)/fftlib.decl.h\
	 $(INCDIR)/fftlib.def.h

all: $(LIBDEST) $(HEADERS)

$(HEADERS): fftlib.h fftlib.decl.h
	test ! -d $(INCDIR) && mkdir $(INCDIR) || true
	/bin/cp fftlib.h $(INCDIR)
	/bin/cp fftlib.decl.h $(INCDIR)
	/bin/cp fftlib.def.h $(INCDIR)

$(LIBDEST): $(LIBOBJ)
	$(CHARMC) -o $(LIBDEST) $(LIBOBJ)
	/bin/cp libmodulefftlib.dep $(LIBDIR)


fftlib-normal.o: fftlib-normal.C fftlib.h fftlib.decl.h
	$(COMPILER) fftlib-normal.C

rfftlib-normal.o: rfftlib-normal.C fftlib.h fftlib.decl.h
	$(COMPILER) rfftlib-normal.C

fftlib-sparse.o: fftlib-sparse.C fftlib.h fftlib.decl.h
	$(COMPILER) fftlib-sparse.C

translines.o: translines.C fftlib.decl.h
	$(COMPILER) translines.C

fftlib.def.h: fftlib.decl.h

fftlib.decl.h: fftlib.ci
	$(CHARMC) fftlib.ci

clean:
	rm -f core 
	rm -f $(LIB) $(LIBOBJ)
	rm -f *.decl.h *.def.h util.o
@


1.8
log
@default fftw_home not to be yan's home directory
@
text
@d15 1
a15 1
LIBOBJ=fftlib-normal.o fftlib-sparse.o translines.o
d37 3
@


1.7
log
@converted fftlib to a module. and added libmodulefftlib.dep to include fftw
@
text
@d1 1
a1 1
FFTW_HOME=/home/net/yanshi/fftw
@


1.6
log
@fixed compilation due to the removal of fftutil.h.
@
text
@d13 1
a13 1
LIB=libfftlib.a
d31 1
@


1.5
log
@Change of filename from util.h to fftutil.h to avoid confusion.
@
text
@d19 1
a19 2
	 $(INCDIR)/fftlib.def.h\
	 $(INCDIR)/fftutil.h
d23 1
a23 1
$(HEADERS): fftlib.h fftlib.decl.h fftutil.h
a27 1
	/bin/cp fftutil.h $(INCDIR)
@


1.4
log
@Added file for line fft.
@
text
@d20 1
a20 1
	 $(INCDIR)/util.h
d24 1
a24 1
$(HEADERS): fftlib.h fftlib.decl.h util.h
d29 1
a29 1
	/bin/cp util.h $(INCDIR)
@


1.3
log
@copy header files to charm/include/fftlib.
Changed several other things to use standard charmc.
@
text
@d1 1
a1 1
FFTW_HOME=/home/net/yanshi/work/cpaimd/fftw
d15 1
a15 1
LIBOBJ=fftlib-normal.o fftlib-sparse.o
d40 3
@


1.2
log
@commiting makefile which makes the makefile portable everywhere
@
text
@a8 1
FLAGS=-Wno-deprecated
d16 5
a20 4
HEADERS= $(CDIR)/include/fftlib.h\
	 $(CDIR)/include/fftlib.decl.h\
	 $(CDIR)/include/fftlib.def.h\
	 $(CDIR)/include/util.h\
d24 6
a29 5
$(HEADERS): fftlib.h fftlib.decl.h
	/bin/cp fftlib.h $(CDIR)/include
	/bin/cp fftlib.decl.h $(CDIR)/include
	/bin/cp fftlib.def.h $(CDIR)/include
	/bin/cp util.h $(CDIR)/include
d32 1
a32 1
	rm -f $(LIB); ar -qc $(LIBDEST) $(LIBOBJ)
d40 2
@


1.1
log
@
Parallel 3D-FFT library code.
@
text
@d41 1
a41 1
	$(CHARMC) $<
@

