head	1.4;
access;
symbols
	PSI:1.3;
locks
	bert:1.4; strict;
comment	@# @;


1.4
date	97.06.09.17.47.10;	author bert;	state Exp;
branches;
next	1.3;

1.3
date	96.04.11.03.03.58;	author bert;	state Exp;
branches;
next	1.2;

1.2
date	95.06.20.17.02.31;	author bert;	state Exp;
branches;
next	1.1;

1.1
date	94.11.14.01.48.17;	author bert;	state Exp;
branches;
next	;


desc
@@


1.4
log
@added support for EXTRA_OBJS
@
text
@# $Source: /mit/bert/Thesis/src/exact/RCS/Makefile,v $
#

CC=/mit/gnu/bin/gcc
# CC=/mit/cygnus/sun4bin/gcc
# CC=/afs/sipb/project/gnu/bin/gcc

PURIFY=purify

# DEBUG= -g -DDEBUG -DDO_TRACK_SYNC
# DEBUG= -g -pg -DDEBUG
# DEBUG= -O3 -ffast-math -pg -DDEBUG -msupersparc
DEBUG= -g -DDEBUG

# DEFS=  -DSHORT
# DEFS=  -DLONG

CFLAGS= -Wall $(DEFS) $(DEBUG)
LDFLAGS=-lm $(DEBUG)

# EXTRA_OBJS=strerror.o


TGRIND=tgrind
XDVI=xdvi
DVIPS=dvips
# PRINTOPTS= -hduplex
PRINTOPTS= -o'!lpr -h'

srcdir= /mit/bert/Thesis/src/exact
blddir= /mit/bert/Thesis/arch/@@sys/exact

TARGETS= return
XTARGETS= twodim
2D_OBJS= twodim.o drfft.o complex.o oppack.o util.o matherr.o expect.o \
  propagate.o $(EXTRA_OBJS)
RTN_OBJS= return.o drfft.o complex.o oppack.o util.o matherr.o expect.o \
  propagate.o $(EXTRA_OBJS)
DVIFILES= twodim.c.dvi dfft.c.dvi drfft.c.dvi complex.c.dvi oppack.c.dvi \
  matherr.c.dvi complex.h.dvi fft.h.dvi oppack.h.dvi util.h.dvi util.c.dvi \
  expect.h.dvi expect.c.dvi propagate.h.dvi propagate.c.dvi return.c.dvi

.PHONY:	default all clean prev print sync

default: $(TARGETS)

all: default $(XTARGETS)

twodim: $(2D_OBJS)
	$(CC) $^ $(LDFLAGS) -o $@@

return: $(RTN_OBJS)
	$(CC) $^ $(LDFLAGS) -o $@@

return.pure: $(RTN_OBJS)
	$(PURIFY) $(CC) $^ $(LDFLAGS) -o $@@

clean:
	$(RM) $(XTARGETS) $(TARGETS) *.o *.log *.dvi *.c.tex *.h.tex *~ .*~

%.c.tex: %.c
	$(TGRIND) -lc -f $^ > $@@
%.h.tex: %.h
	$(TGRIND) -lc -f $^ > $@@
.PRECIOUS: %.c.tex %.h.tex

prev: $(DVIFILES)
	for i in $(DVIFILES); do $(XDVI) -s 8 $$i& done
print: $(DVIFILES)
	for i in $(DVIFILES); do $(DVIPS) $(PRINTOPTS) $$i; done

sync: $(blddir)
	/usr/athena/etc/synctree -s $(srcdir) -d $(blddir)
@


1.3
log
@added `return' dependency stuff
synctree'ing
lot of other small changes
@
text
@d1 1
a1 1
# $Source: /afs/athena.mit.edu/user/b/e/bert/Thesis/exact/RCS/Makefile,v $
d15 2
a16 2
% DEFS=  -DSHORT
% DEFS=  -DLONG
d21 2
d36 1
a36 1
  propagate.o
d38 1
a38 1
  propagate.o
@


1.2
log
@all kinds of changes
@
text
@d8 6
a13 1
DEBUG= -g -DDEBUG -DPFORM
d28 2
a29 4
TARGETS= twodim
OBJECTS= twodim.o dfft.o complex.o oppack.o util.o matherr.o
DVIFILES= twodim.c.dvi dfft.c.dvi complex.c.dvi oppack.c.dvi util.c.dvi \
  matherr.c.dvi complex.h.dvi fft.h.dvi oppack.h.dvi util.h.dvi
d31 9
a39 1
XTARGETS= onedim
d41 1
a41 1
.PHONY:	default all clean prev print
d47 4
a50 1
twodim: $(OBJECTS)
d53 3
d57 1
a57 1
	$(RM) $(XTARGETS) $(TARGETS) *.o *.log *.dvi *.c.tex *.h.tex *~
d69 3
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $Source$
d8 1
a8 1
DEBUG= -g
d16 7
d24 4
d30 2
d36 1
a36 1
twodim: twodim.o dfft.o complex.o oppack.o util.o
d40 12
a51 1
	$(RM) $(XTARGETS) $(TARGETS) *.o *~
@
