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@
|
---|
[1732] | 9 | LIBS=@LIBS@
|
---|
[1365] | 10 | CXXFLAGS=-O -g
|
---|
| 11 | CFLAGS=-O -g
|
---|
| 12 |
|
---|
| 13 | USE_SOPHYA=@use_sophya@
|
---|
| 14 |
|
---|
| 15 | MACHEROS := $(shell echo `uname`)
|
---|
| 16 | MACHDIR := $(MACHEROS)-$(CXX)
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | ifeq ($(USE_SOPHYA),1)
|
---|
[1730] | 20 | include $(DPCBASEREP)/Include/MakefileUser.h
|
---|
[1365] | 21 |
|
---|
| 22 | ifdef NOSHLIB
|
---|
[1730] | 23 | LIBF = $(LIB)libSysTools.a $(LIB)libNTools.a $(LIB)libBlitz.a $(LIB)libFitsIOServer.a
|
---|
[1732] | 24 | LIBS := -L$(LIB) -lSysTools -lNTools -lBlitz $(LIBS)
|
---|
[1365] | 25 | ifeq ($(CXX),cxx)
|
---|
| 26 | # librairie des instances de templates cxx
|
---|
| 27 | LIBS := $(LIBS) -lrt
|
---|
| 28 | endif
|
---|
| 29 | else
|
---|
| 30 | LIBF = $(SLB)libsophya.so
|
---|
[1732] | 31 | LIBS := -L$(SLB) -lextsophya -lsophya $(LIBS)
|
---|
[1365] | 32 | ifeq ($(MACHEROS),OSF1)
|
---|
| 33 | LIBS := $(LIBS) -lfor
|
---|
| 34 | endif
|
---|
| 35 | endif
|
---|
| 36 |
|
---|
| 37 | CPPFLAGS := -DWITH_SOPHYA $(CPPFLAGS)
|
---|
| 38 | else
|
---|
| 39 | ifeq ($(CXX), cxx)
|
---|
| 40 | CXXFLAGS := -O -g -D__USE_STD_IOSTREAM
|
---|
| 41 | endif
|
---|
| 42 | endif
|
---|
| 43 |
|
---|
| 44 |
|
---|
| 45 | CPPFLAGS := $(CPPFLAGS) @cfitsincdir@ -I. -DANSI
|
---|
| 46 |
|
---|
| 47 | LDLIBS=@cfitslibdir@ -lcfitsio $(LIBS)
|
---|
| 48 |
|
---|
| 49 | ifeq ($(MACHEROS),IRIX64)
|
---|
| 50 | ifeq ($(CXX), g++)
|
---|
| 51 | LDLIBS=@cfitslibdir@ -lcfitsio -L /usr/lib32/
|
---|
| 52 | endif
|
---|
| 53 | ifeq ($(CXX), CC)
|
---|
| 54 | CXXFLAGS = -LANG:std -woff 1171,1174,1552 -O -OPT:Olimit=0
|
---|
| 55 | CFLAGS = -O -OPT:Olimit=0
|
---|
| 56 | endif
|
---|
| 57 | endif
|
---|
| 58 |
|
---|
| 59 | ifeq ($(CXX), g++)
|
---|
| 60 | CC = gcc
|
---|
| 61 | endif
|
---|
| 62 |
|
---|
| 63 | default:
|
---|
| 64 | echo "no program specified"
|
---|
| 65 |
|
---|
| 66 | clean:
|
---|
| 67 | rm -f *.o
|
---|
| 68 | rm -rf rii_files ii_files cxxrep cxx_repository
|
---|
[1477] | 69 | for d in kernel processors sophya; do \
|
---|
[1685] | 70 | if [ -d $$d ]; then \
|
---|
| 71 | cd $$d; $(MAKE) clean; \
|
---|
[1702] | 72 | cd ..; \
|
---|
[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.