| 
            Last change
 on this file since 3191 was             2735, checked in by cmv, 20 years ago           | 
        
        
          | 
             
memorisation makefile old-fashion Mgr  cmv 19/05/05 
 
           | 
        
        
          
            
              - 
Property                 svn:executable
 set to                 
*
               
             
           | 
        
        
          | 
            File size:
            626 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [2735] | 1 | include $(SOPHYABASEREP)/Include/MakefileUser.h
 | 
|---|
 | 2 | 
 | 
|---|
 | 3 | all: libxastro.a
 | 
|---|
 | 4 | 
 | 
|---|
 | 5 | clean:
 | 
|---|
 | 6 |         rm -f libxastro.a
 | 
|---|
 | 7 |         rm -f *.o testxephem
 | 
|---|
 | 8 | 
 | 
|---|
 | 9 | install:
 | 
|---|
 | 10 |         if [ ! -d $(EXTINCPATH)/XAstro ] ; then mkdir $(EXTINCPATH)/XAstro ; fi
 | 
|---|
 | 11 |         rm -f $(EXTINCPATH)/XAstro/astro.h
 | 
|---|
 | 12 |         rm -f $(EXTINCPATH)/XAstro/bdl.h
 | 
|---|
 | 13 |         rm -f $(EXTINCPATH)/XAstro/P_.h
 | 
|---|
 | 14 |         rm -f $(EXTLIBPATH)/libxastro.a
 | 
|---|
 | 15 |         cp *.h $(EXTINCPATH)/XAstro/.
 | 
|---|
 | 16 |         cp libxastro.a $(EXTLIBPATH)/.
 | 
|---|
 | 17 | 
 | 
|---|
 | 18 | OBJASTRO := $(addsuffix .o,$(basename $(wildcard *.c)))
 | 
|---|
 | 19 | 
 | 
|---|
 | 20 | libxastro.a : $(OBJASTRO)
 | 
|---|
 | 21 |         $(AR) $(ARFLAGS) $@ $(OBJASTRO)
 | 
|---|
 | 22 | 
 | 
|---|
 | 23 | %.o: %.c
 | 
|---|
 | 24 |         $(COMPILE.c) -o $@ $<
 | 
|---|
 | 25 | 
 | 
|---|
 | 26 | testxephem: testxephem.o
 | 
|---|
 | 27 |         $(LINK.c) -o $@ $^ -L$(EXTLIBPATH) -lxastro -lc -lm
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.