| Line |  | 
|---|
| 1 | srcdir = @srcdir@ | 
|---|
| 2 | #VPATH = @srcdir@ | 
|---|
| 3 | INSTALL = @INSTALL@ | 
|---|
| 4 | prefix = @prefix@ | 
|---|
| 5 | exec_prefix = @exec_prefix@ | 
|---|
| 6 | bindir = @bindir@ | 
|---|
| 7 | CXX=@CXX@ | 
|---|
| 8 | AR=@AR@ | 
|---|
| 9 | CXXFLAGS=-O -g | 
|---|
| 10 | CFLAGS=-O -g | 
|---|
| 11 |  | 
|---|
| 12 | USE_SOPHYA=@use_sophya@ | 
|---|
| 13 |  | 
|---|
| 14 | MACHEROS := $(shell echo `uname`) | 
|---|
| 15 | MACHDIR := $(MACHEROS)-$(CXX) | 
|---|
| 16 |  | 
|---|
| 17 |  | 
|---|
| 18 | ifeq ($(USE_SOPHYA),1) | 
|---|
| 19 | include $(DPCBASEREP)/Include/MakefileUser.h | 
|---|
| 20 |  | 
|---|
| 21 | ifdef NOSHLIB | 
|---|
| 22 | LIBF =  $(LIB)libSysTools.a $(LIB)libNTools.a $(LIB)libBlitz.a $(LIB)libFitsIOServer.a | 
|---|
| 23 | LIBS := -L$(LIB)  -lSysTools -lNTools -lBlitz  -lm | 
|---|
| 24 | ifeq ($(CXX),cxx) | 
|---|
| 25 | # librairie des instances de templates cxx | 
|---|
| 26 | LIBS := $(LIBS) -lrt | 
|---|
| 27 | endif | 
|---|
| 28 | else | 
|---|
| 29 | LIBF =  $(SLB)libsophya.so | 
|---|
| 30 | LIBS := -L$(SLB)  -lextsophya -lsophya -lm | 
|---|
| 31 | ifeq ($(MACHEROS),OSF1) | 
|---|
| 32 | LIBS := $(LIBS) -lfor | 
|---|
| 33 | endif | 
|---|
| 34 | ifeq ($(MACHEROS),Linux) | 
|---|
| 35 | #   LIBS := $(LIBS) -ldl -lf2c | 
|---|
| 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) | 
|---|
| 56 | CXXFLAGS = -LANG:std -woff 1171,1174,1552 -O -OPT:Olimit=0 | 
|---|
| 57 | CFLAGS  =  -O -OPT:Olimit=0 | 
|---|
| 58 | endif | 
|---|
| 59 | endif | 
|---|
| 60 |  | 
|---|
| 61 | ifeq ($(CXX), g++) | 
|---|
| 62 | CC = gcc | 
|---|
| 63 | endif | 
|---|
| 64 |  | 
|---|
| 65 | default: | 
|---|
| 66 | echo "no program specified" | 
|---|
| 67 |  | 
|---|
| 68 | clean: | 
|---|
| 69 | rm -f *.o | 
|---|
| 70 | rm -rf rii_files ii_files cxxrep cxx_repository | 
|---|
| 71 | for d in kernel processors sophya; do \ | 
|---|
| 72 | if [ -d $$d ]; then \ | 
|---|
| 73 | cd $$d; $(MAKE) clean; \ | 
|---|
| 74 | cd ..; \ | 
|---|
| 75 | fi  \ | 
|---|
| 76 | done | 
|---|
| 77 |  | 
|---|
| 78 | %: $(srcdir)/pipes/%.cc build_kernel build_processors build_sophya | 
|---|
| 79 | cd pipes; $(MAKE) $@ | 
|---|
| 80 |  | 
|---|
| 81 | build_kernel: | 
|---|
| 82 | cd kernel; $(MAKE) | 
|---|
| 83 |  | 
|---|
| 84 | build_processors: | 
|---|
| 85 | cd processors; $(MAKE) | 
|---|
| 86 |  | 
|---|
| 87 | build_sophya: | 
|---|
| 88 | ifeq ($(USE_SOPHYA),1) | 
|---|
| 89 | if [ -d sophya ]; then \ | 
|---|
| 90 | cd sophya; $(MAKE); \ | 
|---|
| 91 | fi | 
|---|
| 92 | else | 
|---|
| 93 | echo "no sophya" | 
|---|
| 94 | endif | 
|---|
| 95 |  | 
|---|
| 96 |  | 
|---|
| 97 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.