|
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
|
| Line | |
|---|
| 1 | include $(SOPHYABASEREP)/Include/MakefileUser.h
|
|---|
| 2 |
|
|---|
| 3 | all: libxastro.a
|
|---|
| 4 |
|
|---|
| 5 | clean:
|
|---|
| 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)/.
|
|---|
| 17 |
|
|---|
| 18 | OBJASTRO := $(addsuffix .o,$(basename $(wildcard *.c)))
|
|---|
| 19 |
|
|---|
| 20 | libxastro.a : $(OBJASTRO)
|
|---|
| 21 | $(AR) $(ARFLAGS) $@ $(OBJASTRO)
|
|---|
| 22 |
|
|---|
| 23 | %.o: %.c
|
|---|
| 24 | $(COMPILE.c) -o $@ $<
|
|---|
| 25 |
|
|---|
| 26 | testxephem: testxephem.o
|
|---|
| 27 | $(LINK.c) -o $@ $^ -L$(EXTLIBPATH) -lxastro -lc -lm
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.