| Rev | Line |  | 
|---|
| [1365] | 1 | srcdir = @srcdir@ | 
|---|
|  | 2 | #VPATH = @srcdir@ | 
|---|
|  | 3 | INSTALL = @INSTALL@ | 
|---|
|  | 4 | prefix = @prefix@ | 
|---|
|  | 5 | exec_prefix = @exec_prefix@ | 
|---|
|  | 6 | bindir = @bindir@ | 
|---|
|  | 7 | CXX=@CXX@ | 
|---|
|  | 8 | CXXFLAGS=-O -g | 
|---|
|  | 9 | CFLAGS=-O -g | 
|---|
|  | 10 |  | 
|---|
|  | 11 | USE_SOPHYA=@use_sophya@ | 
|---|
|  | 12 |  | 
|---|
|  | 13 | MACHEROS := $(shell echo `uname`) | 
|---|
|  | 14 | MACHDIR := $(MACHEROS)-$(CXX) | 
|---|
|  | 15 |  | 
|---|
|  | 16 |  | 
|---|
|  | 17 | ifeq ($(USE_SOPHYA),1) | 
|---|
|  | 18 | include $(DPCDEVREP)/Include/Makefile.h | 
|---|
|  | 19 |  | 
|---|
|  | 20 | ifdef NOSHLIB | 
|---|
|  | 21 | LIBF =  $(LIB)libSysTools.a $(LIB)libNTools.a $(LIB)libBlitz.a $(LIB)libFitsIOServer.a $(LIB)libPI.a $(LIB)libPIext.a | 
|---|
|  | 22 | LIBS = -L$(LIB) -lPIext -lPI -lSysTools -lNTools -lBlitz  -lm | 
|---|
|  | 23 | ifeq ($(CXX),cxx) | 
|---|
|  | 24 | # librairie des instances de templates cxx | 
|---|
|  | 25 | LIBS := $(LIBS) -lrt | 
|---|
|  | 26 | endif | 
|---|
|  | 27 | else | 
|---|
|  | 28 | LIBF =  $(SLB)libsophya.so | 
|---|
|  | 29 | LIBS = -L$(SLB) -lPI -lextsophya -lsophya -lm | 
|---|
|  | 30 | ifeq ($(MACHEROS),OSF1) | 
|---|
|  | 31 | LIBS := $(LIBS) -lfor | 
|---|
|  | 32 | endif | 
|---|
|  | 33 | ifeq ($(MACHEROS),Linux) | 
|---|
|  | 34 | LIBS := $(LIBS) -ldl -lf2c | 
|---|
|  | 35 | endif | 
|---|
|  | 36 | endif | 
|---|
|  | 37 |  | 
|---|
|  | 38 | CPPFLAGS := -DWITH_SOPHYA $(CPPFLAGS) | 
|---|
|  | 39 | else | 
|---|
|  | 40 | ifeq ($(CXX), cxx) | 
|---|
|  | 41 | CXXFLAGS := -O -g -D__USE_STD_IOSTREAM | 
|---|
|  | 42 | endif | 
|---|
|  | 43 | endif | 
|---|
|  | 44 |  | 
|---|
|  | 45 |  | 
|---|
|  | 46 | CPPFLAGS    :=  $(CPPFLAGS) @cfitsincdir@ -I. -DANSI | 
|---|
|  | 47 |  | 
|---|
|  | 48 | LDLIBS=@cfitslibdir@ -lcfitsio $(LIBS) | 
|---|
|  | 49 |  | 
|---|
|  | 50 | ifeq ($(MACHEROS),IRIX64) | 
|---|
|  | 51 | ifeq ($(CXX), g++) | 
|---|
|  | 52 | LDLIBS=@cfitslibdir@ -lcfitsio -L /usr/lib32/ | 
|---|
|  | 53 | endif | 
|---|
|  | 54 | ifeq ($(CXX), CC) | 
|---|
|  | 55 | CXXFLAGS = -LANG:std -woff 1171,1174,1552 -O -OPT:Olimit=0 | 
|---|
|  | 56 | CFLAGS  =  -O -OPT:Olimit=0 | 
|---|
|  | 57 | endif | 
|---|
|  | 58 | endif | 
|---|
|  | 59 |  | 
|---|
|  | 60 | ifeq ($(CXX), g++) | 
|---|
|  | 61 | CC = gcc | 
|---|
|  | 62 | endif | 
|---|
|  | 63 |  | 
|---|
|  | 64 | default: | 
|---|
|  | 65 | echo "no program specified" | 
|---|
|  | 66 |  | 
|---|
|  | 67 | clean: | 
|---|
|  | 68 | rm -f *.o | 
|---|
|  | 69 | rm -rf rii_files ii_files cxxrep cxx_repository | 
|---|
| [1477] | 70 | for d in kernel processors sophya; do \ | 
|---|
|  | 71 | if [ -d $d ]; then \ | 
|---|
| [1480] | 72 | cd $d; $(MAKE) clean; \ | 
|---|
| [1477] | 73 | fi  \ | 
|---|
|  | 74 | done | 
|---|
| [1365] | 75 |  | 
|---|
| [1477] | 76 | %: $(srcdir)/pipes/%.cc build_kernel build_processors build_sophya | 
|---|
|  | 77 | cd pipes; $(MAKE) $@ | 
|---|
| [1365] | 78 |  | 
|---|
| [1477] | 79 | build_kernel: | 
|---|
|  | 80 | cd kernel; $(MAKE) | 
|---|
| [1365] | 81 |  | 
|---|
| [1477] | 82 | build_processors: | 
|---|
|  | 83 | cd processors; $(MAKE) | 
|---|
| [1365] | 84 |  | 
|---|
| [1477] | 85 | build_sophya: | 
|---|
|  | 86 | ifeq ($(USE_SOPHYA),1) | 
|---|
| [1480] | 87 | if [ -d sophya ]; then \ | 
|---|
|  | 88 | cd sophya; $(MAKE); \ | 
|---|
|  | 89 | fi | 
|---|
| [1477] | 90 | else | 
|---|
|  | 91 | echo "no sophya" | 
|---|
|  | 92 | endif | 
|---|
| [1365] | 93 |  | 
|---|
|  | 94 |  | 
|---|
|  | 95 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.