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