source: Sophya/trunk/SophyaExt/XephemAstroLib/Makefile.mgr@ 3237

Last change on this file since 3237 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
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/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
18OBJASTRO := $(addsuffix .o,$(basename $(wildcard *.c)))
19
20libxastro.a : $(OBJASTRO)
21 $(AR) $(ARFLAGS) $@ $(OBJASTRO)
22
23%.o: %.c
24 $(COMPILE.c) -o $@ $<
25
26testxephem: testxephem.o
27 $(LINK.c) -o $@ $^ -L$(EXTLIBPATH) -lxastro -lc -lm
Note: See TracBrowser for help on using the repository browser.