Makefile 740 Bytes
Newer Older
Francois Tessier's avatar
Francois Tessier committed
1
MPICC       = mpicxx
2
MPI_CFLAGS  = -g -O3 -I/bgsys/drivers/ppcfloor -I/bgsys/drivers/ppcfloor/spi/include/kernel/cnk -I${HOME}/install_bgq/include/ -DBGQ
Francois Tessier's avatar
Francois Tessier committed
3 4
MPI_LDFLAGS = -lstdc++ -lpthread -lm -L${HOME}/install_bgq/lib/ -ltapioca

5
all: miniHACC-AoS miniHACC-SoA miniHACC-AoS-MPIIO miniHACC-SoA-MPIIO
Francois Tessier's avatar
Francois Tessier committed
6

7 8
miniHACC-AoS:miniHACC-AoS.cpp
	$(MPICC) $(MPI_CFLAGS) $? -o $@ $(MPI_LDFLAGS)
Francois Tessier's avatar
Francois Tessier committed
9

10 11
miniHACC-SoA:miniHACC-SoA.cpp
	$(MPICC) $(MPI_CFLAGS) $? -o $@ $(MPI_LDFLAGS)
Francois Tessier's avatar
Francois Tessier committed
12

13 14 15
### MPI I/O
miniHACC-AoS-MPIIO:miniHACC-AoS-MPIIO.cpp
	$(MPICC) $(MPI_CFLAGS) $? -o $@ $(MPI_LDFLAGS)
Francois Tessier's avatar
Francois Tessier committed
16

17 18
miniHACC-SoA-MPIIO:miniHACC-SoA-MPIIO.cpp
	$(MPICC) $(MPI_CFLAGS) $? -o $@ $(MPI_LDFLAGS)
Francois Tessier's avatar
Francois Tessier committed
19 20

clean:
21
	rm miniHACC-AoS miniHACC-SoA miniHACC-AoS-MPIIO miniHACC-SoA-MPIIO *.o HACC.dat
Francois Tessier's avatar
Francois Tessier committed
22