Changeset 2743 in Sophya for trunk/SophyaExt
- Timestamp:
- May 20, 2005, 9:57:11 AM (20 years ago)
- Location:
- trunk/SophyaExt
- Files:
-
- 7 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/IFFTW/Makefile
r1837 r2743 1 include ../ Mgr/Makefile.h1 include ../BuildMgr/sophyamake.inc 2 2 3 all: $(LIB)libIFFTW.a 3 all: $(SOPHYALIBP)libIFFTW.a 4 4 5 clean: 5 rm -f $(OBJ)fftwserver.o 6 rm -f $(LIB)libIFFTW.a 7 $(LIB)libIFFTW.a : $(OBJ)fftwserver.o 8 $(ARCXX) $(ARCXXFLAGS) $@ $($(ARARGS)) 9 ifeq ($(CXX),cxx) 10 $(CXX) $? $(CPPFLAGS) $(CXXFLAGS) -o $(OBJ)xx.x -Hf 11 endif 6 rm -f $(SOPHYAOBJP)fftwserver.o 7 rm -f $(SOPHYALIBP)libIFFTW.a 12 8 13 $(OBJ)fftwserver.o: fftwserver.cc fftwserver.h \ 14 $(INC)machdefs.h \ 15 $(INC)fftservintf.h \ 16 $(INC)pexceptions.h \ 17 $(INC)tmatrix.h \ 18 $(INC)tarray.h \ 19 $(INC)basarr.h \ 20 $(INC)anydataobj.h \ 21 $(INC)mutyv.h \ 22 $(INC)dvlist.h \ 23 $(INC)objfio.h \ 24 $(INC)ppersist.h \ 25 $(INC)gnumd5.h \ 26 $(INC)ndatablock.h \ 27 $(INC)utilarr.h \ 28 $(INC)tvector.h \ 29 $(EXTINCPATH)FFTW/fftw.h \ 30 $(EXTINCPATH)FFTW/rfftw.h 9 $(SOPHYALIBP)libIFFTW.a : $(SOPHYAOBJP)fftwserver.o 10 $(AR) $(ARFLAGS) $@ $? 11 12 $(SOPHYAOBJP)fftwserver.o: fftwserver.cc \ 13 $(SOPHYAINCP)sopnamsp.h fftwserver.h \ 14 $(SOPHYAINCP)machdefs.h \ 15 $(SOPHYAINCP)fftservintf.h \ 16 $(SOPHYAINCP)pexceptions.h \ 17 $(SOPHYAINCP)tmatrix.h \ 18 $(SOPHYAINCP)tarray.h \ 19 $(SOPHYAINCP)basarr.h \ 20 $(SOPHYAINCP)anydataobj.h \ 21 $(SOPHYAINCP)mutyv.h \ 22 $(SOPHYAINCP)dvlist.h \ 23 $(SOPHYAINCP)objfio.h \ 24 $(SOPHYAINCP)ppersist.h \ 25 $(SOPHYAINCP)gnumd5.h \ 26 $(SOPHYAINCP)ppfbinstream.h \ 27 $(SOPHYAINCP)rawstream.h \ 28 $(SOPHYAINCP)ppfnametag.h \ 29 $(SOPHYAINCP)ndatablock.h \ 30 $(SOPHYAINCP)utilarr.h \ 31 $(SOPHYAINCP)tvector.h \ 32 $(SOPHYAINCP)FFTW/fftw.h \ 33 $(SOPHYAINCP)FFTW/rfftw.h 34 $(CXXCOMPILE) -o $@ $< 35 -
trunk/SophyaExt/LinAlg/Makefile
r1837 r2743 1 include ../ Mgr/Makefile.h1 include ../BuildMgr/sophyamake.inc 2 2 3 all: $(LIB)libLinAlg.a 3 all: $(SOPHYALIBP)libLinAlg.a 4 4 5 clean: 5 rm -f $(OBJ)intflapack.o 6 rm -f $(LIB)libLinAlg.a 7 $(LIB)libLinAlg.a : $(OBJ)intflapack.o 8 $(ARCXX) $(ARCXXFLAGS) $@ $($(ARARGS)) 9 ifeq ($(CXX),cxx) 10 $(CXX) $? $(CPPFLAGS) $(CXXFLAGS) -o $(OBJ)xx.x -Hf 11 endif 6 rm -f $(SOPHYAOBJP)intflapack.o 7 rm -f $(SOPHYALIBP)libLinAlg.a 12 8 13 $(OBJ)intflapack.o: intflapack.cc intflapack.h \ 14 $(INC)machdefs.h \ 15 $(INC)tarray.h \ 16 $(INC)basarr.h \ 17 $(INC)anydataobj.h \ 18 $(INC)mutyv.h \ 19 $(INC)dvlist.h \ 20 $(INC)objfio.h \ 21 $(INC)ppersist.h \ 22 $(INC)pexceptions.h \ 23 $(INC)gnumd5.h \ 24 $(INC)ndatablock.h \ 25 $(INC)utilarr.h \ 26 $(INC)tvector.h \ 27 $(INC)tmatrix.h 9 $(SOPHYALIBP)libLinAlg.a : $(SOPHYAOBJP)intflapack.o 10 $(AR) $(ARFLAGS) $@ $? 11 12 $(SOPHYAOBJP)intflapack.o: intflapack.cc \ 13 $(SOPHYAINCP)sopnamsp.h intflapack.h \ 14 $(SOPHYAINCP)machdefs.h \ 15 $(SOPHYAINCP)tarray.h \ 16 $(SOPHYAINCP)basarr.h \ 17 $(SOPHYAINCP)anydataobj.h \ 18 $(SOPHYAINCP)mutyv.h \ 19 $(SOPHYAINCP)dvlist.h \ 20 $(SOPHYAINCP)objfio.h \ 21 $(SOPHYAINCP)ppersist.h \ 22 $(SOPHYAINCP)pexceptions.h \ 23 $(SOPHYAINCP)gnumd5.h \ 24 $(SOPHYAINCP)ppfbinstream.h \ 25 $(SOPHYAINCP)rawstream.h \ 26 $(SOPHYAINCP)ppfnametag.h \ 27 $(SOPHYAINCP)ndatablock.h \ 28 $(SOPHYAINCP)utilarr.h \ 29 $(SOPHYAINCP)tvector.h \ 30 $(SOPHYAINCP)tmatrix.h 31 $(CXXCOMPILE) -o $@ $< 32 -
trunk/SophyaExt/MinuitAdapt/Makefile
r2404 r2743 1 MODULECXXREPNAME := MinuitAdapt 2 MODULEDECCXXFLAGS := -msg_quiet 3 include ../Mgr/Makefile.h 1 include ../BuildMgr/sophyamake.inc 4 2 5 CFLAGS := $(CFLAGS) -Df2cFortran6 3 CPPFLAGS := $(CPPFLAGS) -Df2cFortran 7 4 CXXFLAGS := $(CXXFLAGS) -Df2cFortran 8 5 9 all: $( LIB)libMinuitAdapt.a6 all: $(SOPHYALIBP)libMinuitAdapt.a 10 7 11 clean: cleantest 12 rm -f $(OBJ)minuitadapt.o $(OBJ)minuitadaptF.o 13 rm -f $(LIB)libMinuitAdapt.a 14 15 cleantest: 8 clean: 9 rm -f $(SOPHYAOBJP)minuitadapt.o $(SOPHYAOBJP)minuitadaptF.o 10 rm -f $(SOPHYALIBP)libMinuitAdapt.a 16 11 rm -f testminuit testminuit.o 17 18 # Doit etre fait automatiquement par mkmflien19 install:20 cp localmnpout.h minuitprot.h minuitadapt.h $(INC)/.21 22 #----------------------------------------------------------------------23 $(LIB)libMinuitAdapt.a : $(OBJ)minuitadapt.o $(OBJ)minuitadaptF.o24 $(ARCXX) $(ARCXXFLAGS) $@ $($(ARARGS))25 ifeq ($(CXX),cxx)26 $(CXX) $? $(CPPFLAGS) $(CXXFLAGS) -o $(OBJ)xx.x -Hf27 endif28 29 $(OBJ)minuitadaptF.o: minuitadaptF.f30 $(OBJ)minuitadapt.o: minuitadapt.cc minuitadapt.h minuitprot.h31 32 #----------------------------------------------------------------------33 ifdef NOSHLIB34 LIBS = -L$(LIB) -lFitsIOServer -lSamba -lSkyMap -lSkyT -lNTools -lHiStats -lTArray -lSysTools -lm35 ifeq ($(CXX),cxx)36 LIBS := $(LIBS) -lertcxx37 endif38 else39 LIBS = -L$(SLB) -lsophya -lextsophya -lm40 endif41 LIBMINUIT := -L$(LIB) -lMinuitAdapt -L$(EXTLIBPATH) -lminuit42 LDLIBS := $(LIBS) $(LDLIBS) $(LIBMINUIT) $(LIBFORT)43 12 44 13 test: testminuit 45 14 15 16 $(SOPHYALIBP)libMinuitAdapt.a : $(SOPHYAOBJP)minuitadapt.o $(SOPHYAOBJP)minuitadaptF.o 17 $(AR) $(ARFLAGS) $@ $? 18 19 $(SOPHYAOBJP)minuitadapt.o: minuitadapt.cc minuitadapt.h minuitprot.h 20 $(CXXCOMPILE) -o $@ $< 21 22 $(SOPHYAOBJP)minuitadaptF.o: minuitadaptF.f 23 $(FCCOMPILE) -o $@ $< 24 46 25 testminuit: testminuit.o 47 $( LINK.cc) $^ -o $@ $(LOADLIBES) $(LDLIBS)48 $(OBJ)testminuit.o: testminuit.cc26 $(CXXLINK) $^ -o $@ $(SOPHYAEXTSLBLIST) 27 testminuit.o: testminuit.cc -
trunk/SophyaExt/MinuitAdapt/minuitadapt.cc
r2615 r2743 3 3 #include <stdio.h> 4 4 #include <stdlib.h> 5 #include <iostream .h>5 #include <iostream> 6 6 #include <string.h> 7 7 #include <string> -
trunk/SophyaExt/MinuitAdapt/testminuit.cc
r2615 r2743 5 5 #include <stdlib.h> 6 6 #include <stdio.h> 7 #include <iostream .h>7 #include <iostream> 8 8 #include <math.h> 9 9 #include <string.h> -
trunk/SophyaExt/XAstroPack/Makefile
r2552 r2743 1 include ../Mgr/Makefile.h 1 include ../BuildMgr/sophyamake.inc 2 3 all: $(SOPHYALIBP)libXAstroPack.a 4 5 clean: cleantest 6 rm -f $(SOPHYAOBJP)mollweide.o $(SOPHYAOBJP)tstxastro.o \ 7 $(SOPHYAOBJP)xastropack.o $(SOPHYAOBJP)magfield.o 8 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) $@ $? 2 16 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 #--------------------- 29 tstxastro: tstxastro.o $(SOPHYAOBJP)xastropack.o 30 $(CXXLINK) $^ -o $@ $(SOPEXTLIBP) -lxastro -lc -lm 31 32 tstxastro.o: tstxastro.cc 33 $(CXXCOMPILE) -o $@ $< 34 35 #--------------------- 36 tstmollweide: tstmollweide.o $(SOPHYAOBJP)mollweide.o 37 $(CXXLINK) -o $@ $^ $(SOPEXTLIBP) -lxastro -lc -lm 38 39 tstmollweide.o: tstmollweide.cc 40 $(CXXCOMPILE) -o $@ $< -
trunk/SophyaExt/XephemAstroLib/Makefile
r2551 r2743 1 include $(SOPHYABASEREP)/Include/MakefileUser.h1 include ../BuildMgr/sophyamake.inc 2 2 3 3 all: libxastro.a 4 4 5 5 clean: 6 rm -f libxastro.a 7 rm -f *.o testxephem 8 9 install: 10 if [ ! -d $(EXTINCPATH)/XAstro ] ; then mkdir $(EXTINCPATH)/XAstro ; fi 11 rm -f $(EXTINCPATH)/XAstro/astro.h 12 rm -f $(EXTINCPATH)/XAstro/bdl.h 13 rm -f $(EXTINCPATH)/XAstro/P_.h 14 rm -f $(EXTLIBPATH)/libxastro.a 15 cp *.h $(EXTINCPATH)/XAstro/. 16 cp libxastro.a $(EXTLIBPATH)/. 6 rm -f libxastro.a *.o testxephem 17 7 18 8 OBJASTRO := $(addsuffix .o,$(basename $(wildcard *.c))) 19 9 20 10 libxastro.a : $(OBJASTRO) 21 $(AR) $(ARFLAGS) $@ $ (OBJASTRO)11 $(AR) $(ARFLAGS) $@ $? 22 12 23 13 %.o: %.c 24 $(C OMPILE.c) -o $@ $<14 $(CCOMPILE) -o $@ $< 25 15 26 16 testxephem: testxephem.o 27 $( LINK.c) -o $@ $^ -L$(EXTLIBPATH)-lxastro -lc -lm17 $(CLINK) -o $@ $^ -L./ -lxastro -lc -lm
Note:
See TracChangeset
for help on using the changeset viewer.