Changeset 2743 in Sophya for trunk/SophyaExt/XAstroPack


Ignore:
Timestamp:
May 20, 2005, 9:57:11 AM (20 years ago)
Author:
cmv
Message:

suite nouvelle structure cmv 20/05/05

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

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/XAstroPack/Makefile

    r2552 r2743  
    1 include ../Mgr/Makefile.h
     1include ../BuildMgr/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) $@ $?
    216 
    3 all: $(LIB)libXAstroPack.a
    4 clean:
    5         rm -f $(OBJ)mollweide.o $(OBJ)tstxastro.o $(OBJ)xastropack.o $(OBJ)magfield.o
    6         rm -f $(LIB)libXAstroPack.a
    7 $(LIB)libXAstroPack.a : $(OBJ)magfield.o $(OBJ)mollweide.o $(OBJ)xastropack.o
    8         $(ARCXX) $(ARCXXFLAGS) $@ $($(ARARGS))
    9 ifeq ($(CXX),cxx)
    10         $(CXX) $? $(CPPFLAGS) $(CXXFLAGS) -o $(OBJ)xx.x -Hf
    11 endif
    12  
    13 $(OBJ)mollweide.o: mollweide.cc mollweide.h
    14 $(OBJ)xastropack.o: xastropack.cc xastropack.h \
    15  $(INC)machdefs.h \
    16  $(EXTINCPATH)XAstro/astro.h
    17 $(OBJ)magfield.o: magfield.c magfield.h
     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 TracChangeset for help on using the changeset viewer.