diff options
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) + + |