Last change
on this file since 3007 was 2735, checked in by cmv, 20 years ago |
memorisation makefile old-fashion Mgr cmv 19/05/05
|
File size:
1.3 KB
|
Rev | Line | |
---|
[2735] | 1 | MODULECXXREPNAME := MinuitAdapt
|
---|
| 2 | MODULEDECCXXFLAGS := -msg_quiet
|
---|
| 3 | include ../Mgr/Makefile.h
|
---|
| 4 |
|
---|
| 5 | CFLAGS := $(CFLAGS) -Df2cFortran
|
---|
| 6 | CPPFLAGS := $(CPPFLAGS) -Df2cFortran
|
---|
| 7 | CXXFLAGS := $(CXXFLAGS) -Df2cFortran
|
---|
| 8 |
|
---|
| 9 | all: $(LIB)libMinuitAdapt.a
|
---|
| 10 |
|
---|
| 11 | clean: cleantest
|
---|
| 12 | rm -f $(OBJ)minuitadapt.o $(OBJ)minuitadaptF.o
|
---|
| 13 | rm -f $(LIB)libMinuitAdapt.a
|
---|
| 14 |
|
---|
| 15 | cleantest:
|
---|
| 16 | rm -f testminuit testminuit.o
|
---|
| 17 |
|
---|
| 18 | # Doit etre fait automatiquement par mkmflien
|
---|
| 19 | install:
|
---|
| 20 | cp localmnpout.h minuitprot.h minuitadapt.h $(INC)/.
|
---|
| 21 |
|
---|
| 22 | #----------------------------------------------------------------------
|
---|
| 23 | $(LIB)libMinuitAdapt.a : $(OBJ)minuitadapt.o $(OBJ)minuitadaptF.o
|
---|
| 24 | $(ARCXX) $(ARCXXFLAGS) $@ $($(ARARGS))
|
---|
| 25 | ifeq ($(CXX),cxx)
|
---|
| 26 | $(CXX) $? $(CPPFLAGS) $(CXXFLAGS) -o $(OBJ)xx.x -Hf
|
---|
| 27 | endif
|
---|
| 28 |
|
---|
| 29 | $(OBJ)minuitadaptF.o: minuitadaptF.f
|
---|
| 30 | $(OBJ)minuitadapt.o: minuitadapt.cc minuitadapt.h minuitprot.h
|
---|
| 31 |
|
---|
| 32 | #----------------------------------------------------------------------
|
---|
| 33 | ifdef NOSHLIB
|
---|
| 34 | LIBS = -L$(LIB) -lFitsIOServer -lSamba -lSkyMap -lSkyT -lNTools -lHiStats -lTArray -lSysTools -lm
|
---|
| 35 | ifeq ($(CXX),cxx)
|
---|
| 36 | LIBS := $(LIBS) -lertcxx
|
---|
| 37 | endif
|
---|
| 38 | else
|
---|
| 39 | LIBS = -L$(SLB) -lsophya -lextsophya -lm
|
---|
| 40 | endif
|
---|
| 41 | LIBMINUIT := -L$(LIB) -lMinuitAdapt -L$(EXTLIBPATH) -lminuit
|
---|
| 42 | LDLIBS := $(LIBS) $(LDLIBS) $(LIBMINUIT) $(LIBFORT)
|
---|
| 43 |
|
---|
| 44 | test: testminuit
|
---|
| 45 |
|
---|
| 46 | testminuit: testminuit.o
|
---|
| 47 | $(LINK.cc) $^ -o $@ $(LOADLIBES) $(LDLIBS)
|
---|
| 48 | $(OBJ)testminuit.o: testminuit.cc
|
---|
Note:
See
TracBrowser
for help on using the repository browser.