| 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@ | 
|---|
| [1705] | 8 | AR=@AR@ | 
|---|
| [1365] | 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 $(DPCDEVREP)/Include/Makefile.h | 
|---|
|  | 20 |  | 
|---|
|  | 21 | ifdef NOSHLIB | 
|---|
|  | 22 | LIBF =  $(LIB)libSysTools.a $(LIB)libNTools.a $(LIB)libBlitz.a $(LIB)libFitsIOServer.a $(LIB)libPI.a $(LIB)libPIext.a | 
|---|
| [1685] | 23 | LIBS := -L$(LIB) -lPIext -lPI -lSysTools -lNTools -lBlitz  -lm | 
|---|
| [1365] | 24 | ifeq ($(CXX),cxx) | 
|---|
|  | 25 | # librairie des instances de templates cxx | 
|---|
|  | 26 | LIBS := $(LIBS) -lrt | 
|---|
|  | 27 | endif | 
|---|
|  | 28 | else | 
|---|
|  | 29 | LIBF =  $(SLB)libsophya.so | 
|---|
| [1685] | 30 | LIBS := -L$(SLB) -lPI -lextsophya -lsophya -lm | 
|---|
| [1365] | 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 | 
|---|
| [1477] | 71 | for d in kernel processors sophya; do \ | 
|---|
| [1685] | 72 | if [ -d $$d ]; then \ | 
|---|
|  | 73 | cd $$d; $(MAKE) clean; \ | 
|---|
| [1702] | 74 | cd ..; \ | 
|---|
| [1477] | 75 | fi  \ | 
|---|
|  | 76 | done | 
|---|
| [1365] | 77 |  | 
|---|
| [1477] | 78 | %: $(srcdir)/pipes/%.cc build_kernel build_processors build_sophya | 
|---|
|  | 79 | cd pipes; $(MAKE) $@ | 
|---|
| [1365] | 80 |  | 
|---|
| [1477] | 81 | build_kernel: | 
|---|
|  | 82 | cd kernel; $(MAKE) | 
|---|
| [1365] | 83 |  | 
|---|
| [1477] | 84 | build_processors: | 
|---|
|  | 85 | cd processors; $(MAKE) | 
|---|
| [1365] | 86 |  | 
|---|
| [1477] | 87 | build_sophya: | 
|---|
|  | 88 | ifeq ($(USE_SOPHYA),1) | 
|---|
| [1480] | 89 | if [ -d sophya ]; then \ | 
|---|
|  | 90 | cd sophya; $(MAKE); \ | 
|---|
|  | 91 | fi | 
|---|
| [1477] | 92 | else | 
|---|
|  | 93 | echo "no sophya" | 
|---|
|  | 94 | endif | 
|---|
| [1365] | 95 |  | 
|---|
|  | 96 |  | 
|---|
|  | 97 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.