| Last change
 on this file since 3369 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 |  | 
|---|
| 13 | include ../SMakefile.h | 
|---|
| 14 |  | 
|---|
| 15 | ifdef NOSHLIB | 
|---|
| 16 |  | 
|---|
| 17 | LIBS = -L$(MYLIB) -lKernel -lProcessors -lProcWSophya \ | 
|---|
| 18 | -L$(LIB) -lFitsIOServer -lSamba -lSkyMap -lSkyT -lNTools \ | 
|---|
| 19 | -lHiStats -lTArray -lBaseTools -lSysTools -lm | 
|---|
| 20 |  | 
|---|
| 21 | ifeq ($(CXX),cxx) | 
|---|
| 22 | # librairie des instances de templates cxx | 
|---|
| 23 | LIBS := $(LIBS) -lrt | 
|---|
| 24 | endif | 
|---|
| 25 |  | 
|---|
| 26 | else | 
|---|
| 27 |  | 
|---|
| 28 | LIBF =  $(MYSLB)libpipe.so  $(SLB)libextsophya.so $(SLB)libsophya.so | 
|---|
| 29 | LIBS = -L$(MYSLB) -lpipe -L$(SLB) -lextsophya -lsophya -lpthread -lm | 
|---|
| 30 | ifeq ($(MACHEROS),OSF1) | 
|---|
| 31 | LIBS := $(LIBS) -lfor | 
|---|
| 32 | endif | 
|---|
| 33 | ifeq ($(MACHEROS),Linux) | 
|---|
| 34 | LIBS := $(LIBS) -ldl | 
|---|
| 35 | endif | 
|---|
| 36 |  | 
|---|
| 37 | endif | 
|---|
| 38 |  | 
|---|
| 39 | LDLIBS := $(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 |  | 
|---|
| 63 | dump : | 
|---|
| 64 | echo $(LIBS) | 
|---|
| 65 |  | 
|---|
| 66 | clean : | 
|---|
| 67 | ../cleantstpipes.csh | 
|---|
| 68 |  | 
|---|
| 69 | all :  mesovh mesovh2 tsttoi2map simtst simofftst aksj02 tstmap2toi toistat tsttoi2toi_addsp | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.