source: Sophya/trunk/ArchTOIPipe/TestPipes/Makefile.in@ 1706

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

prefer standard ar to any other

File size: 2.4 KB
RevLine 
[1477]1srcdir = @srcdir@
2#VPATH = @srcdir@
3INSTALL = @INSTALL@
4prefix = @prefix@
5exec_prefix = @exec_prefix@
6bindir = @bindir@
7CXX=@CXX@
[1706]8AR=@AR@
[1477]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
[1477]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
[1477]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)
[1685]40 ifeq ($(CXX), cxx)
41 LIBS := $(LIBS) -pthread
42 endif
[1477]43else
44 ifeq ($(CXX), cxx)
45 CXXFLAGS := -O -g -D__USE_STD_IOSTREAM
[1663]46 LIBS := $(LIBS) -pthread
[1477]47 endif
48endif
49
50
51CPPFLAGS := $(CPPFLAGS) @cfitsincdir@ -I. -I.. -DANSI -I$(srcdir)/../kernel -I$(srcdir)/../processors -I$(srcdir)/../sophya -I$(srcdir)/..
52
[1480]53ifeq ($(USE_SOPHYA),1)
54 LDLIBS=-L.. -latsop -latkern -latproc @cfitslibdir@ -lcfitsio $(LIBS)
55 LIBDEPS=../libatsop.a ../libatkern.a ../libatproc.a
56else
57 LDLIBS=-L.. -latkern -latproc @cfitslibdir@ -lcfitsio $(LIBS)
58 LIBDEPS=../libatkern.a ../libatproc.a
59endif
[1477]60
61ifeq ($(MACHEROS),IRIX64)
62 ifeq ($(CXX), g++)
63 LDLIBS=@cfitslibdir@ -lcfitsio -L /usr/lib32/
64 endif
65 ifeq ($(CXX), CC)
66 CXXFLAGS = -LANG:std -woff 1171,1174,1552 -O -OPT:Olimit=0
67 CFLAGS = -O -OPT:Olimit=0
68 endif
69endif
70
71ifeq ($(CXX), g++)
72 CC = gcc
73endif
74
[1480]75ifeq ($(CXX), cxx)
76 CXXFLAGS := $(CXXFLAGS) -ptr ../cxx_repository
77endif
78
79
[1477]80default:
81 echo "no program specified"
82
83clean:
84 rm -f *.o
85 rm -rf rii_files ii_files cxxrep cxx_repository
86
[1480]87%: %.o $(FILES) $(LIBDEPS)
[1663]88 $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ -lm
[1477]89
90%.o:$(srcdir)/%.cc
[1663]91 $(COMPILE.cc) -o $@ $<
[1477]92
93%.o:$(srcdir)/%.c
[1663]94 $(COMPILE.c) -o $@ $<
[1477]95
96
97
98%.d: $(srcdir)/%.cc
[1692]99 $(SHELL) -ec '@gcc@ -MM $(CPPFLAGS) -I. $< \
[1477]100 | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
101 [ -s $@ ] || rm -f $@'
102
103%.d: $(srcdir)/%.c
[1692]104 $(SHELL) -ec '@gcc@ -MM $(CPPFLAGS) -I. $< \
[1477]105 | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
106 [ -s $@ ] || rm -f $@'
107
108include $(patsubst %.c,%.d,$(SRCFILES:.cc=.d))
109
Note: See TracBrowser for help on using the repository browser.