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

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

join & merge

File size: 2.3 KB
RevLine 
[1477]1srcdir = @srcdir@
2#VPATH = @srcdir@
3INSTALL = @INSTALL@
4prefix = @prefix@
5exec_prefix = @exec_prefix@
6bindir = @bindir@
7CXX=@CXX@
8CXXFLAGS=-O -g
9CFLAGS=-O -g
10
11USE_SOPHYA=@use_sophya@
12
13MACHEROS := $(shell echo `uname`)
14MACHDIR := $(MACHEROS)-$(CXX)
15
16
17ifeq ($(USE_SOPHYA),1)
18 include $(DPCDEVREP)/Include/Makefile.h
19
20 ifdef NOSHLIB
21 LIBF = $(LIB)libSysTools.a $(LIB)libNTools.a $(LIB)libBlitz.a $(LIB)libFitsIOServer.a $(LIB)libPI.a $(LIB)libPIext.a
22 LIBS = -L$(LIB) -lPIext -lPI -lSysTools -lNTools -lBlitz -lm
23 ifeq ($(CXX),cxx)
24 # librairie des instances de templates cxx
25 LIBS := $(LIBS) -lrt
26 endif
27 else
28 LIBF = $(SLB)libsophya.so
29 LIBS = -L$(SLB) -lPI -lextsophya -lsophya -lm
30 ifeq ($(MACHEROS),OSF1)
31 LIBS := $(LIBS) -lfor
32 endif
33 ifeq ($(MACHEROS),Linux)
34 LIBS := $(LIBS) -ldl -lf2c
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. -I.. -DANSI -I$(srcdir)/../kernel -I$(srcdir)/../processors -I$(srcdir)/../sophya -I$(srcdir)/..
47
[1480]48ifeq ($(USE_SOPHYA),1)
49 LDLIBS=-L.. -latsop -latkern -latproc @cfitslibdir@ -lcfitsio $(LIBS)
50 LIBDEPS=../libatsop.a ../libatkern.a ../libatproc.a
51else
52 LDLIBS=-L.. -latkern -latproc @cfitslibdir@ -lcfitsio $(LIBS)
53 LIBDEPS=../libatkern.a ../libatproc.a
54endif
[1477]55
56ifeq ($(MACHEROS),IRIX64)
57 ifeq ($(CXX), g++)
58 LDLIBS=@cfitslibdir@ -lcfitsio -L /usr/lib32/
59 endif
60 ifeq ($(CXX), CC)
61 CXXFLAGS = -LANG:std -woff 1171,1174,1552 -O -OPT:Olimit=0
62 CFLAGS = -O -OPT:Olimit=0
63 endif
64endif
65
66ifeq ($(CXX), g++)
67 CC = gcc
68endif
69
[1480]70ifeq ($(CXX), cxx)
71 CXXFLAGS := $(CXXFLAGS) -ptr ../cxx_repository
72endif
73
74
[1477]75default:
76 echo "no program specified"
77
78clean:
79 rm -f *.o
80 rm -rf rii_files ii_files cxxrep cxx_repository
81
[1480]82%: %.o $(FILES) $(LIBDEPS)
[1477]83 $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -pthread -o $@ -lm
84
85%.o:$(srcdir)/%.cc
86 $(COMPILE.cc) -pthread -o $@ $<
87
88%.o:$(srcdir)/%.c
89 $(COMPILE.c) -pthread -o $@ $<
90
91
92
93%.d: $(srcdir)/%.cc
94 $(SHELL) -ec 'gcc -MM $(CPPFLAGS) -I. $< \
95 | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
96 [ -s $@ ] || rm -f $@'
97
98%.d: $(srcdir)/%.c
99 $(SHELL) -ec 'gcc -MM $(CPPFLAGS) -I. $< \
100 | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
101 [ -s $@ ] || rm -f $@'
102
103include $(patsubst %.c,%.d,$(SRCFILES:.cc=.d))
104
Note: See TracBrowser for help on using the repository browser.