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
|
Rev | Line | |
---|
[1980] | 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 |
|
---|
| 12 | include ../SMakefile.h
|
---|
| 13 | include ${DPCBASEREP}/Include/Makefile.slb
|
---|
| 14 |
|
---|
| 15 |
|
---|
| 16 | ifdef NOSHLIB
|
---|
| 17 |
|
---|
| 18 | LIBS = -L$(MYLIB) -lKernel -lProcessors -lProcWSophya \
|
---|
| 19 | -L$(LIB) -lFitsIOServer -lSamba -lSkyMap -lSkyT -lNTools \
|
---|
| 20 | -lHiStats -lTArray -lBaseTools -lSysTools -lm
|
---|
| 21 |
|
---|
| 22 | ifeq ($(CXX),cxx)
|
---|
| 23 | # librairie des instances de templates cxx
|
---|
| 24 | LIBS := $(LIBS) -lrt
|
---|
| 25 | endif
|
---|
| 26 |
|
---|
| 27 | else
|
---|
| 28 |
|
---|
| 29 | LIBF = $(MYSLB)libpipe.so $(SLB)libextsophya.so $(SLB)libsophya.so
|
---|
| 30 | LIBS = -L$(MYSLB) -lpipe -L$(SLB) -lextsophya -lsophya -lpthread -lm
|
---|
| 31 | ifeq ($(MACHEROS),OSF1)
|
---|
| 32 | LIBS := $(LIBS) -lfor
|
---|
| 33 | endif
|
---|
| 34 | ifeq ($(MACHEROS),Linux)
|
---|
| 35 | LIBS := $(LIBS) -ldl -lf2c
|
---|
| 36 | endif
|
---|
| 37 |
|
---|
| 38 | endif
|
---|
| 39 |
|
---|
| 40 | LDLIBS := $(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 |
|
---|
| 68 | dump :
|
---|
| 69 | echo $(LIBS)
|
---|
| 70 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.