forked from precice/fluent-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·53 lines (50 loc) · 1.15 KB
/
Makefile
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
##
## Copyright 2003-2008 ANSYS, Inc.
## All Rights Reserved
##
#----------------------------------------------------------------------#
# Makefile to call user's makfile for user defined functions.
# Do not modify this Makefile.
#
# Usage: make "FLUENT_ARCH=arch"
# were arch is ultra, hp700, irix6r8, etc.
#
# sccs id: %W% %G%
#----------------------------------------------------------------------#
SHELL= /bin/sh
FLUENT_ARCH= unknown_arch
DIR= $(FLUENT_ARCH)/[23]*
SRC= ../../src/*.[ch] ../../src/makefile
all:
for d in $(DIR); do \
( \
cd $$d; \
for f in $(SRC); do \
if [ ! -f `basename $$f` ]; then \
echo "# linking to" $$f "in" $$d; \
ln -s $$f .; \
fi; \
done; \
echo ""; \
echo "# building library in" $$d; \
if [ "$(USE_GCC64)" = "1" ]; then \
echo "# using gcc64"; \
make ARCHC=gcc64 -k>makelog 2>&1; \
else \
if [ "$(USE_GCC)" = "1" ]; then \
echo "# using gcc"; \
make ARCHC=gcc -k>makelog 2>&1; \
else \
make -k>makelog 2>&1; \
fi; \
fi;\
cat makelog; \
) \
done
clean:
for d in $(DIR); do \
( \
cd $$d; \
make clean; \
) \
done