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

Last change on this file since 2502 was 2437, checked in by cmv, 22 years ago

chgt DPC...REP en SOPHYA...REP et EROSCXX en SOPHYACXX cmv 17/09/2003

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