#---------------------------------------------------------------------- # # Makefile : nbody # Version : # Author : # Created : 8/4 - 2002 # #---------------------------------------------------------------------- # Creator: makemake 2.1 # Rev: 1996/01/11 by Jens H. Walther #---------------------------------------------------------------------- SHELL = /bin/sh TARGET = nbody BIN = nbody #---------------------------------------------------------------------- # Compiler settings (Linux) #---------------------------------------------------------------------- F77 = ifort CC = cc FFLAGS = -O3 -FR CFLAGS = -O LD = $(F77) LDFLAGS = CPP = cpp # point vortex DEFINE = -D__Linux # vortex blob DEFINE = -D__Linux DEFINE = -D__Linux -D__BLOB -D__SECOND_ORDER DEFINE = -D__Linux -D__BLOB -D__FOURTH_ORDER LIBS = #---------------------------------------------------------------------- # Search path for RCS files #---------------------------------------------------------------------- VPATH = ./RCS #---------------------------------------------------------------------- # Additional suffix rules #---------------------------------------------------------------------- .SUFFIXES : .inc .inc,v .f,v .c,v .f,v.f : co $*.f .c,v.c : co $*.c .inc,v.inc : co $*.inc #---------------------------------------------------------------------- # Binary directory #---------------------------------------------------------------------- bindir = . #---------------------------------------------------------------------- # Default target #---------------------------------------------------------------------- all: $(TARGET) #---------------------------------------------------------------------- # Object files: #---------------------------------------------------------------------- OBJS =\ nbody.o #---------------------------------------------------------------------- # Dependencies: #---------------------------------------------------------------------- nbody.o: nbody.f $(CPP) $(DEFINE) -P nbody.f __nbody.f $(F77) $(FFLAGS) -c __nbody.f -o nbody.o #---------------------------------------------------------------------- # link #---------------------------------------------------------------------- $(TARGET): $(OBJS) $(LD) -o $(BIN) $(LDFLAGS) $(OBJS) $(LIBS) #---------------------------------------------------------------------- # Install #---------------------------------------------------------------------- install: $(BIN) (cp -f $(BIN) $(bindir)) #---------------------------------------------------------------------- # Run #---------------------------------------------------------------------- run: $(BIN) $(BIN) #---------------------------------------------------------------------- # Clean #---------------------------------------------------------------------- new: cleanall nbody cleanall: rm -f __*.f rm -f $(OBJS) rm -f *.lst rm -f *.l rm -f *.L clean: rm -f __*.f rm -f *.lst