| [1365] | 1 | srcdir = @srcdir@ | 
|---|
|  | 2 | #VPATH = @srcdir@ | 
|---|
|  | 3 | INSTALL = @INSTALL@ | 
|---|
|  | 4 | prefix = @prefix@ | 
|---|
|  | 5 | exec_prefix = @exec_prefix@ | 
|---|
|  | 6 | bindir = @bindir@ | 
|---|
| [1745] | 7 | libdir = @libdir@ | 
|---|
| [1365] | 8 | CXX=@CXX@ | 
|---|
| [1705] | 9 | AR=@AR@ | 
|---|
| [1788] | 10 | ARFLAGS=@ARFLAGS@ | 
|---|
| [1732] | 11 | LIBS=@LIBS@ | 
|---|
| [1365] | 12 | CXXFLAGS=-O -g | 
|---|
|  | 13 | CFLAGS=-O -g | 
|---|
|  | 14 |  | 
|---|
|  | 15 | USE_SOPHYA=@use_sophya@ | 
|---|
|  | 16 |  | 
|---|
|  | 17 | MACHEROS := $(shell echo `uname`) | 
|---|
|  | 18 | MACHDIR := $(MACHEROS)-$(CXX) | 
|---|
|  | 19 |  | 
|---|
|  | 20 |  | 
|---|
|  | 21 | ifeq ($(USE_SOPHYA),1) | 
|---|
| [1730] | 22 | include $(DPCBASEREP)/Include/MakefileUser.h | 
|---|
| [1365] | 23 |  | 
|---|
|  | 24 | ifdef NOSHLIB | 
|---|
| [1730] | 25 | LIBF =  $(LIB)libSysTools.a $(LIB)libNTools.a $(LIB)libBlitz.a $(LIB)libFitsIOServer.a | 
|---|
| [1732] | 26 | LIBS :=  -L$(LIB)  -lSysTools -lNTools -lBlitz  $(LIBS) | 
|---|
| [1365] | 27 | ifeq ($(CXX),cxx) | 
|---|
|  | 28 | # librairie des instances de templates cxx | 
|---|
|  | 29 | LIBS := $(LIBS) -lrt | 
|---|
|  | 30 | endif | 
|---|
|  | 31 | else | 
|---|
|  | 32 | LIBF =  $(SLB)libsophya.so | 
|---|
| [1732] | 33 | LIBS := -L$(SLB)  -lextsophya -lsophya $(LIBS) | 
|---|
| [1365] | 34 | ifeq ($(MACHEROS),OSF1) | 
|---|
|  | 35 | LIBS := $(LIBS) -lfor | 
|---|
|  | 36 | endif | 
|---|
|  | 37 | endif | 
|---|
|  | 38 |  | 
|---|
|  | 39 | CPPFLAGS := -DWITH_SOPHYA $(CPPFLAGS) | 
|---|
|  | 40 | else | 
|---|
|  | 41 | ifeq ($(CXX), cxx) | 
|---|
|  | 42 | CXXFLAGS := -O -g -D__USE_STD_IOSTREAM | 
|---|
|  | 43 | endif | 
|---|
|  | 44 | endif | 
|---|
|  | 45 |  | 
|---|
|  | 46 |  | 
|---|
|  | 47 | CPPFLAGS    :=  $(CPPFLAGS) @cfitsincdir@ -I. -DANSI | 
|---|
|  | 48 |  | 
|---|
|  | 49 | LDLIBS=@cfitslibdir@ -lcfitsio $(LIBS) | 
|---|
|  | 50 |  | 
|---|
|  | 51 | ifeq ($(MACHEROS),IRIX64) | 
|---|
|  | 52 | ifeq ($(CXX), g++) | 
|---|
|  | 53 | LDLIBS=@cfitslibdir@ -lcfitsio -L /usr/lib32/ | 
|---|
|  | 54 | endif | 
|---|
|  | 55 | ifeq ($(CXX), CC) | 
|---|
| [2208] | 56 | CXXFLAGS = -O -prelink -ptused -64 | 
|---|
|  | 57 | CFLAGS   = -O -64 | 
|---|
| [1764] | 58 | #   CXXFLAGS = -LANG:std -woff 1171,1174,1552 -O -OPT:Olimit=0 | 
|---|
|  | 59 | #   CFLAGS  =  -O -OPT:Olimit=0 | 
|---|
| [1365] | 60 | endif | 
|---|
|  | 61 | endif | 
|---|
|  | 62 |  | 
|---|
|  | 63 | ifeq ($(CXX), g++) | 
|---|
|  | 64 | CC = gcc | 
|---|
|  | 65 | endif | 
|---|
|  | 66 |  | 
|---|
| [1745] | 67 | default: build_kernel build_processors build_sophya | 
|---|
|  | 68 | echo "pipe libs built" | 
|---|
| [1365] | 69 |  | 
|---|
| [1745] | 70 | install:  default | 
|---|
|  | 71 | mkdir -p $(libdir) | 
|---|
|  | 72 | mkdir -p $(prefix)/include | 
|---|
| [1956] | 73 | cp -p Kernel/libatkern.a $(libdir)/ | 
|---|
|  | 74 | cp -p Processors/libatproc.a $(libdir)/ | 
|---|
|  | 75 | for f in $(srcdir)/Kernel/*.h $(srcdir)/Processors/*.h $(srcdir)/*.h conf.h; do \ | 
|---|
| [1747] | 76 | $(INSTALL) $$f $(prefix)/include; \ | 
|---|
|  | 77 | done | 
|---|
| [1956] | 78 | if [ -f ProcWSophya/libatsop.a ]; then \ | 
|---|
|  | 79 | cp -p ProcWSophya/libatsop.a $(libdir)/; \ | 
|---|
|  | 80 | for f in $(srcdir)/ProcWSophya/*.h; do \ | 
|---|
| [1747] | 81 | $(INSTALL) $$f $(prefix)/include; \ | 
|---|
|  | 82 | done \ | 
|---|
| [1745] | 83 | fi | 
|---|
|  | 84 |  | 
|---|
| [1365] | 85 | clean: | 
|---|
|  | 86 | rm -f *.o | 
|---|
|  | 87 | rm -rf rii_files ii_files cxxrep cxx_repository | 
|---|
| [1956] | 88 | for d in Kernel Processors ProcWSophya; do \ | 
|---|
| [1685] | 89 | if [ -d $$d ]; then \ | 
|---|
|  | 90 | cd $$d; $(MAKE) clean; \ | 
|---|
| [1702] | 91 | cd ..; \ | 
|---|
| [1477] | 92 | fi  \ | 
|---|
|  | 93 | done | 
|---|
| [1365] | 94 |  | 
|---|
| [1956] | 95 | %: $(srcdir)/TestPipes/%.cc build_kernel build_processors build_sophya | 
|---|
|  | 96 | cd TestPipes; $(MAKE) $@ | 
|---|
| [1365] | 97 |  | 
|---|
| [1477] | 98 | build_kernel: | 
|---|
| [1956] | 99 | cd Kernel; $(MAKE) | 
|---|
| [1365] | 100 |  | 
|---|
| [1477] | 101 | build_processors: | 
|---|
| [1956] | 102 | cd Processors; $(MAKE) | 
|---|
| [1365] | 103 |  | 
|---|
| [1477] | 104 | build_sophya: | 
|---|
|  | 105 | ifeq ($(USE_SOPHYA),1) | 
|---|
| [1957] | 106 | if [ -d ProcWSophya ]; then \ | 
|---|
| [1956] | 107 | cd ProcWSophya; $(MAKE); \ | 
|---|
| [1480] | 108 | fi | 
|---|
| [1477] | 109 | else | 
|---|
|  | 110 | echo "no sophya" | 
|---|
|  | 111 | endif | 
|---|
| [1365] | 112 |  | 
|---|
|  | 113 |  | 
|---|
|  | 114 |  | 
|---|