-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.am
75 lines (61 loc) · 2.42 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
## Process w/ automake. Or, autoreconf; make ##
AUTOMAKE_OPTIONS = foreign
SUBDIRS = . colors doc examples wsr88d_decode_ar2v
INCLUDES = -I. -I$(srcdir) -I$(prefix)/include -I$(prefix)/toolkit/include
includedir = $(prefix)/include
colordir = $(libdir)/colors
lib_LTLIBRARIES = librsl.la
librsl_la_LDFLAGS = -version-info 1:50
librsl_la_SOURCES = \
$(rapic_c) $(radtec_c)\
dorade.c dorade_print.c dorade_to_radar.c\
lassen.c lassen_to_radar.c \
edge_to_radar.c \
radar.c volume.c image_gen.c cappi.c fraction.c read_write.c farea.c \
range.c radar_to_uf.c uf_to_radar.c wsr88d_to_radar.c \
carpi.c cube.c sort_rays.c toga_to_radar.c gts.c histogram.c \
ray_indexes.c anyformat_to_radar.c get_win.c endian.c mcgill_to_radar.c \
mcgill.c interp.c toga.c wsr88d.c wsr88d_get_site.c wsr88d_m31.c \
gzip.c prune.c reverse.c fix_headers.c \
wsr88d_align_split_cut_rays.c wsr88d_merge_split_cuts.c \
wsr88d_remove_sails_sweep.c \
nsig_to_radar.c nsig.c nsig2_to_radar.c \
africa_to_radar.c africa.c \
radar_to_hdf_2.c hdf_to_radar.c toolkit_memory_mgt.c \
radar_to_hdf_1.c rainbow.c rainbow_to_radar.c $(headers)
librsl_la_DEPENDENCIES = $(build_headers)
build_headers = rsl.h wsr88d.h toolkit_1BC-51_appl.h
headers = africa.h dorade.h lassen.h \
mcgill.h nsig.h radtec.h rainbow.h \
rapic_routines.h toga.h \
$(build_headers)
rapic_c = rapic_to_radar.c rapic.y rapic-lex.l rapic_routines.c
radtec_c = radtec_to_radar.c radtec.c
rsl.h: Makefile
@for h in $(build_headers); do \
echo -n "Checking substitutions in header file $$h ... "; \
cp $$h $$h.in; \
sed -e 's/RSL_VERSION_STR.*/RSL_VERSION_STR \"$(VERSION)\"/' \
-e 's|#define COLORDIR.*|#define COLORDIR \"$(colordir)\"|' \
-e 's|#define WSR88D_SITE_INFO_FILE.*|#define WSR88D_SITE_INFO_FILE \"$(libdir)/wsr88d_locations.dat\"|' \
< $$h.in > $$h.new; \
if cmp -s $$h $$h.new; then \
rm $$h.new; \
echo "$$h remains untouched."; \
else \
mv $$h.new $$h; \
echo "substitutions made in $$h."; \
fi; \
rm -f $$h.in; \
done
PREFIX = rapic
LFLAGS = -P$(PREFIX)
YFLAGS = -d -p $(PREFIX)
LEX_OUTPUT_ROOT = lex.$(PREFIX)
install-exec-hook:
$(INSTALL) -d $(includedir)
$(INSTALL) -m 644 rsl.h $(includedir)
$(INSTALL) -m 644 toolkit_1BC-51_appl.h $(includedir)
$(INSTALL) -m 644 wsr88d_locations.dat $(libdir)
EXTRA_DIST = CHANGES Copyright GPL LGPL wsr88d_locations.dat rapic.h
DISTCLEANFILES = rapic.c rapic-lex.c