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 $(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
|
---|
23 | LIBS := -L$(LIB) -lPIext -lPI -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) -lPI -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 | <<<<<<< Makefile.in
|
---|
75 | cd ..; \
|
---|
76 | =======
|
---|
77 | cd ..; \
|
---|
78 | >>>>>>> 1.5
|
---|
79 | fi \
|
---|
80 | done
|
---|
81 |
|
---|
82 | %: $(srcdir)/pipes/%.cc build_kernel build_processors build_sophya
|
---|
83 | cd pipes; $(MAKE) $@
|
---|
84 |
|
---|
85 | build_kernel:
|
---|
86 | cd kernel; $(MAKE)
|
---|
87 |
|
---|
88 | build_processors:
|
---|
89 | cd processors; $(MAKE)
|
---|
90 |
|
---|
91 | build_sophya:
|
---|
92 | ifeq ($(USE_SOPHYA),1)
|
---|
93 | if [ -d sophya ]; then \
|
---|
94 | cd sophya; $(MAKE); \
|
---|
95 | fi
|
---|
96 | else
|
---|
97 | echo "no sophya"
|
---|
98 | endif
|
---|
99 |
|
---|
100 |
|
---|
101 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.