source: trunk/oarutils/Makefile @ 41

Last change on this file since 41 was 41, checked in by g7moreau, 9 years ago
  • Reformat oar-parexec with perltidy
  • Property svn:eol-style set to native
File size: 575 bytes
Line 
1
2CC=mpiCC
3CCFLAGS=-O2
4PODFLAG=-c 'User Contributed OAR Documentation' -r 'LEGI Trokata'
5
6
7.PHONY: all clean distclean
8
9all: mpilauncher mpilauncher.1 oar-envsh.1 oar-dispatch.1 oar-parexec.1
10
11clean:
12        rm -f *.o
13
14distclean: clean
15        rm -f mpilauncher
16
17
18mpilauncher: mpilauncher.o
19        $(CC) $(CCFLAGS) -o $@ $<
20
21%.o: %.cpp
22        $(CC) $(CCFLAGS) -c $<
23
24%.1: %.cpp
25        sed -re 's#^[/ ]\* ?##; s#^// ?##' $< | pod2man -n $* $(PODFLAG) > $@
26
27%.1: %
28        pod2man -n $* $(PODFLAG) $< > $@
29
30# astyle --style=banner -s3 mpilauncher.cpp
31# perltidy -i=3 -ci=3 -icp -icb -pt=2 -bt=2 -bbt=2 -b oar-parexec
Note: See TracBrowser for help on using the repository browser.