source: Sophya/trunk/ArchTOIPipe/Makefile.in@ 1705

Last change on this file since 1705 was 1705, checked in by aubourg, 24 years ago

prefer standard ar to any other

File size: 1.9 KB
Line 
1srcdir = @srcdir@
2#VPATH = @srcdir@
3INSTALL = @INSTALL@
4prefix = @prefix@
5exec_prefix = @exec_prefix@
6bindir = @bindir@
7CXX=@CXX@
8AR=@AR@
9CXXFLAGS=-O -g
10CFLAGS=-O -g
11
12USE_SOPHYA=@use_sophya@
13
14MACHEROS := $(shell echo `uname`)
15MACHDIR := $(MACHEROS)-$(CXX)
16
17
18ifeq ($(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)
40else
41 ifeq ($(CXX), cxx)
42 CXXFLAGS := -O -g -D__USE_STD_IOSTREAM
43 endif
44endif
45
46
47CPPFLAGS := $(CPPFLAGS) @cfitsincdir@ -I. -DANSI
48
49LDLIBS=@cfitslibdir@ -lcfitsio $(LIBS)
50
51ifeq ($(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
59endif
60
61ifeq ($(CXX), g++)
62 CC = gcc
63endif
64
65default:
66 echo "no program specified"
67
68clean:
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
85build_kernel:
86 cd kernel; $(MAKE)
87
88build_processors:
89 cd processors; $(MAKE)
90
91build_sophya:
92ifeq ($(USE_SOPHYA),1)
93 if [ -d sophya ]; then \
94 cd sophya; $(MAKE); \
95 fi
96else
97 echo "no sophya"
98endif
99
100
101
Note: See TracBrowser for help on using the repository browser.