Changeset 2763 in Sophya for trunk/SophyaExt/XAstroPack


Ignore:
Timestamp:
May 24, 2005, 7:19:29 PM (20 years ago)
Author:
cmv
Message:

suite modifs makefile/configure cmv 24/05/05

Location:
trunk/SophyaExt/XAstroPack
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/XAstroPack/Makefile

    r2751 r2763  
    11include ../BuildMgr/sophyamake.inc
    2 
     2 
    33all: $(SOPHYALIBP)libXAstroPack.a
    4 
    5 clean: cleantest
    6         rm -f $(SOPHYAOBJP)mollweide.o $(SOPHYAOBJP)tstxastro.o \
    7               $(SOPHYAOBJP)xastropack.o $(SOPHYAOBJP)magfield.o
     4 
     5clean:
     6         rm -f $(SOPHYAOBJP)mollweide.o $(SOPHYAOBJP)tstmollweide.o $(SOPHYAOBJP)tstxastro.o $(SOPHYAOBJP)xastropack.o $(SOPHYAOBJP)magfield.o
    87        rm -f $(SOPHYALIBP)libXAstroPack.a
    9 
    10 cleantest:
    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) $@ $?
    168 
    17 $(SOPHYAOBJP)mollweide.o: mollweide.cc mollweide.h
     9$(SOPHYALIBP)libXAstroPack.a : $(SOPHYAOBJP)magfield.o $(SOPHYAOBJP)mollweide.o $(SOPHYAOBJP)xastropack.o
     10        $(AR) $(ARFLAGS) $@ $?
     11        touch $(SOPHYAINCP)/SophyaConfInfo/libextsophya.objlist
     12 
     13$(SOPHYAOBJP)mollweide.o: mollweide.cc \
     14  $(SOPHYAINCP)sopnamsp.h \
     15  mollweide.h
    1816        $(CXXCOMPILELIB) -o $@ $<
    19 
    20 $(SOPHYAOBJP)xastropack.o: xastropack.cc xastropack.h \
    21  $(SOPHYAINCP)machdefs.h \
    22  $(SOPHYAINCP)XAstro/astro.h
     17 
     18$(SOPHYAOBJP)xastropack.o: xastropack.cc \
     19  $(SOPHYAINCP)sopnamsp.h \
     20  xastropack.h \
     21  $(SOPHYAINCP)machdefs.h \
     22  $(SOPHYAINCP)XAstro/astro.h
    2323        $(CXXCOMPILELIB) -o $@ $<
    24 
     24 
    2525$(SOPHYAOBJP)magfield.o: magfield.c magfield.h
    2626        $(CCOMPILE) -o $@ $<
    27 
    28 #---------------------
    29 tstxastro: tstxastro.o $(SOPHYAOBJP)xastropack.o
    30         $(CXXLINK) $^ -o $@ $(SOPEXTLIBP) -lxastro -lc -lm
    31 
    32 tstxastro.o: tstxastro.cc
    33         $(CXXCOMPILEPROG) -o $@ $<
    34 
    35 #---------------------
    36 tstmollweide: tstmollweide.o $(SOPHYAOBJP)mollweide.o
    37         $(CXXLINK) -o $@ $^ $(SOPEXTLIBP) -lxastro -lc -lm
    38 
    39 tstmollweide.o: tstmollweide.cc
    40         $(CXXCOMPILEPROG) -o $@ $<
     27 
  • trunk/SophyaExt/XAstroPack/Maketest

    r2437 r2763  
    1 MODULECXXREPNAME :=  CmvTests
    2 MODULEDECCXXFLAGS := -msg_quiet
    3 include $(SOPHYABASEREP)/Include/MakefileUser.h
     1include $(SOPHYABASE)/include/sophyamake.inc
    42
    5 LIBNEED := -L$(SLB) -lsophya -L$(LIB) -lFitsIOServer -L$(EXTLIBPATH) -lcfitsio
    6 
    7 all: tstxastro mollweide
     3all: tstxastro tstmollweide
    84
    95clean:
    10         rm -f tstxastro mollweide
    11         rm -f core *.o
    12         rm -f mollw.data mollw2.data paw.metafile last.kumacold
     6        rm -f *.o tstxastro tstmollweide mollw.data mollw2.data
    137
    14 ##############################################################################
    15 tstxastro: tstxastro.o xastropack.o
    16         $(LINK.cc) $^ -o $@ $(LOADLIBES) $(LIBS) $(LDLIBS)
     8#---------------------
     9tstxastro: tstxastro.o
     10        $(CXXLINK) $^ -o $@ $(SOPEXTLIBP) -L$(SOPHYALIBP) -lXAstroPack -lxastro -lc -lm
     11
    1712tstxastro.o: tstxastro.cc
    18 xastropack.o: xastropack.cc
    19 ##############################################################################
    20 mollweide: mollweide.o
    21         $(LINK.cc) -DTEST_MOLLWEIDE $^ -o $@ $(LOADLIBES) $(LIBS) $(LDLIBS)
    22 mollweide.o: mollweide.cc mollweide.h
    23         $(COMPILE.cc) -DTEST_MOLLWEIDE -o $@ $<
    24 ##############################################################################
     13        $(CXXCOMPILE) -o $@ $<
     14
     15#---------------------
     16tstmollweide: tstmollweide.o
     17        $(CXXLINK) -o $@ $^ $(SOPEXTLIBP) -L$(SOPHYALIBP) -lXAstroPack -lxastro -lc -lm
     18
     19tstmollweide.o: tstmollweide.cc
     20        $(CXXCOMPILE) -o $@ $<
  • trunk/SophyaExt/XAstroPack/smakefile

    r2751 r2763  
    11include $(SOPHYABASE)/include/sophyamake.inc
    2 
     2 
    33all: $(SOPHYALIBP)libXAstroPack.a
    4 
    5 clean: cleantest
    6         rm -f $(SOPHYAOBJP)mollweide.o $(SOPHYAOBJP)tstxastro.o \
    7               $(SOPHYAOBJP)xastropack.o $(SOPHYAOBJP)magfield.o
     4 
     5clean:
     6         rm -f $(SOPHYAOBJP)mollweide.o $(SOPHYAOBJP)tstmollweide.o $(SOPHYAOBJP)tstxastro.o $(SOPHYAOBJP)xastropack.o $(SOPHYAOBJP)magfield.o
    87        rm -f $(SOPHYALIBP)libXAstroPack.a
    9 
    10 cleantest:
    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) $@ $?
    168 
    17 $(SOPHYAOBJP)mollweide.o: mollweide.cc mollweide.h
     9$(SOPHYALIBP)libXAstroPack.a : $(SOPHYAOBJP)magfield.o $(SOPHYAOBJP)mollweide.o $(SOPHYAOBJP)xastropack.o
     10        $(AR) $(ARFLAGS) $@ $?
     11        touch $(SOPHYAINCP)/SophyaConfInfo/libextsophya.objlist
     12 
     13$(SOPHYAOBJP)mollweide.o: mollweide.cc \
     14  $(SOPHYAINCP)sopnamsp.h \
     15  mollweide.h
    1816        $(CXXCOMPILELIB) -o $@ $<
    19 
    20 $(SOPHYAOBJP)xastropack.o: xastropack.cc xastropack.h \
    21  $(SOPHYAINCP)machdefs.h \
    22  $(SOPHYAINCP)XAstro/astro.h
     17 
     18$(SOPHYAOBJP)xastropack.o: xastropack.cc \
     19  $(SOPHYAINCP)sopnamsp.h \
     20  xastropack.h \
     21  $(SOPHYAINCP)machdefs.h \
     22  $(SOPHYAINCP)XAstro/astro.h
    2323        $(CXXCOMPILELIB) -o $@ $<
    24 
     24 
    2525$(SOPHYAOBJP)magfield.o: magfield.c magfield.h
    2626        $(CCOMPILE) -o $@ $<
    27 
    28 #---------------------
    29 tstxastro: tstxastro.o $(SOPHYAOBJP)xastropack.o
    30         $(CXXLINK) $^ -o $@ $(SOPEXTLIBP) -lxastro -lc -lm
    31 
    32 tstxastro.o: tstxastro.cc
    33         $(CXXCOMPILEPROG) -o $@ $<
    34 
    35 #---------------------
    36 tstmollweide: tstmollweide.o $(SOPHYAOBJP)mollweide.o
    37         $(CXXLINK) -o $@ $^ $(SOPEXTLIBP) -lxastro -lc -lm
    38 
    39 tstmollweide.o: tstmollweide.cc
    40         $(CXXCOMPILEPROG) -o $@ $<
     27 
Note: See TracChangeset for help on using the changeset viewer.