Changeset 2743 in Sophya for trunk/SophyaExt/XephemAstroLib


Ignore:
Timestamp:
May 20, 2005, 9:57:11 AM (20 years ago)
Author:
cmv
Message:

suite nouvelle structure cmv 20/05/05

Location:
trunk/SophyaExt/XephemAstroLib
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/XephemAstroLib/Makefile

    r2551 r2743  
    1 include $(SOPHYABASEREP)/Include/MakefileUser.h
     1include ../BuildMgr/sophyamake.inc
    22
    33all: libxastro.a
    44
    55clean:
    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)/.
     6        rm -f libxastro.a *.o testxephem
    177
    188OBJASTRO := $(addsuffix .o,$(basename $(wildcard *.c)))
    199
    2010libxastro.a : $(OBJASTRO)
    21         $(AR) $(ARFLAGS) $@ $(OBJASTRO)
     11        $(AR) $(ARFLAGS) $@ $?
    2212
    2313%.o: %.c
    24         $(COMPILE.c) -o $@ $<
     14        $(CCOMPILE) -o $@ $<
    2515
    2616testxephem: testxephem.o
    27         $(LINK.c) -o $@ $^ -L$(EXTLIBPATH) -lxastro -lc -lm
     17        $(CLINK) -o $@ $^ -L./ -lxastro -lc -lm
Note: See TracChangeset for help on using the changeset viewer.