| 
            Last change
 on this file since 3425 was             2735, checked in by cmv, 20 years ago           | 
        
        
          | 
             
memorisation makefile old-fashion Mgr  cmv 19/05/05 
 
           | 
        
        
          | 
            File size:
            529 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | MODULEDECCXXFLAGS := -msg_quiet 
 | 
|---|
| 2 | include $(SOPHYABASEREP)/Include/MakefileUser.h
 | 
|---|
| 3 | LIBS = -L$(SLB) -lPI -lextsophya -lsophya -lm 
 | 
|---|
| 4 | 
 | 
|---|
| 5 | ifeq ($(MACHEROS),OSF1)
 | 
|---|
| 6 | LIBS := $(LIBS) -lfor
 | 
|---|
| 7 | endif
 | 
|---|
| 8 | ifeq ($(MACHEROS),Linux)
 | 
|---|
| 9 | LIBS := $(LIBS) -ldl -lg2c
 | 
|---|
| 10 | endif
 | 
|---|
| 11 | 
 | 
|---|
| 12 | %.so:$(OBJ)%.o 
 | 
|---|
| 13 | %:%.cc
 | 
|---|
| 14 | %:%.o
 | 
|---|
| 15 | %.o:%.cc
 | 
|---|
| 16 | %.o:%.c
 | 
|---|
| 17 | %:%.c
 | 
|---|
| 18 | 
 | 
|---|
| 19 | .PRECIOUS: %.so  
 | 
|---|
| 20 | 
 | 
|---|
| 21 | 
 | 
|---|
| 22 | %:%.so
 | 
|---|
| 23 |         echo $@ " made (.so) "
 | 
|---|
| 24 | 
 | 
|---|
| 25 | %.so:$(OBJ)%.o
 | 
|---|
| 26 |         $(LINK.cc) -shared -o $@ $< $(LIBS)
 | 
|---|
| 27 | 
 | 
|---|
| 28 | $(OBJ)%.o:%.cc 
 | 
|---|
| 29 |         $(COMPILE.cc)  -o $@ $<
 | 
|---|
| 30 | 
 | 
|---|
| 31 | $(OBJ)%.o:%.c
 | 
|---|
| 32 |         $(COMPILE.c) -c $(CFLAGS)   $(USERFLAGS) -o $@ $< 
 | 
|---|
| 33 | 
 | 
|---|
| 34 | dump :
 | 
|---|
| 35 |         echo $(LIBS)
 | 
|---|
| 36 | 
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.