source: Sophya/trunk/SophyaExt/XephemAstroLib/Makefile.old@ 2723

Last change on this file since 2723 was 2723, checked in by cmv, 20 years ago

save old fashion specific makefile before configure changes cmv 18/05/05

  • Property svn:executable set to *
File size: 626 bytes
RevLine 
[2723]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.