-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
34 lines (31 loc) · 1.02 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
# Master makefile for pyavl. The actual makefile you want is:
# src/build/Makefile
# src_cs/build/Makefile
default:
# Check if the config.mk file is in the config dir.
@if [ ! -f "config/config.mk" ]; then \
echo "WARNING: this method of compiling is deprecated use meson insted!"; \
echo "Before compiling, copy an existing config file from the "; \
echo "config/defaults/ directory to the config/ directory and "; \
echo "rename to config.mk. For example:"; \
echo " ";\
echo " cp config/defaults/config.LINUX_GFORTRAN.mk config/config.mk"; \
echo " ";\
echo "The modify this config file as required. With the config file"; \
echo " specified, rerun 'make' and the build will start"; \
else make pyavl_build;\
fi;
clean:
rm -fr src/build/*.mod
rm -fr src/build/*.o
rm -fr src/build/*.a
rm -fr src/build/*.so
rm -fr src_cs/build/*.mod
rm -fr src_cs/build/*.o
rm -fr src_cs/build/*.a
rm -fr src_cs/build/*.so
rm -fr pyavl/*.so
rm -f *~ config.mk;
pyavl_build:
ln -sf config/config.mk config.mk;
(cd src/build/ && make)