diff options
author | Aaron LI <aaronly.me@gmail.com> | 2016-05-28 09:40:25 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@gmail.com> | 2016-05-28 09:40:25 +0800 |
commit | 34ed04686523ecdafb96c6cdff379df176cf1984 (patch) | |
tree | 6bdaa0eeb2d397fe2142e6275225a3f71dd69bcd /astro/cosmo_calc/Makefile | |
parent | cbce64c6b79dda6ee5f5155f9754e3495e03d6bd (diff) | |
download | atoolbox-34ed04686523ecdafb96c6cdff379df176cf1984.tar.bz2 |
Add astro/cosmo_calc from "chandra-acis-analysis"
Diffstat (limited to 'astro/cosmo_calc/Makefile')
-rw-r--r-- | astro/cosmo_calc/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/astro/cosmo_calc/Makefile b/astro/cosmo_calc/Makefile new file mode 100644 index 0000000..abd12bb --- /dev/null +++ b/astro/cosmo_calc/Makefile @@ -0,0 +1,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) + + |