-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
69 lines (51 loc) · 1.63 KB
/
Makefile
File metadata and controls
69 lines (51 loc) · 1.63 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
default: FLEKS
-include Makefile.conf
-include Makefile.def
help:
@echo Makefile targets:
@echo
#@echo 'make FLEKS - compile standalone executable'
@echo 'make LIB - compile libPC.a for SWMF'
@echo 'make clean - remove object files'
@echo 'make distclean - remove all files not part of CVS'
@echo
include/show_git_info.h: include/show_git_info.h.orig
cp -f include/show_git_info.h.orig include/show_git_info.h
include/Constants.h: include/Constants.h.orig
cp -f include/Constants.h.orig include/Constants.h
include/UserSource.h: include/UserSource.h.orig
cp -f include/UserSource.h.orig include/UserSource.h
GITINFO: include/show_git_info.h
${SCRIPTDIR}/gitall -r=c > include/show_git_info.h
FLEKS: GITINFO compile_commands
cd src; ${MAKE} EXE
bin:
mkdir bin
install: bin include/Constants.h include/UserSource.h
LIB: include/Constants.h compile_commands
cd src; $(MAKE) LIB
cd srcInterface; $(MAKE) LIB
CONVERTER:
cd src; $(MAKE) CONVERTER
rundir:
mkdir -p ${RUNDIR}/${COMPONENT}
cd ${RUNDIR}/${COMPONENT}; \
mkdir restartIN restartOUT plots;\
ln -s ${BINDIR}/PostIDL.exe .; \
cp ${SCRIPTDIR}/pIDL .
cd ${RUNDIR}; \
(if [ -f ${BINDIR}/FLEKS.exe ]; then ln -s ${BINDIR}/FLEKS.exe .; fi)
clean:
cd src; $(MAKE) clean
cd srcInterface; $(MAKE) clean
rm -rf bin/*
distclean:
-@(./Config.pl -uninstall)
allclean:
-@(cd src; $(MAKE) distclean)
-@(cd srcInterface; $(MAKE) distclean)
-@(rm -rf *~ ./bin lib ${TESTDIR} include/Constants.h)
-@(rm -f test*.diff)
compile_commands:
-rm -f compile_commands.json
-python3 tools/generate_compile_commands.py