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

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

nettoyage pour portabilite

File size: 1.7 KB
RevLine 
[1365]1srcdir = @srcdir@
2#VPATH = @srcdir@
3INSTALL = @INSTALL@
4prefix = @prefix@
5exec_prefix = @exec_prefix@
6bindir = @bindir@
7CXX=@CXX@
[1705]8AR=@AR@
[1732]9LIBS=@LIBS@
[1365]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)
[1730]20 include $(DPCBASEREP)/Include/MakefileUser.h
[1365]21
22 ifdef NOSHLIB
[1730]23 LIBF = $(LIB)libSysTools.a $(LIB)libNTools.a $(LIB)libBlitz.a $(LIB)libFitsIOServer.a
[1732]24 LIBS := -L$(LIB) -lSysTools -lNTools -lBlitz $(LIBS)
[1365]25 ifeq ($(CXX),cxx)
26 # librairie des instances de templates cxx
27 LIBS := $(LIBS) -lrt
28 endif
29 else
30 LIBF = $(SLB)libsophya.so
[1732]31 LIBS := -L$(SLB) -lextsophya -lsophya $(LIBS)
[1365]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
[1477]69 for d in kernel processors sophya; do \
[1685]70 if [ -d $$d ]; then \
71 cd $$d; $(MAKE) clean; \
[1702]72 cd ..; \
[1477]73 fi \
74 done
[1365]75
[1477]76%: $(srcdir)/pipes/%.cc build_kernel build_processors build_sophya
77 cd pipes; $(MAKE) $@
[1365]78
[1477]79build_kernel:
80 cd kernel; $(MAKE)
[1365]81
[1477]82build_processors:
83 cd processors; $(MAKE)
[1365]84
[1477]85build_sophya:
86ifeq ($(USE_SOPHYA),1)
[1480]87 if [ -d sophya ]; then \
88 cd sophya; $(MAKE); \
89 fi
[1477]90else
91 echo "no sophya"
92endif
[1365]93
94
95
Note: See TracBrowser for help on using the repository browser.