Skip to content

Commit 5c505e2

Browse files
author
pkwill
committed
autotools: start building RPFITS library
And enable the four ATNF tasks that depended on it. I hadn't gotten around to this but somebody requested it, and getting things going was a piece of cake.
1 parent cd353e2 commit 5c505e2

File tree

4 files changed

+43
-9
lines changed

4 files changed

+43
-9
lines changed

Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ SUBDIRS = \
2424
borrow/pgplot \
2525
borrow/linpack \
2626
borrow/wcslib \
27+
borrow/rpfits \
2728
src/subs \
2829
src/scripts \
2930
src/scripts/ata/rapid \

borrow/rpfits/Makefile.am

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## The wcslib source tree includes a "GNUmakefile", which would override
2+
## our Makefiles when using GNU make ... which we require. Automake
3+
## recurses into the PWD for some operations, so we need to specify
4+
## AM_MAKEFLAGS here the same way we do in the toplevel Makefile.am
5+
6+
AM_MAKEFLAGS = -f Makefile
7+
8+
lib_LTLIBRARIES = libmir_rpfits.la
9+
10+
rpfcincdir = $(includedir)/miriad-c/rpfits
11+
rpffincdir = $(includedir)/miriad-f/rpfits
12+
13+
rpfcinc_HEADERS = code/RPFITS.h
14+
rpffinc_HEADERS = code/rpfits.inc
15+
16+
libmir_rpfits_la_SOURCES = \
17+
$(rpfcinc_HEADERS) \
18+
$(rpffinc_HEADERS) \
19+
code/datfit.f \
20+
code/dconv.f \
21+
code/ljusty.f \
22+
code/nchar.f \
23+
code/rjusty.f \
24+
code/rpferr.f \
25+
code/rpfitsin.f \
26+
code/rpfitsout.f \
27+
code/rpfits_tables.f \
28+
code/utdate.c \
29+
code/linux/atio.f \
30+
code/linux/cvt_ieee.f

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ AC_CONFIG_FILES([
468468
src/scripts/Makefile
469469
src/scripts/ata/rapid/Makefile
470470
borrow/linpack/Makefile
471+
borrow/rpfits/Makefile
471472
borrow/wcslib/Makefile
472473
src/prog/analysis/Makefile
473474
src/prog/calib/Makefile

src/prog/atnf/Makefile.am

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
include $(top_srcdir)/mircommon.mak
22

3-
# We do not build atlod, fakeotf, mopfix, or wblod, because they
4-
# require the rpfits library. This resides in borrow/rpfits/, but I
5-
# don't feel like hooking it up to autotools right now. If someone
6-
# needs one of these tasks, I'll look into hooking it up.
3+
# A few of these programs need the RPFITS library from borrow/rpfits.
74

85
LDADD = $(prog_libs)
6+
rpfits_libs = $(top_builddir)/borrow/rpfits/libmir_rpfits.la
97

108
ftasks = \
11-
at_mfcal at_moment at_uvlist at_uvplt atfix atmos atrtfix atscfix attsys atwvr \
12-
elevcor lagflg mbspect mfboot plboot plplt wbplt
9+
at_mfcal at_moment at_uvlist at_uvplt atfix atlod atmos atrtfix atscfix \
10+
attsys atwvr elevcor fakeotf lagflg mbspect mfboot mopfix plboot plplt \
11+
wblod wbplt
1312
bin_PROGRAMS = $(ftasks)
1413
CLEANFILES = $(ftasks:=.f)
1514
EXTRA_DIST = $(ftasks:=.for)
1615

17-
noinst_HEADERS = \
18-
at_uvlist.h atfix.h atmos.h mbspect.h mfcal.h wbcomm.h
16+
atlod_LDADD = $(prog_libs) $(rpfits_libs)
17+
fakeotf_LDADD = $(prog_libs) $(rpfits_libs)
18+
mopfix_LDADD = $(prog_libs) $(rpfits_libs)
19+
wblod_LDADD = $(prog_libs) $(rpfits_libs)
1920

20-
EXTRA_DIST += atlod.for atlod.h mopfix.for wblod.for wblod.h
21+
noinst_HEADERS = \
22+
at_uvlist.h atfix.h atlod.h atmos.h mbspect.h mfcal.h wbcomm.h wblod.h
2123

2224
dist-hook:
2325
-rm -f $(distdir)/*.f

0 commit comments

Comments
 (0)