source: Sophya/trunk/SophyaExt/XAstroPack/smakefile@ 2743

Last change on this file since 2743 was 2743, checked in by cmv, 20 years ago

suite nouvelle structure cmv 20/05/05

File size: 1.1 KB
RevLine 
[2743]1include $(SOPHYABASE)/include/sophyamake.inc
2
3all: $(SOPHYALIBP)libXAstroPack.a
4
5clean: cleantest
6 rm -f $(SOPHYAOBJP)mollweide.o $(SOPHYAOBJP)tstxastro.o \
7 $(SOPHYAOBJP)xastropack.o $(SOPHYAOBJP)magfield.o
8 rm -f $(SOPHYALIBP)libXAstroPack.a
9
10cleantest:
11 rm -f *.o tstxastro tstmollweide mollw.data mollw2.data
12
13$(SOPHYALIBP)libXAstroPack.a : $(SOPHYAOBJP)magfield.o \
14 $(SOPHYAOBJP)mollweide.o $(SOPHYAOBJP)xastropack.o
15 $(AR) $(ARFLAGS) $@ $?
16
17$(SOPHYAOBJP)mollweide.o: mollweide.cc mollweide.h
18 $(CXXCOMPILE) -o $@ $<
19
20$(SOPHYAOBJP)xastropack.o: xastropack.cc xastropack.h \
21 $(SOPHYAINCP)machdefs.h \
22 $(SOPHYAINCP)XAstro/astro.h
23 $(CXXCOMPILE) -o $@ $<
24
25$(SOPHYAOBJP)magfield.o: magfield.c magfield.h
26 $(CCOMPILE) -o $@ $<
27
28#---------------------
29tstxastro: tstxastro.o $(SOPHYAOBJP)xastropack.o
30 $(CXXLINK) $^ -o $@ $(SOPEXTLIBP) -lxastro -lc -lm
31
32tstxastro.o: tstxastro.cc
33 $(CXXCOMPILE) -o $@ $<
34
35#---------------------
36tstmollweide: tstmollweide.o $(SOPHYAOBJP)mollweide.o
37 $(CXXLINK) -o $@ $^ $(SOPEXTLIBP) -lxastro -lc -lm
38
39tstmollweide.o: tstmollweide.cc
40 $(CXXCOMPILE) -o $@ $<
Note: See TracBrowser for help on using the repository browser.