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
RevLine 
[1365]1srcdir = @srcdir@
2#VPATH = @srcdir@
3INSTALL = @INSTALL@
4prefix = @prefix@
5exec_prefix = @exec_prefix@
6bindir = @bindir@
[1745]7libdir = @libdir@
[1365]8CXX=@CXX@
[1705]9AR=@AR@
[1732]10LIBS=@LIBS@
[1365]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)
[1730]21 include $(DPCBASEREP)/Include/MakefileUser.h
[1365]22
23 ifdef NOSHLIB
[1730]24 LIBF = $(LIB)libSysTools.a $(LIB)libNTools.a $(LIB)libBlitz.a $(LIB)libFitsIOServer.a
[1732]25 LIBS := -L$(LIB) -lSysTools -lNTools -lBlitz $(LIBS)
[1365]26 ifeq ($(CXX),cxx)
27 # librairie des instances de templates cxx
28 LIBS := $(LIBS) -lrt
29 endif
30 else
31 LIBF = $(SLB)libsophya.so
[1732]32 LIBS := -L$(SLB) -lextsophya -lsophya $(LIBS)
[1365]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
[1745]64default: build_kernel build_processors build_sophya
65 echo "pipe libs built"
[1365]66
[1745]67install: default
68 mkdir -p $(libdir)
69 mkdir -p $(prefix)/include
70 $(INSTALL) kernel/libatkern.a $(libdir)/
71 $(INSTALL) processors/libatproc.a $(libdir)/
[1749]72 for f in $(srcdir)/kernel/*.h $(srcdir)/processors/*.h $(srcdir)/*.h conf.h; do \
[1747]73 $(INSTALL) $$f $(prefix)/include; \
74 done
[1745]75 if [ -f sophya/libatsop.a ]; then \
76 $(INSTALL) sophya/libatsop.a $(libdir)/; \
[1747]77 for f in $(srcdir)/sophya/*.h; do \
78 $(INSTALL) $$f $(prefix)/include; \
79 done \
[1745]80 fi
81
[1365]82clean:
83 rm -f *.o
84 rm -rf rii_files ii_files cxxrep cxx_repository
[1477]85 for d in kernel processors sophya; do \
[1685]86 if [ -d $$d ]; then \
87 cd $$d; $(MAKE) clean; \
[1702]88 cd ..; \
[1477]89 fi \
90 done
[1365]91
[1477]92%: $(srcdir)/pipes/%.cc build_kernel build_processors build_sophya
93 cd pipes; $(MAKE) $@
[1365]94
[1477]95build_kernel:
96 cd kernel; $(MAKE)
[1365]97
[1477]98build_processors:
99 cd processors; $(MAKE)
[1365]100
[1477]101build_sophya:
102ifeq ($(USE_SOPHYA),1)
[1480]103 if [ -d sophya ]; then \
104 cd sophya; $(MAKE); \
105 fi
[1477]106else
107 echo "no sophya"
108endif
[1365]109
110
111
Note: See TracBrowser for help on using the repository browser.