| TARGET = fmm |
| OBJS = defs.o memory.o particle.o box.o partition_grid.o \ |
| cost_zones.o construct_grid.o interactions.o fmm.o |
| LDFLAGS += -lpthread -lm |
| MACROS = ../../../null_macros/c.m4.null.pthread |
| M4FLAGS = -s -Ulen -Uindex |
| |
| x = * |
| |
| ifdef version |
| ifeq "$(version)" "IN_PARSEC" |
| PREFIX=${PARSECDIR}/ext/splash2/apps/${TARGET}/inst/${PARSECPLAT} |
| MACROS = ../../../../null_macros/c.m4.null.pthread |
| endif |
| endif |
| |
| $(TARGET): $(OBJS) |
| $(CC) $(OBJS) $(CFLAGS) -o $(TARGET) $(LDFLAGS) |
| |
| install: |
| mkdir -p $(PREFIX)/bin |
| cp -f $(TARGET) $(PREFIX)/bin/$(TARGET) |
| cp -f run.sh $(PREFIX)/bin/run.sh |
| |
| clean: |
| rm -rf *.c *.h *.o $(TARGET) |
| |
| .SUFFIXES: |
| .SUFFIXES: .o .c .C .h .H |
| |
| .H.h: |
| $(M4) $(M4FLAGS) $(MACROS) $*.H > $*.h |
| |
| .C.c: |
| $(M4) $(M4FLAGS) $(MACROS) $*.C > $*.c |
| |
| .c.o: |
| $(CC) -c $(CFLAGS) $*.c |
| |
| .C.o: |
| $(M4) $(M4FLAGS) $(MACROS) $*.C > $*.c |
| $(CC) -c $(CFLAGS) $*.c |
| |
| defs.c: defs.h |
| box.c: box.h |
| construct_grid.c: construct_grid.h |
| cost_zones.c: cost_zones.h |
| interactions.c: interactions.h |
| memory.c: memory.h |
| particle.c: particle.h |
| partition_grid.c: partition_grid.h |
| |
| fmm.o: fmm.C defs.h memory.h particle.h box.h \ |
| partition_grid.h cost_zones.h construct_grid.h |
| interactions.o: interactions.C defs.h memory.h \ |
| particle.h box.h partition_grid.h interactions.h |
| shell.o: shell.C defs.h memory.h particle.h box.h \ |
| partition_grid.h interactions.h |
| construct_grid.o: construct_grid.C defs.h memory.h \ |
| particle.h box.h partition_grid.h construct_grid.h |
| cost_zones.o: cost_zones.C defs.h memory.h box.h \ |
| partition_grid.h cost_zones.h |
| orb.o: orb.C defs.h memory.h box.h partition_grid.h orb.h |
| partition_grid.o: partition_grid.C defs.h memory.h box.h \ |
| partition_grid.h |
| box.o: box.C defs.h memory.h particle.h box.h |
| particle.o: particle.C defs.h memory.h particle.h |
| memory.o: memory.C defs.h memory.h |
| defs.o: defs.C defs.h memory.h |
| memory.h: defs.h particle.h box.h |
| |
| |