aboutsummaryrefslogtreecommitdiffstats
path: root/astro/cosmo_calc/Makefile
blob: abd12bb4a1bcaa4ad27d8906cdd89a9aed31fe9f (plain)
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
##
## Makefile for `calc_distance'
##
## Junhua Gu
## last modified: August 12, 2012
##

CPP= 		g++
CPPFLAGS= 	-Wall -g

TARGET= 	cosmo_calc

all: $(TARGET)

cosmo_calc: calc_distance.o ddivid.o main.o
	$(CPP) $(CPPFLAGS) $^ -o $@

calc_distance.o: calc_distance.cc calc_distance.h
	$(CPP) $(CPPFLAGS) -c $<

ddivid.o: ddivid.cc ddivid.h
	$(CPP) $(CPPFLAGS) -c $<

main.o: main.cc ddivid.h calc_distance.h
	$(CPP) $(CPPFLAGS) -c $<

clean:
	rm -f *.o
	rm -f $(TARGET)