-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
41 lines (31 loc) · 741 Bytes
/
makefile
File metadata and controls
41 lines (31 loc) · 741 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
36
37
38
39
40
41
CC=g++
CFLAGS=-c -I. -Iutil -g
LFLAGS=-lm -lgsl -lgslcblas
PROGRAMS=\
bin2sim.out transform.out updatesim.out slice.out filter.out sort.out \
stats.out fit.out scalarmap.out map2dist.out vectormap.out derintegral.out
all:dynamo.h
make $(PROGRAMS)
%.out:dynamo.o functions.o %.o
$(CC) $^ $(LFLAGS) -o $@
%.o:%.cpp dynamo.h functions.h
$(CC) $< $(CFLAGS) -o $@
%.h:%.cpp %.hpp
./.hpp2h $(@:.h=)
cleandata:
@echo -n "Cleaning data..."
@make -C data clean
@echo "Done."
clean:
@echo -n "Cleaning..."
@rm -rf *.o *.out *~ scr/*.pyc *.log
@echo "Done."
cleanall:cleandata clean
edit:
emacs -nw *.cpp *.hpp run .hpp2h
updaterepo:
@echo -n "Updating repo..."
git commit -am "Commit..."
git push origin master
pull:
git pull