source: Sophya/trunk/ArchTOIPipe/TestPipes/SMakefile@ 2316

Last change on this file since 2316 was 2136, checked in by ansari, 23 years ago

Correction erreur ds SMakefile , Reza 26/7/2002

File size: 1.6 KB
Line 
1# ####################### ArchTOIPipe ###########################
2# ##### LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA #####
3# ###############################################################
4# Makefile to build test ArchTOIPipe programs with ArchTOIPipe
5# and SOPHYA libraries
6# DPCBASEREP (for SOPHYA) and ARCHPDEVREP variable should be
7# defined
8# Usage: make -f SMakefile name_of_program
9# make -f SMakefile clean
10# *** Warning: GNU make should be used ***
11# ###############################################################
12
13include ../SMakefile.h
14
15ifdef NOSHLIB
16
17LIBS = -L$(MYLIB) -lKernel -lProcessors -lProcWSophya \
18 -L$(LIB) -lFitsIOServer -lSamba -lSkyMap -lSkyT -lNTools \
19 -lHiStats -lTArray -lBaseTools -lSysTools -lm
20
21ifeq ($(CXX),cxx)
22# librairie des instances de templates cxx
23LIBS := $(LIBS) -lrt
24endif
25
26else
27
28LIBF = $(MYSLB)libpipe.so $(SLB)libextsophya.so $(SLB)libsophya.so
29LIBS = -L$(MYSLB) -lpipe -L$(SLB) -lextsophya -lsophya -lpthread -lm
30ifeq ($(MACHEROS),OSF1)
31LIBS := $(LIBS) -lfor
32endif
33ifeq ($(MACHEROS),Linux)
34LIBS := $(LIBS) -ldl
35endif
36
37endif
38
39LDLIBS := $(LIBS) $(LDLIBS)
40
41%:%.cc
42%:%.o
43%.o:%.cc
44%.o:%.c
45%:%.c
46
47.PRECIOUS: $(AEXE)% $(OBJ)%.o
48
49
50# --- Compilation and linking rules
51%:$(AEXE)%
52 echo '---' $@ build '-->' $<
53
54$(AEXE)%:$(OBJ)%.o
55 $(LINK.cc) -o $@ $< $(LIBS)
56
57$(OBJ)%.o:%.cc
58 $(COMPILE.cc) $(USERFLAGS) -o $@ $<
59
60%:%.c
61 $(LINK.c) $(USERFLAGS) -o $@ $< $(LIBS)
62
63dump :
64 echo $(LIBS)
65
66clean :
67 ../cleantstpipes.csh
68
69all : mesovh mesovh2 tsttoi2map simtst simofftst aksj02 tstmap2toi toistat tsttoi2toi_addsp
Note: See TracBrowser for help on using the repository browser.