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

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

install

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