
CC=mpiCC
CCFLAGS=-O2

.PHONY: all clean distclean

all: mpilauncher mpilauncher.1

clean:
	rm -f *.o

distclean: clean
	rm -f mpilauncher


mpilauncher: mpilauncher.o
	$(CC) $(CCFLAGS) -o $@ $<

%.o: %.cpp
	$(CC) $(CCFLAGS) -c $<

%.1: %.cpp
	grep '^.\*' $< | sed -e 's/^..//; s/^.//' | pod2man > $@

# astyle --style=banner -s3 mpilauncher.cpp
