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
RevLine 
[1365]1srcdir = @srcdir@
2#VPATH = @srcdir@
3INSTALL = @INSTALL@
4prefix = @prefix@
5exec_prefix = @exec_prefix@
6bindir = @bindir@
7CXX=@CXX@
[1705]8AR=@AR@
[1365]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
[1685]23 LIBS := -L$(LIB) -lPIext -lPI -lSysTools -lNTools -lBlitz -lm
[1365]24 ifeq ($(CXX),cxx)
25 # librairie des instances de templates cxx
26 LIBS := $(LIBS) -lrt
27 endif
28 else
29 LIBF = $(SLB)libsophya.so
[1685]30 LIBS := -L$(SLB) -lPI -lextsophya -lsophya -lm
[1365]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
[1477]71 for d in kernel processors sophya; do \
[1685]72 if [ -d $$d ]; then \
73 cd $$d; $(MAKE) clean; \
[1705]74<<<<<<< Makefile.in
75 cd ..; \
76=======
[1702]77 cd ..; \
[1705]78>>>>>>> 1.5
[1477]79 fi \
80 done
[1365]81
[1477]82%: $(srcdir)/pipes/%.cc build_kernel build_processors build_sophya
83 cd pipes; $(MAKE) $@
[1365]84
[1477]85build_kernel:
86 cd kernel; $(MAKE)
[1365]87
[1477]88build_processors:
89 cd processors; $(MAKE)
[1365]90
[1477]91build_sophya:
92ifeq ($(USE_SOPHYA),1)
[1480]93 if [ -d sophya ]; then \
94 cd sophya; $(MAKE); \
95 fi
[1477]96else
97 echo "no sophya"
98endif
[1365]99
100
101
Note: See TracBrowser for help on using the repository browser.