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

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

nettoyage pour portabilite

File size: 1.7 KB
Line 
1srcdir = @srcdir@
2#VPATH = @srcdir@
3INSTALL = @INSTALL@
4prefix = @prefix@
5exec_prefix = @exec_prefix@
6bindir = @bindir@
7CXX=@CXX@
8AR=@AR@
9LIBS=@LIBS@
10CXXFLAGS=-O -g
11CFLAGS=-O -g
12
13USE_SOPHYA=@use_sophya@
14
15MACHEROS := $(shell echo `uname`)
16MACHDIR := $(MACHEROS)-$(CXX)
17
18
19ifeq ($(USE_SOPHYA),1)
20 include $(DPCBASEREP)/Include/MakefileUser.h
21
22 ifdef NOSHLIB
23 LIBF = $(LIB)libSysTools.a $(LIB)libNTools.a $(LIB)libBlitz.a $(LIB)libFitsIOServer.a
24 LIBS := -L$(LIB) -lSysTools -lNTools -lBlitz $(LIBS)
25 ifeq ($(CXX),cxx)
26 # librairie des instances de templates cxx
27 LIBS := $(LIBS) -lrt
28 endif
29 else
30 LIBF = $(SLB)libsophya.so
31 LIBS := -L$(SLB) -lextsophya -lsophya $(LIBS)
32 ifeq ($(MACHEROS),OSF1)
33 LIBS := $(LIBS) -lfor
34 endif
35 endif
36
37 CPPFLAGS := -DWITH_SOPHYA $(CPPFLAGS)
38else
39 ifeq ($(CXX), cxx)
40 CXXFLAGS := -O -g -D__USE_STD_IOSTREAM
41 endif
42endif
43
44
45CPPFLAGS := $(CPPFLAGS) @cfitsincdir@ -I. -DANSI
46
47LDLIBS=@cfitslibdir@ -lcfitsio $(LIBS)
48
49ifeq ($(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
57endif
58
59ifeq ($(CXX), g++)
60 CC = gcc
61endif
62
63default:
64 echo "no program specified"
65
66clean:
67 rm -f *.o
68 rm -rf rii_files ii_files cxxrep cxx_repository
69 for d in kernel processors sophya; do \
70 if [ -d $$d ]; then \
71 cd $$d; $(MAKE) clean; \
72 cd ..; \
73 fi \
74 done
75
76%: $(srcdir)/pipes/%.cc build_kernel build_processors build_sophya
77 cd pipes; $(MAKE) $@
78
79build_kernel:
80 cd kernel; $(MAKE)
81
82build_processors:
83 cd processors; $(MAKE)
84
85build_sophya:
86ifeq ($(USE_SOPHYA),1)
87 if [ -d sophya ]; then \
88 cd sophya; $(MAKE); \
89 fi
90else
91 echo "no sophya"
92endif
93
94
95
Note: See TracBrowser for help on using the repository browser.