source: Sophya/trunk/SophyaExt/XephemAstroLib/Makefile@ 2606

Last change on this file since 2606 was 2551, checked in by cmv, 21 years ago

nouvelle version de xephem/libastro (3.6) cmv 15/6/04

  • Property svn:executable set to *
File size: 626 bytes
RevLine 
[2437]1include $(SOPHYABASEREP)/Include/MakefileUser.h
[1457]2
3all: libxastro.a
4
5clean:
6 rm -f libxastro.a
[2395]7 rm -f *.o testxephem
[1457]8
9install:
[1461]10 if [ ! -d $(EXTINCPATH)/XAstro ] ; then mkdir $(EXTINCPATH)/XAstro ; fi
[1465]11 rm -f $(EXTINCPATH)/XAstro/astro.h
[2551]12 rm -f $(EXTINCPATH)/XAstro/bdl.h
[1465]13 rm -f $(EXTINCPATH)/XAstro/P_.h
[1457]14 rm -f $(EXTLIBPATH)/libxastro.a
[1460]15 cp *.h $(EXTINCPATH)/XAstro/.
16 cp libxastro.a $(EXTLIBPATH)/.
[1457]17
18OBJASTRO := $(addsuffix .o,$(basename $(wildcard *.c)))
19
20libxastro.a : $(OBJASTRO)
21 $(AR) $(ARFLAGS) $@ $(OBJASTRO)
22
23%.o: %.c
24 $(COMPILE.c) -o $@ $<
[2395]25
26testxephem: testxephem.o
27 $(LINK.c) -o $@ $^ -L$(EXTLIBPATH) -lxastro -lc -lm
Note: See TracBrowser for help on using the repository browser.