00001 TEMP= utilf.o readprintpar.o save.o printxplot.o global.o
00002 OBJECTS= $(TEMP) mymalloc.o markers.o interpolation.o mg.o extra.o plgndr.o
00003 BCOBJECTS = make_bc_periodic.o xfig.o make_bc_wall.o time_step.o stresses.o momentum.o printfree.o advect.o surfaces.o polynomial.o tension.o
00004
00005 # -DDEBUG_MASS: control the coherence between the mass computed using cc
00006 # and the mass computed using the area
00007 # -DNOREDIS: no redistribution
00008 # -DTRUE_AFROMC: uses the exact densities on the velocity cells instead
00009 # of an average of cc
00010 # -DSONO: sonoluminescence conditions for the pressure
00011
00012 CFLAGS= -Wall -O2 -DMARKERS -DAXI -DFREE -DMG -DSONO -I. -I. -Iparlib/include
00013 LIB= -lm ./parlib/parlib.a
00014 BINDIR= $(HOME)/bin
00015 CC= cc
00016
00017 Shear: Shear.o $(OBJECTS) $(BCOBJECTS) ini_conditions.o
00018 $(CC) $(CFLAGS) -o Shear Shear.o ini_conditions.o $(OBJECTS) $(BCOBJECTS) $(LIB)
00019 # mv Shear $(BINDIR)/Shear
00020
00021 sphery: sphery.o plgndr.o
00022 $(CC) $(CFLAGS) -o sphery sphery.o plgndr.o -lm
00023
00024 clean:
00025 - rm -f *.o Shear *~ #*# core
00026
00027 save:
00028 tar cvf silver2D.tar *.c *.h Makefile
00029 compress silver2D.tar
00030
00031 .c.o: $< global.h
00032 $(CC) -c $(CFLAGS) $<
00033