-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
56 lines (45 loc) · 1.28 KB
/
makefile
File metadata and controls
56 lines (45 loc) · 1.28 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
#######################################################################
# _______ ________
# /_ __(_)___/ / ____/ __
# / / / / __ / __/ | | / /
# / / / / /_/ / /___ | |/ /
# /_/ /_/\__,_/_____/ |___/
# Tidal Spin Evolution
#######################################################################
# Copyright (C) 2013
# Jorge Zuluaga (zuluagajorge@gmail.com, Mario Melita (melita@iafe.uba.ar)
# Pablo Cuartas (quarktas@gmail.com), Bayron Portilla (bayron@gmail.com)
#######################################################################
# MASTER MAKEFILE
#######################################################################
CC=g++
OPTIM=-O4
#OPTIM=-g
CFLAGS=$(OPTIM) -w -c -I. -Iutil/include $(OPTIONS)
LFLAGS=$(OPTIM) -lm util/lib/libgsl.a util/lib/libgslcblas.a util/lib/libconfig++.a
EDITOR=emacs -nw
%.out:%.o
$(CC) $^ $(LFLAGS) -o $@
%.o:%.cpp tidev.cpp
$(CC) $(CFLAGS) $< -o $@
cleanout:
rm -rf *.out *.o *.exe
cleandump:
rm -rf *.dump
compile:
make tidev-full.out
run:
./tidev-full.out
clean:cleanout
rm -rf *.log *~ *.dump
find . -name *~ -exec rm -rf {} \;
cleanall:clean cleanout cleandump
rm -rf *.dat
edit:
emacs -nw *.md TODO makefile* *.cpp *.cfg
commit:
git commit -am "Commit"
git push origin master
pull:
git reset --hard HEAD
git pull