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

Last change on this file since 1982 was 1980, checked in by ansari, 23 years ago

fichiers SMakefile(s) et script (smkmxxx) pour la construction d'ArchTOIPipe avec SOPHYA - base sur les scripts SOPHYA - Reza 03/05/2002

File size: 1.5 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# *** Warning: GNU make should be used ***
10# ###############################################################
11
12include ../SMakefile.h
13include ${DPCBASEREP}/Include/Makefile.slb
14
15
16ifdef NOSHLIB
17
18LIBS = -L$(MYLIB) -lKernel -lProcessors -lProcWSophya \
19 -L$(LIB) -lFitsIOServer -lSamba -lSkyMap -lSkyT -lNTools \
20 -lHiStats -lTArray -lBaseTools -lSysTools -lm
21
22ifeq ($(CXX),cxx)
23# librairie des instances de templates cxx
24LIBS := $(LIBS) -lrt
25endif
26
27else
28
29LIBF = $(MYSLB)libpipe.so $(SLB)libextsophya.so $(SLB)libsophya.so
30LIBS = -L$(MYSLB) -lpipe -L$(SLB) -lextsophya -lsophya -lpthread -lm
31ifeq ($(MACHEROS),OSF1)
32LIBS := $(LIBS) -lfor
33endif
34ifeq ($(MACHEROS),Linux)
35LIBS := $(LIBS) -ldl -lf2c
36endif
37
38endif
39
40LDLIBS := $(LIBS) $(LDLIBS)
41
42%:%.cc
43%:%.o
44%.o:%.cc
45%.o:%.c
46%:%.c
47
48.PRECIOUS: $(EXE)% $(OBJ)%.o
49
50%:$(EXE)%
51 echo $@ " done"
52
53$(EXE)%:$(OBJ)%.o
54 $(LINK.cc) -o $@ $< $(LIBS)
55
56$(OBJ)%.o:%.cc
57 $(COMPILE.cc) $(USERFLAGS) -o $@ $<
58
59$(EXE)%:$(OBJ)%.cc
60 $(LINK.cc) $(USERFLAGS) -o $@ $< $(LIBS)
61
62$(EXE)%:$(OBJ)%.c
63 $(LINK.c) $(USERFLAGS) -o $@ $< $(LIBS)
64
65$(OBJ)%.o:%.c
66 $(COMPILE.c) -c $(CFLAGS) $(USERFLAGS) -o $@ $<
67
68dump :
69 echo $(LIBS)
70
Note: See TracBrowser for help on using the repository browser.