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