-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
36 lines (27 loc) · 812 Bytes
/
makefile
File metadata and controls
36 lines (27 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
ifeq ($(VENDOR),cray)
CC=cc -dynamic
else
CC=mpic++
endif
DIRS=benchmark tests
TARGET=libadiosstman.so
SRC=AdiosStMan.cc AdiosStManColumn.cc AdiosStManScaColumn.cc AdiosStManDirColumn.cc AdiosStManIndColumn.cc
$(TARGET):$(SRC)
$(CC) $(SRC) -fPIC -std=c++11 --shared -o $(TARGET) -lcasa_tables -lcasa_casa -ladios -lz
for d in $(DIRS); do(cd $$d; rm -f $(TARGET); ln -sf ../$(TARGET) ./); done
ifdef CASA_LIB
cp $(TARGET) $(CASA_LIB)
endif
ifdef CASA_INC
cp *.h $(CASA_INC)/casacore/tables/DataMan
endif
all:$(TARGET)
for d in $(DIRS); do(cd $$d; rm -f $(TARGET); ln -sf ../$(TARGET) ./; make); done
re:cl $(TARGET)
ln:$(TARGET)
for d in $(DIRS); do(cd $$d; rm -f $(TARGET); ln -sf ../$(TARGET) ./); done
cl:
rm -f *.so
clean:
rm -rf *.so
for d in $(DIRS); do( cd $$d; make clean); done